char.get_before_first_separator: Return everything before the first occurence of provided...

Description Usage Arguments Examples

View source: R/string.R View source: R/.ipynb_checkpoints/string-checkpoint.R

Description

Return everything before the first occurence of provided separator.

Usage

1
2
char.get_before_first_separator(string = "", separator = ",",
  include_sep_in_output = FALSE)

Arguments

string

A character string.

separator

Optional. Default ",".

include_sep_in_output

Optional. Include the separator in the output. Default FALSE.

Examples

1
2
char.get_before_separator("I am smart enough, good looking enough, and gosh darn it, people like me.")
[1] "I am smart enough"

dads2busy/dataplumbr documentation built on July 2, 2021, 3:24 a.m.