Skip to content
Course Notes: Intermediate R
add text here
#USEFUL FUNCTIONS
#seq(): Generate sequences, by specifying the from, to, and by arguments.
#rep(): Replicate elements of vectors and lists.
#sort(): Sort a vector in ascending order. Works on numerics, but also on character strings and logicals.
#rev(): Reverse the elements in a data structures for which reversal is defined.
#str(): Display the structure of any R object.
#append(): Merge vectors or lists.
#is.*(): Check for the class of an R object.
#as.*(): Convert an R object from one class to another.
#unlist(): Flatten (possibly embedded) lists to produce a vector.