This functions below aim to give a bit of background on data and data manipulation in R. which.max(x) returns the…
If you want to know a little bit more about the variables you are working with try out these R…
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) ……
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…
Ever wonder how to generate data within R? c(…) generic function to combine arguments with the default forming a vector; with…
Many of the functions for input and output when using R are online. load() load the datasets written with save…
Most R functions have online documentation. help(topic) documentation on topic ?topic id. help.search(“topic”) search the help system apropos(“topic”) the…
When conducting data analysis plotting is critically important. In R, plots are crafted by calling successive functions to essentially build-up…
OBJECTS R has five basic classes of objects: Character Numeric Integer Complex Logical However, the most basic object is a…
In general, numbers in R are treated as numeric objects. For example, ?View Code R 3 # numeric object [1]…