Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upas.period doesn't convert to specified time units if x is a vector #349
Comments
|
Thanks! Have no idea how we got so far without noticing this. |
as.periodconverts correctly to the specified time units if the variable is a scalar:But it shows an error if it's a vector:
I would prefer not having to do something like
And, also, why does this happen?
Should be necessary to implement the
unlistfunction for Interval objects?(Thanks in advance.)