s-news
[Top] [All Lists]

Index a data frame

To: s-news@lists.biostat.wustl.edu
Subject: Index a data frame
From: Kenneth Cabrera <krcabrer@epm.net.co>
Date: Wed, 18 Jan 2006 02:32:36 -0500
In-reply-to: <43CD9B8A.7020808@gmail.com>
References: <43CD9B8A.7020808@gmail.com>
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.2) Gecko/20040804 Netscape/7.2 (ax)
Hi Splus 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

Attachment: krcabrer.vcf
Description: Vcard

<Prev in Thread] Current Thread [Next in Thread>