Hi folks, R on Ubuntu 10.04 64 bit.
Performed following steps on R:- ### to access to the object > data(InsectSprays) ### create a .csv file > write.csv(InsectSprays, "InsectSpraysCopy.csv") On another terminal $ sudo updatedb $ locate InsectSpraysCopy.csv /home/userA/InsectSpraysCopy.csv ### Read in some data > test01 <- read.csv(file.choose(), header=TRUE) Enter file name: /home/userA/InsectSpraysCopy.csv ### Look at the data > test01 X count spray 1 1 10 A 2 2 7 A 3 3 20 A 4 4 14 A 5 5 14 A 6 6 12 A 7 7 10 A 8 8 23 A 9 9 17 A 10 10 20 A 11 11 14 A 12 12 13 A 13 13 11 B 14 14 17 B 15 15 21 B 16 16 11 B 17 17 16 B 18 18 14 B 19 19 17 B 20 20 17 B 21 21 19 B 22 22 21 B 23 23 7 B 24 24 13 B 25 25 0 C 26 26 1 C 27 27 7 C 28 28 2 C 29 29 3 C 30 30 1 C 31 31 2 C 32 32 1 C 33 33 3 C 34 34 0 C 35 35 1 C 36 36 4 C 37 37 3 D 38 38 5 D 39 39 12 D 40 40 6 D 41 41 4 D 42 42 3 D 43 43 5 D 44 44 5 D 45 45 5 D 46 46 5 D 47 47 2 D 48 48 4 D 49 49 3 E 50 50 5 E 51 51 3 E 52 52 5 E 53 53 3 E 54 54 6 E 55 55 1 E 56 56 1 E 57 57 3 E 58 58 2 E 59 59 6 E 60 60 4 E 61 61 11 F 62 62 9 F 63 63 15 F 64 64 22 F 65 65 15 F 66 66 16 F 67 67 13 F 68 68 10 F 69 69 26 F 70 70 26 F 71 71 24 F 72 72 13 F ### Create a side-by-side boxplot of the data boxplot(test01$DO ~ test01$Stream) Error in model.frame.default(formula = test01$DO ~ test01$Stream) : invalid type (NULL) for variable 'test01$DO' I was stucked here. Pls help. TIA B.R. Stephen L ----- Original Message ---- From: Stephen Liu <sati...@yahoo.com> To: r-help@r-project.org Sent: Fri, August 13, 2010 11:34:31 AM Subject: [R] Learning ANOVA Hi folks, File to be used is on; data(InsectSprays) I can't figure out where to insert it on following command; test01 <- read.csv(fil.choose(), header=TRUE) Please help. TIA B.R. ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.