- class
- isa
- numeric
- character
- logical
- function
Variable types (numeric, character, logical, function)
- numeric: 1 34 2.7
- character: "hello" "23"
- logical: TRUE FALSE
- function: class print
examples/basics/data_types.R
class(23) # numeric class(2.3) # numeric class(NaN) # numeric class("Hello") # character class("23") # character class(TRUE) # logical class(FALSE) # logical class(T) # logical class(F) # logical class(NA) # logical class(class) # function class(print) # function
examples/basics/data_types_isa.R
isa(2, "numeric") # TRUE isa("2", "character") # TRUE isa(FALSE, "logical") # TRUE