Professional Documents
Culture Documents
Basic Syntax
The following is a list of symbols that can be used in R. Please review the table below
for specific description and examples related to the listed syntaxes.
Vectors can be used for concatenating rows and columns. Please review the table
below for examples related to vector and matrix operations in R.
The following is a list of symbols that can be used in R. Please review the table below
for specific description and examples related to the listed syntaxes that can be used for
various selections.
Utility
Please review the table below for a list of most commonly used utility functions in R.
Symbol Description
length() Length of vector
dim() Dimensions of vector/matrix/dataframe
sort() Sorts vector
order() Index to sort vector e.g. sort(v) == v[order(v)]
names() Names of columns