search for: api100

Displaying 1 result from an estimated 1 matches for "api100".

Did you mean: api00
2011 Jul 22
1
Recoding Multiple Variables in a Data Frame in One Step
...place multiple columns at once in a data frame. #load example data data(api) #this displays the three columns and eight rows i'd like to replace apiclus1[ apiclus1$meals > 98 , c( "pcttest" , "api00" , "sch.wide" ) ] #the goal is to replace pcttest with 100, api100 with NA, and sch.wide with "Maybe" #this doesn't work-- apiclus1[ apiclus1$meals > 98 , c( "pcttest" , "api00" , "sch.wide" ) ] <- c( 100 , NA , "Maybe" ) #the results replace downward instead of across apiclus1[ apiclus1$meals > 98 ,...