search for: measure2

Displaying 2 results from an estimated 2 matches for "measure2".

Did you mean: measure
2009 Mar 19
1
simple "for loop" program for merging datasets?
...Measure1 Afganistan 1 Afganistan 1 Russia 5 Poland 3 Poland 2 Dataset B: Country Measure 2 Russia 2 Afganistan 10 Poland 15 My program does not work: Country_A<-A$Country Country_B<-B$Country Measure2<-B$Measure2 for(i in 1:nrow(B)){ for(j in 1:nrow(A){ w[j]<-ifelse(Country_A[j]= =(Country_B[i]),Measure2[i], NA) }} A2<-cbind(B,w) Thanks, Julia _________________________________________________________________ [[alternative HTML version deleted]]
2007 Apr 12
2
data file import - numbers and letters in a matrix(!)
...s it possible to import the file to got 3 columns only with numbers and no letters like x=, y=? Thank's a lot Felix My R Code: ---------- # na.strings = "S=" Measure1 <- matrix(scan("data.dat", n= 5063 * 4, skip = 20, what = character() ), 5063, 3, byrow = TRUE) Measure2 <- matrix(scan("data.dat", n= 5063 * 4, skip = 5220, what = character() ), 5063, 3, byrow = TRUE) My data file: ----------- FILEDATE:02.02.2007 ... START OF HEIGHT DATA S= 0 y=0.0 x=0.00000000 S= 0 y=0.1 x=0.00055643 ... S= 9 y=4.9 x=1.67278117 S= 9 y=5.0 x=1.74873257 S=10 y=0.0 x...