s-news
[Top] [All Lists]

recode

To: <s-news@lists.biostat.wustl.edu>
Subject: recode
From: "Frank Lawrence" <Cougar@psu.edu>
Date: Thu, 20 Mar 2003 12:35:29 -0500
Importance: Normal
Organization: PSU
Reply-to: <Cougar@psu.edu>
I would like to know how to quickly recode multiple variables.  In one
problem I have, I need to recode the data in a 600 x 200 data frame so that
values less than 0.5 are scored 0, those equal to or greater than 1.5 are
scored 2, and those in between are scored 1.  Using loops seems to take a
very long time.  Is there a more efficient way to accomplish the recode?
WIN 2k, Splus 6.1


Respectfully, 
Frank R. Lawrence


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