Data structures

retrieve or set column names

colnames()

{base}

sequence of integers

:

{base}

return number of elements in a vector

length()

{base}

return number of columns in matrix, data frame, etc.

ncol()

{base}

create sequences of numbers

seq()

{base}

return number of rows in matrix, data frame, etc.

nrow()

{base}

subset elements of vector

[]

{base}

return first rows of matrix, data frame, etc.

head()

{utils}

create repetitions of numbers, characters, etc.

rep()

{base}

create data frame

data.frame()

{base}

create vector of numbers, characters, etc.

c()

{base}

create tibble

tibble()

{tibble}

return last rows of matrix, data frame, etc.

tail()

{utils}

return dimensions of matrix, data frame, etc.

dim()

{base}

create recursive vector (list)

list()

{base}

The end!