
The “sub” Function in R
To replace the first occurrence of a pattern in a character vector with a specified replacement string.
The “gsub” Function in R
To replace all occurrences of a pattern in a character vector with a specified replacement string.
The “strsplit” Function in R
To split a character vector into substrings based on a specified delimiter.
The “paste” Function in R
To concatenate (paste) vectors after converting them to character.
The “trunc” Function in R
To truncate numeric values towards zero, effectively removing the decimal part.
The “set.seed” Function in R
To set the seed for the random number generator, ensuring reproducibility of random processes.
The “round” Function in R
To round numeric values to the nearest integer or a specified number of decimal places.
The “atan” Function in R
To compute the arctangent (inverse tangent) of a numeric vector, returning values in radians.
The “acos” Function in R
To compute the arccosine (inverse cosine) of a numeric vector, returning values in radians.
The “asin” Function in R
To compute the arcsine (inverse sine) of a numeric vector, returning values in radians.
The “tan” Function in R
To compute the tangent of a numeric vector, interpreting the input as angles in radians.
The “cos” Function in R
To compute the cosine of a numeric vector, interpreting the input as angles in radians.
The “sin” Function in R
To compute the sine of a numeric vector, interpreting the input as angles in radians.