There are two kinds of functions in R – inbuilt functions and user defined. R as a statistical package comes with a whole lot of common functions predefined. These functions are typically the ones which are repeatedly used in the tasks of statistical programming. Nevertheless, users can define and use their own functions. This can be […]

## Factors in R

Factors in R are data structures for representing categorical variables i.e. data which can assume only finite number of distinct values. Although it is possible to store such data in any of the data structures that we have already covered, viz. vectors, matrices, arrays, lists and data frames, doing so will not take advantage of […]

## Basic Data Structures V: Arrays in R

What are Arrays in R? Arrays in R are multidimensional (sometimes called n-d) data structures that hold members of a single data type. From an implementation point of view, an array is a vector that has one or two additional attributes – dim and dimnames. Only dim attribute is mandatory for an array. Another way […]

- 1
- 2
- 3
- …
- 27
- Next Page »