R - Logical Type

Card Puncher Data Processing

About

A vector containing logical values

Example

> v <- c(TRUE,FALSE)
> class(v)
[1] "logical"





Discover More
Card Puncher Data Processing
R - (Datatype|Type|Storage Mode) of an object (typeof, mode)

In the C code underlying R, all objects are pointers to a structure with typedef SEXPREC; the different R data types are represented in C by SEXPTYPE, which determines how the information in the various...
Card Puncher Data Processing
R - (Indicator|Identity) Function (I)

As power has a meaning in the formula, the identity function (I) is used to protect it. Year < 2005 turns into a logical but when wrapped in a indicator becomes a zero-one variable.
Card Puncher Data Processing
R - Class

A class is just an attribute of an object. You can remove the attribute with the function . The class with then become the type A list can have different class. unclass returns (a copy of) its...
Card Puncher Data Processing
R - Vector

The Vector in R contains elements of the same class. A Vector with different class of objects is a list. A vector (as every object) can also have . Almost all data in R is a vector or is based upon...



Share this page:
Follow us:
Task Runner