Skip to content

Tag Archives: R String-Functions

deparse() function in R Language is used to convert an object of expression class to an object of character class. Syntax: deparse(expr) Parameters: expr: Object… Read More
grepl() function in R Language is used to return the value True if the specified pattern is found in the vector and false if it… Read More
parse() function in R Language is used to convert an object of character class to an object of expression class. Syntax: parse(text = character) Parameters:… Read More
toString() function in R Language is used to convert an object into a single character string. Syntax: toString(x, width) Parameters: x: Object width: maximum string… Read More
format() function in R Language is used to format strings and numbers in a specified style. Syntax: format(x, digits, nsmall, scientific, width, justify = c(“left”,… Read More
as.Date() function in R Language is used to convert a string into date format. Syntax: as.Date(x, format) Parameters: x: string variable format: Format in which… Read More
strftime() function in R Language is used to convert the given date and time objects to their string representation.  Syntax: strftime(time) Parameters: time: specified time object  Example… Read More
is.character() function in R Language is used to check if the object passed to it as argument is of character type. Syntax: is.character(x) Parameters: x:… Read More
bquote() function in R Language is used to quote the arguments passed to it, except the values which are wrapped in ‘.()‘. It evaluates the… Read More
pmatch() function in R Language is used to seek match for the pattern passed as argument. It returns the strings that begin with the pattern… Read More
as.integer() function in R Language is used to convert a character object to integer object. Syntax: as.integer(x) Parameters: x: Character Object Example 1: # R… Read More
as.character() function in R Language is used to convert a numeric object to character object. Syntax: as.character(x) Parameters: x: Numeric Object Example 1: # R… Read More
strtrim() function in R Language is used to trim a string to a specified display width. Syntax: strtrim(x, width) Parameters: x: character vector width: specified… Read More
word() Function in R Language is used to extract words from a string from the position specified as argument. Syntax: word(string, position) Parameter: string: From… Read More
is.character() Function in R Language is used to check if the object is of the form of a string/character or not. It will return true… Read More