search for: mydatasort

Displaying 4 results from an estimated 4 matches for "mydatasort".

Did you mean: mydataset
2008 Oct 21
3
code works in R desktop but not iin RWeb - How do I modify to get it working in RWeb, please?
...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) and the results show the number of people for each province who responded with value 1 or value 2 myag<-aggregate(mydat...
2008 Oct 23
1
code works in R desktop but not iin RWeb - I got it working
...mation. This is the code I am entering into RWeb > after loading my data file: > > #subset the file to only include certain values: > > test<-subset(X, GRADE == 7 & Y_Q10A < 9) > > #sort the data by province and the variable Y_Q10A > > mydata<-test > > mydataSorted<-mydata[ order(mydata$PROV,mydata$Y_Q10A), ] > > #Weight the data and aggregate it by province and Y_Q10A > > myag<-aggregate(mydataSorted$WTPP, > by=list(mydataSorted$PROV,mydataSorted$Y_Q10A), FUN=sum, na.rm=TRUE) > > #print the aggregated data > > print(myag) &...
2007 Apr 27
5
weight
Hi, I have the file below called happyguys. It is a subset of data. How do I apply the weight variable (WTPP) to this file? Can i just multiply each column (except the first column because it is a record id) by WTPP? If the answer is yes, how do I multiply one variable name by another? Thanks, Nat PROV REGION GRADE Y_Q10A WTPP 83 48 4 7 2 342233324020 115
2007 Apr 30
0
thousand separator (was RE: weight)
...t the file based on Select If > > > > > > > > test<-subset(happyguys, PROV==48 & GRADE == 7 & > > > > Y_Q10A < 9) > > > > > > > > ##sorting the file > > > > > > > > mydata<-test > > > > mydataSorted<-mydata[ order(mydata$Y_Q10A), ] > > > > print(mydataSorted) > > > > > > > > > > > > ##assigning a different name to file > > > > > > > > happyguys<-mydataSorted > > > > > > > > > > > &...