O'Reilly logo

Learning Shiny by Hernán G. Resnizky

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Classes in depth

R has the following six fundamental or atomic classes:

  • Character: When assigning a character value to a variable, the corresponding string must be quoted.
  • Numeric: Decimal numbers.
  • Integer: Non-decimal numbers.
  • Complex: Complex numbers.
  • Logical: TRUE/FALSE values.
  • Raw: As explained in the help section of R—the raw type is intended to hold raw bytes. This is very rarely used.

All the rest of the classes that can be built in R are combinations of these six. In the later sections, you will find a list of the most common ones.

Vectors

Vectors are objects that contain elements of only one atomic class. The type of the vector will be the same as the elements it contains (for example, a numeric vector or a character vector). It is important to ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required