R Language: Data types and structures

To make the best of the R language, you'll need a strong understanding of the basic data types and data structures and how to operate on those. Very Important to understand because these are the things you will manipulate on a day-to-day basis in R. Everything in R is an object.

R language
The basic data types 
  • logical (e.g., TRUE, FALSE)
  • integer (e.g,, 2L, as.integer(3))
  • numeric (real or decimal) (e.g, 2, 2.0, pi)
  • complex (e.g, 1 + 0i, 1 + 4i)
  • character (e.g, "a", "swc")
The basic data structures in R
  • vector
  • list
  • matrix
  • data frame
  • factors
  • tables
Vector in R
A vector is the most common and basic data structure in R and is pretty much the workhorse of R. 
Vectors can be of two types:
  • atomic vectors
  • lists


Popular Posts

Hyperledger Fabric: 20 Real Interview Questions

7 AWS Interview Questions asked in Infosys, TCS

How to Fix Python Syntax Errors Quickly

Python 'getsizeof' Command the Real Purpose

Blue Prism complete tutorials download now

Python Dictionary Vs List With Examples

How to Use the ps Command in Linux

Vi Editor to Quit use Esc and Colon

5 HBase Vs. RDBMS Top Functional Differences

The Growth of Machine Learning till TensorFlow