Displaying 2 results from an estimated 2 matches for "q10a".
Did you mean:
q10
2008 Oct 23
1
code works in R desktop but not iin RWeb - I got it working
...my
variable names to work on RWeb.
Thanks for your help though!!
Natalie
__________________
I think you have to be either honest or careful, since the code you
submitted to Rweb is different with your former code! Why the
condition was changed from "test<-subset(X, GRADE == 7 & Y_Q10A < 9)"
to "test<-subset(X, PROV==48 & GRADE == 7 & Y_Q10A < 9)"?
By the way, please read the post guide -- I have no way to reproduce
your result.
Regards,
Yihui
--
Yihui Xie <xieyihui@gmail.com>
Phone: +86-(0)10-82509086 Fax: +86-(0)10-82509086
Mobile: +86-1...
2008 Oct 21
3
code works in R desktop but not iin RWeb - How do I modify to get it working in RWeb, please?
...ot work with RWeb. Could you please tell me how
to modify the code below so it will work with RWeb?
#Read in txt file
happyguys<-read.table("c:/test8.txt", header=TRUE, row.names=1)
#Subset the txt file to only include certain values
test<-subset(happyguys, GRADE == 7 & Y_Q10A < 9)
#print the subset file
print(test)
mydata<-test
#Sort the data by province, and then by Y_Q10A
mydataSorted<-mydata[ order(mydata$PROV,mydata$Y_Q10A), ]
print(mydataSorted)
#Weight the data and aggregate the value by province. There are 2 values
for each province (1 & 2) an...