non-standard-types {santoku} | R Documentation |
Tips for chopping non-standard types
Description
Santoku can handle many non-standard types.
Details
If objects can be compared using
<
,==
etc. then they should be choppable.Objects which can't be converted to numeric are handled within R code, which may be slower.
Character
x
andbreaks
are chopped with a warning.If
x
andbreaks
are not the same type, they should be able to be cast to the same type, usually usingvctrs::vec_cast_common()
.Not all chopping operations make sense, for example,
chop_mean_sd()
on a character vector.For indexed objects such as
stats::ts()
objects, indices will be dropped from the result.If you get errors, try setting
extend = FALSE
(but also file a bug report).To request support for a type, open an issue on Github.
See Also
brk-width-for-Datetime
[Package santoku version 1.0.0 Index]