non-standard-types: Tips for chopping non-standard types

non-standard-typesR 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 and breaks are chopped with a warning.

  • If x and breaks are not the same type, they should be able to be cast to the same type, usually using vctrs::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


santoku documentation built on Oct. 12, 2023, 5:13 p.m.