Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Variable types are deducted

  • class
  • isa
  • numeric
  • character
  • logical
x = 23
class(x)     # numeric

x = "George"
class(x)     # character

x = T
class(x)     # logical

isa(2, "numeric")  # TRUE
isa("2", "character")  # TRUE
isa(FALSE, "logical")  # TRUE