powered by
This is an utility function that can be used to split expressions. It is based on strsplit function. split_by is the general purpose splitter split_by_ splits expressions by \"_\" split_by. splits expressions by a dot
strsplit
split_by(expr, split, unlist. = TRUE, ...)split_by_(expr, ...)split_by.(expr, ...)
split_by_(expr, ...)
split_by.(expr, ...)
character expression to split;
expression to split expr by;
expr
Logical. If TRUE, the splitted expr is unlisted;
Further parameters to pass to strsplit;
a list or vector with a splitted expression
# NOT RUN { split_by_("time_series") split_by.("time.series") split_by("born2bewild", "2") # }
Run the code above in your browser using DataLab