Variable information Flashcards Preview

R > Variable information > Flashcards

Flashcards in Variable information Deck (10)
Loading flashcards...
1

is.na(x), is.null(x), is.array(x), is.data.frame(x), is.numeric(x), is.complex(x), is.character(x), ...

test for type

2

length(x)

number of elements in x

3

dim(x)

Retrieve or set the dimension of an object; dim(x) <- c(3,2)

4

dimnames(x)

Retrieve or set the dimension names of an object

5

nrow(x)

number of rows; NROW(x) is the same but treats a vector as a one-
row matrix

6

ncol(x)

id. for columns

7

class(x)

get or set the class of x; class(x)

8

unclass(x)

remove the class attribute of x

9

attr(x,which)

get or set the attribute which of x

10

attributes(obj)

get or set the list of attributes of obj