Professional Documents
Culture Documents
#---------------------------------------------------------
# Exercise R.3
# or
dat <- read.table(file = "R3.csv", header = TRUE, sep = ",")
# or
min(dat)
max(dat)
# Control
dat[index]
#---------------------------------------------------------
# Exercise R.4
install.packages("UsingR")
#install.packages("UsingR")
# Assign the number of wins of the team NY Yankees to the variable wins.nya
wins.nya <- MLBattend$wins[MLBattend$franchise == "NYA"]
wins.nya