Skip to content
Prev 311912 / 398503 Next

"argument is missing, with no default" OR "replacement has length zero"

On Nov 25, 2012, at 10:22 AM, lind35 wrote:

            
Actually you are not 'ignoring' the ID's in new-data,  but rather  
using them to set the value columns to missing in certain rows.  
Perhaps, (untested)

oldnew <- old[ c( "group", , "ID", column-vector for desired values ]
oldnew[ !paste(old$ID, old$group, sep="_") %in% paste(new$ID, new 
$group, sep="_") ,
          ####  names of columns here as a character vector or  
3:length(oldnew)
                ] <- NA