filmov
tv
R programming Section 4. Advanced data management. Lecture 4. Character and string functions in R.

Показать описание
R programming Section 4. Advanced data management. Lecture 4. Character and string functions in R.
Common character functions
toupper(y) Uppercase
tolower(y) Lowercase
Finds pattern in Y and substitutes the replacement text
nchar(Y) Counts the number of characters of Y
paste(..., sep="") Concatenates strings after using specified sep string
substr(Y, start, stop) Extracts substrings in a character vector
Searches for pattern in Y and Returns the matching indices
strsplit(Y, split, fixed=FALSE)
Splits the elements of character vector Y at split
#rprogramming
#rstudio
#string
#character
#function
#rdatacode
Common character functions
toupper(y) Uppercase
tolower(y) Lowercase
Finds pattern in Y and substitutes the replacement text
nchar(Y) Counts the number of characters of Y
paste(..., sep="") Concatenates strings after using specified sep string
substr(Y, start, stop) Extracts substrings in a character vector
Searches for pattern in Y and Returns the matching indices
strsplit(Y, split, fixed=FALSE)
Splits the elements of character vector Y at split
#rprogramming
#rstudio
#string
#character
#function
#rdatacode