## 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...

Skip to content
# Category: R

## R | Data Selection and Manipulation

## R | Variable Information

## R | Variable Conversion

## R | Slicing and Extracting Data

## R | Data Creation

## R | Input and Output

## R|Getting Help

## The Base Plotting System in R

## R Objects: Data Types

## R: Numbers

Helping Others Extract Knowledge from Data.

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...

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...

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)...

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[&...

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...

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...

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

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...

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...

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