s-news
[Top] [All Lists]

Simple recode problem

To: <s-news@lists.biostat.wustl.edu>
Subject: Simple recode problem
From: "Jan Ivanouw" <ivanouw@post8.tele.dk>
Date: Mon, 5 Nov 2007 23:49:31 +0100
References: <64E0B1A1FF5F1B4497212A108E11118F31F569@MAPIUDEM2.sim.umontreal.ca>
I am sorry for my lack of knowledge.

I have a data frame with a variable (column) containing the integers 1, 2, 3, 4 and 5.
I want to recode the variable so 5=1, 4=2, 3=3, 2=4 and 1=5.

How do I do that?

Jan Ivanouw PhD
Dep of Health Psychology
University of Copenhagen
Denmark



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