-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
replace plyr / reshape2 functionality with data.table equivalent #161
Comments
Nice work on those last changes. Looks like all that is left is |
Thanks, yes that was all that was left, now done in 66499a7 The conversion from plyr 2ad40e7 was fine but I was unable to verify the correctness of result due to some other dangling, previously un-detected issues with (un)coded moisture state resulting in a 0-length results even with data in the DB. Testing any MS Access stuff takes some finagling on my work machine because I am still stuck with only 32-bit MS Access drivers (boo) I also took this opportunity to convert from the (deprecated) |
Keeping track of changes / testing related to
data.table
replacement ofplyr
/reshape
functionality. Each change should be checked and a new test added if there isn't sufficient coverage. Handy bash script:plyr
join
fetchHenry
fetchNASIS_pedons
fetchNASIS_report
fetchPedonPC
getHzErrorsNASIS
getHzErrorsPedonPC
get_colors_from_pedon_db
get_component_data_from_NASIS_db
get_extended_data_from_NASIS_db
get_hz_data_from_pedon_db
ddply
fetchHenry
fetchNASISLabData
fetchNASIS_components
fetchNASIS_report
fetchPedonPC
fetchSCAN
getHzErrorsNASIS
getHzErrorsPedonPC
get_colors_from_pedon_db
get_component_from_LIMS
get_component_from_SDA
get_phlabresults_data_from_NASIS_db
simplifyArtifactData
ldply
SDA-spatial
fetchSCAN
reshape2
reshape2::dcast
→data.table::dcast
fetchHenry
simplfyFragmentData
simplifyArtifactData
Note that
value
argument becomesvalue.var
.melt
→data.table::melt
fetchSCAN
Caveats
data.table::melt
will not preserve factor type / levels unless asked to do so explicitly viavalue.factor
argument. A reasonable solution is to set it after the reshape operation when appropriate.id.vars
should not contain duplicated column namesmelt.data.table
expects that allmeasure.vars
are of the same type (e.g. allnumeric
) otherwise warning issuedThe text was updated successfully, but these errors were encountered: