strToVec: strToVec

Description Usage Arguments Value Examples

View source: R/strToVec.R

Description

strToVec takes as input a character string (string) and a delimiter (delimiter) and returns a vector of class character whose elements are created by splitting the string at the delimiter

Usage

1
strToVec(string, delimiter)

Arguments

string

a string of class character which is to be split

delimiter

a string of class character indicating the delimiter at which the string string is supposed to be split (e.g. ",", "-", " " etc.)

Value

strToVec returns a vector of class character with elements created by splitting string at delimiter

Examples

1
2
3
strToVec("Monday,Tuesday,Wednesday,Thursday,Friday",",")
strToVec("Jun-Jul-Aug-Sep","-")
strToVec("alpha beta gamma"," ")

lwTools/agriTrf documentation built on March 26, 2020, 12:09 a.m.