2.5 Data types
There are four common data types in R, they are numeric
, logical
, character
and integer
. All these data types can be used to create vectors natively.
## [1] 1 3 2 10 5
## [1] TRUE FALSE TRUE
## [1] "sds" "sd" "as"
## [1] "character"
## [1] 1 2 3
## [1] "integer"