1/16
Looks like no tags are added yet.
Name | Mastery | Learn | Test | Matching | Spaced |
|---|
No study sessions yet.
Load packages
(library(readxl)),
Import data
(read.csv()),
Explore
(summary(), head()),
Transform
(mutate(), filter()),
Visualize
(hist(), plot()).
Assign
x <- 5
Arithmetic
+ - * / ^
Combine data
c( )
Load
data <- read.csv("file.csv")
New variable
data$new <- data$PTS / data$MIN
Sort
data[order(data$PTS, decreasing=TRUE), ]
Rank
rank(data$PTS)
Mean
mean(data$PTS)
Standard devation
sd(data$PTS)
cor
(data$PTS, data$REB)
Histogram
hist(data$PTS, main="Points Distribution")
Scatterplot
plot(data$PTS, data$REB, main="Points vs Rebounds")