A vector is a list of items that are of the same data type. To combine a list of items into a vector, use c() function and separate the items by a comma.   There are two broad categories of vectors: Atomic Vectors: logical, integer, double, character, complex, and raw. Double and integer vectors are […]

Vectors Read More »

R Programming Data Types

Basic Data Types Values Examples Numeric A set of all real numbers

Integer A set of all integers. The L stands for a whole number

Logical This is also known as a boolean: TRUE and FALSE

Complex Used for numbers with real and imaginary parts (e.g., 3 + 2i). The “i” is

R Programming Data Types Read More »

Scroll to Top