You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Keeping track of changes / testing related to data.table replacement of plyr / reshape functionality. Each change should be checked and a new test added if there isn't sufficient coverage. Handy bash script:
It appears that data.table::melt will not preserve factor type / levels unless asked to do so explicitly via value.factor argument. A reasonable solution is to set it after the reshape operation when appropriate.
id.vars should not contain duplicated column names
melt.data.table expects that all measure.vars are of the same type (e.g. all numeric) otherwise warning issued
The text was updated successfully, but these errors were encountered:
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
sampleasterStackByMU
ddply
FFD
componentadjmatrix
ldply
PLSS2LL
sampleasterStackByMU
samplingStability
dlply
componentadjmatrix
site_photos_kmlkml_placemarks
reshape2
reshape2::dcast
→data.table::dcast
componentadjmatrix
geomorphBySoilSeries-SSUGO
multinominal2logical
vizAnnualClimate
Note that
value
argument becomesvalue.var
.melt
→data.table::melt
diagnosticPropertyPlot
vizFlatsPosition
vizGeomorphicComponent
vizHillslopePosition
vizMountainPosition
vizTerracePosition
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: