Does R have function startswith or endswith like python? -
was looking predictors name starts substring, not find similar function.
i'm not sure when added base
(at least 3.3.0), startswith
(and endswith
) this.
> startswith("what", "wha") [1] true > startswith("what", "ha") [1] false
https://stat.ethz.ch/r-manual/r-devel/library/base/html/startswith.html
Comments
Post a Comment