Skip to content
Back to formatted view

Raw Message

Message-ID: <43CDEFC7.5000805@epm.net.co>
Date: 2006-01-18T07:35:35Z
From: Kenneth Cabrera
Subject: Data frame index?
In-Reply-To: <20060118060249.39518.qmail@web31810.mail.mud.yahoo.com>

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