R language data types

Six kinds of basic data types

numaric  such as 12, 12.4

integer  such as 2L, 0L

complex  real and imaginary comprising the 3 + 2i 

character  in double or single quotes comprising up as "a", "good" 

logical  如 TRUE,FALSE

raw  is able to directly identify the type of computer, it is stored in the form of binary data

NULL  represents the null value

NA  represents a missing value

Data type objects advanced R

Vector  R & lt objects using C () function, which means that the elements are combined into a vector

List  R & lt objects which can contain many different types of elements, such as a vector, wherein the function list even further

matrix  of two-dimensional rectangle data set

array

factor

data frame   table data objects

 

Guess you like

Origin www.cnblogs.com/0820LL/p/10936110.html