I have some code
file = "http://dd.weather.gc.ca/hydrometric/csv/SK/hourly/SK_hourly_hydrometric.csv"
skdat2 <- read.csv(file, head=T, sep=",", dec=".")
colnames(skdat2) <- c("ID", "Date", "Water.Level", "Grade.1", "Symbol.1",
"QA/QC-1", "Discharge/Debit", "Grade.2", "Symbol.2",
"QA/QC-2")
skdat22 <- subset(skdat2, skdat2$ID=='05AH050')
plot(skdat22$ID ~ skdat22$Date, skdat22, xaxt = "n")
What I am trying to do is plot just the data that has ID 05AH050 and when I display the dataset skdat22 it shows only ID 05AH050 data
however whan I plot it I get all the other Ids as well? Am I misunderstanding the subset command?