R | Variable Information

If you want to know a little bit more about the variables you are working with try out these R…

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) as.matrix(x) as.complex(x) as.character(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…

R | Data Creation

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

R | Input and Output

Many of the functions for input and output when using R are online. load() load the datasets written with save…

R|Getting Help

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

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…

R Objects: Data Types

OBJECTS R has five basic classes of objects: Character Numeric Integer Complex Logical However, the most basic object is a…

R: Numbers

In general, numbers in R are treated as numeric objects. For example, ?View Code R 3 # numeric object [1]…