r - specifying from/to in seq.POSIXt -


i'm writing function data pre-processing, , 1 of things i'm doing creating regularly spaced xts object. of examples i've seen use seq.posixt in way similar this:

temp <- xts(, seq.posixt(from = start(data), = end(data), = 0.001) data <- cbind(temp, data) data <- data["t08:30:00.001/t15:00:00"] 

is there way specify from/to directly time of day without specifying date? i'm wasting lot of time cbinding "temp" when temp begins @ 0:00:00 , ends @ 11:59:59, , cutting result 8:30:00.001 15:00:00. i'd prefer temp start @ 8:30:00.001 , end @ 15:00:00, if that's possible.

no there not as sequence on posixt types , cannot have date + time type without underlying date.

you can of course write helper function injects given, or randomly chosen, date , magic once complete time object has been formed.

note xts need correct posixt object.


Comments

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -