[R] Data frame index?

Kenneth Cabrera krcabrer at epm.net.co
Wed Jan 18 08:35:35 CET 2006


Hi, R users:

I have a data.frame (not a matrix), I got a vector with the same length 
as the
number of records (rows) of the data frame, and each element of
that vector is the column number (in a specific range of columns) of the 
corresponding
record that I must set to zero.

How can I  do this without a "for" loop?

Thank you for your help.

Kenneth



More information about the R-help mailing list