Steve,
Just below are some examples that I hope will help.
With regard to what you've tried, I don't see any reason for using with(),
or the select argument to subset(). They both look unnecessary to me.
## examples of subsetting date-time values
## create fake data
tmp <- seq(as.POSIXct('2011-0
Try altering your subset operation from this:
with(DataSet, subset(DataSet, DataSet$NewDateTime < '2004-08-05 14:15:00'))
to this:
with(DataSet, subset(DataSet, DataSet$NewDateTime < as.POSIXct('2004-08-05
14:15:00')))
and see if you get the desired effect.
The statement DataSet$NewDateTime <
Dear R Community,
I am new to R, and have a question that I suspect may be quite simple but is
proving a formidable roadblock for me. I have a large data set that
includes water-quality measurements collected over many 24-hour periods.
The date and time of sample collection are in a combined Dat
3 matches
Mail list logo