Feature #3427
A store and retrieve operation for a data frame loses types for some of the columns, particularly dates
100%
Description
For example, retrieving the object stored with the script https://repository.dataone.org/software/allsoftware/demos/r-demo-EAB-2012/d1_client_r_demo03-1.R, the retrieved object has the $date column classified as text, not date. For this column, an as.Date() coercion addresses the problem. However, the $id column isn't right. Run https://repository.dataone.org/software/allsoftware/demos/r-demo-EAB-2012/d1_client_r_demo3-retrieve.R and compare the summary of SeedPred and d1_SeedPred. This may be something best addressed as documentation, but I'm recording the issue to track it to whatever resolution makes sense and to consider writing a test to use as part of the package.
History
#1 Updated by Matthew Jones over 11 years ago
- Category deleted (
d1_client_r) - Project changed from Infrastructure to DataONE R Client
#2 Updated by Matthew Jones over 11 years ago
- Start date set to 2013-02-22
- Due date set to 2013-02-22
- Target version set to DataONE R Client 1.0.0
#3 Updated by Matthew Jones over 11 years ago
- Tracker changed from Bug to Feature
- Due date deleted (
2013-02-22) - Target version deleted (
DataONE R Client 1.0.0) - Start date deleted (
2013-02-22)
For this to work, we need much more complete support for metadata creation and parsing. The asDataFrame methods would then use the metadata available with objects to properly coerce variables to the right types in R before handing over control to the user. I am changing this to a feature request, as this functionality has not yet been implemented, but would be desirable.
#4 Updated by Rob Nahf over 11 years ago
- Due date set to 2013-03-01
- Target version set to DataONE R Client 1.1.0
- Start date set to 2013-03-01
#5 Updated by Bruce Wilson about 11 years ago
- Due date changed from 2013-03-01 to 2013-10-14
- Assignee deleted (
Bruce Wilson)
#6 Updated by Matthew Jones about 10 years ago
- Due date changed from 2013-10-14 to 2014-09-10
Moved task to github: https://github.com/DataONEorg/rdataone/issues/29
#7 Updated by Matthew Jones about 10 years ago
- Status changed from In Progress to Closed