Displaying 5 results from an estimated 5 matches for "pumfid".
2007 Apr 26
4
select if + other questions
...e problems:
1)i cannot get the column names to show up when print to screen
2)I cannot seem to skip variables properly when i choose certain other
variables
3)i cannot get the combination of Select If statements to work to produce
a different table with my new criteria
Here are the variables
PUMFID position1 length 5
PROV position 6 length 2
GRADE position 9 length 2
Y_Q10A position 33 length 1
Y_Q10A has the following 1=yes
2=no
9=skip
all the others have no skipped or missing values
Here is my code:
myfile<-("c:/test2.txt&quo...
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 27
0
like SPSS
...process that
SPSS is going through to aggregate the data?
Thanks,
Nat
Here is my code:
myfile<-("c:/test2.txt")
mysubset<-myfile
mysubset$Y_Q02 <-mysubset$DVSELF <-NULL
mysubset2<-mysubset
mysubset2$Y_Q10B <-mysubset2$GP2_07 <-NULL
myVariableNames<-c("PUMFID","PROV","REGION","GRADE","Y_Q10A","WTPP")
myVariableWidths<-c(5,2,1,2,1,12.4)
mysubset2<-read.fwf(
file=myfile,
width=myVariableWidths,
col.names=myVariableNames,
row.names="PUMFID",
fill=TRUE,
strip.white=TRUE)
prin...
2008 Oct 23
1
code works in R desktop but not iin RWeb - I got it working
...how any results. Here is the response
I
> am getting from RWeb:
>
> Rweb:> postscript(file= "/tmp/Rout.11012.%03d.ps", onefile=FALSE)
> Rweb:> X <- read.table("/tmp/Rdata.11012.data", header=T)
> Rweb:> attach(X)
> Rweb:> names(X)
> [1] "PUMFID" "PROV" "REGION" "GRADE" "Y.Q10A" "WTPP"
> Rweb:>
> Rweb:>
> Rweb:> test<-subset(X, PROV==48 & GRADE == 7 & Y_Q10A < 9)
>
> How can I modify my code above to get it to work in RWeb, please?
>
> Th...
2008 Oct 21
3
code works in R desktop but not iin RWeb - How do I modify to get it working in RWeb, please?
Hi,
How are you? I have a quick question.... I have code that works perfectly
with R desktop, but does not 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