 ## R | Data Selection and Manipulation

This functions below aim to give a bit of background on data and data manipulation in R. which.max(x) returns the index of the greatest element of x which.min(x...

## R | Variable Information

If you want to know a little bit more about the variables you are working with try out these R commands. is.na(x), is.null(x), is.array(x), is.data.frame(x), is...

## R | Variable Conversion

The “as….” explicitly converts the data to whatever you desired outcome. as.array(x) as.data.frame(x) as.numeric(x) as.logical(x) as.vector(x)...

## R | Slicing and Extracting Data

Indexing Vectors x[n] nth element x[-n] all but the nth element x[1:n] first n elements x[-(1:n)] elements from n+1 to the end x[c(1,4,2)] specific elements x[&...

## R | Data Creation

Ever wonder how to generate data within R? c(…) generic function to combine arguments with the default forming a vector; with recursive=TRUE descends thro...

## R | Input and Output

Many of the functions for input and output when using R are online. load() load the datasets written with save data(x) loads specified data sets library(x) load...

## R|Getting Help

Most R functions have online documentation.   help(topic) documentation on topic ?topic id. help.search(“topic”) search the help system apropos...

## The Base Plotting System in R

When conducting data analysis plotting is critically important. In R, plots are crafted by calling successive functions to essentially build-up a plot. Just lik...

## R Objects: Data Types

OBJECTS R has five basic classes of objects: Character Numeric Integer Complex Logical However, the most basic object is a vector. There are two things which yo...

## R: Numbers

In general, numbers in R are treated as numeric objects. For example, ?View Code R 3 # numeric object  3 3L # explicitly gives an integer  3 Inf # a speci...