October 2017
Beginner to intermediate
572 pages
26h 1m
English
Perform the following steps to manipulate the data with R.
Subset the data using the bracelet notation:
> data(iris)
> iris[1,"Sepal.Length"]
Output:
[1] 5.1
> Sepal.iris = iris[, c("Sepal.Length", "Sepal.Width")]
> str(Sepal.iris) Output: 'data.frame': 150 obs. of 2 variables: $ Sepal.Length: num 5.1 4.9 4.7 4.6 5 5.4 4.6 5 4.4 4.9 ... $ Sepal.Width : num 3.5 3 3.2 3.1 3.6 3.9 3.4 ...
Read now
Unlock full access