Re: [R] Reverse the scoring of some Columns of a Data Set

2017-03-09 Thread Nordlund, Dan (DSHS/RDA)
t: Re: [R] Reverse the scoring of some Columns of a Data Set > > On 3/8/2017 6:14 AM, AbouEl-Makarim Aboueissa wrote: > > Dear All: goods morning > > > > Is there is a way to reverse the scoring of the first three columns > x1, x2, > > and x3 and keep the original s

Re: [R] Reverse the scoring of some Columns of a Data Set

2017-03-08 Thread Daniel Nordlund
On 3/8/2017 6:14 AM, AbouEl-Makarim Aboueissa wrote: Dear All: goods morning Is there is a way to reverse the scoring of the first three columns x1, x2, and x3 and keep the original scores for the fourth column x4. *Here is an example of the data set:* x1 x2 x3 x4 2 5 4 4 1 1 1 6 1

Re: [R] Reverse the scoring of some Columns of a Data Set

2017-03-08 Thread Jeff Newmiller
Perhaps dta <- cbind( dta[ rev( seq.int( nrow( dta ) ) ), 1:3 ], dta[ , 4, drop=FALSE ] ) ? -- Sent from my phone. Please excuse my brevity. On March 8, 2017 6:14:25 AM PST, AbouEl-Makarim Aboueissa wrote: >Dear All: goods morning > >Is there is a way to reverse the scoring of the first thre

[R] Reverse the scoring of some Columns of a Data Set

2017-03-08 Thread AbouEl-Makarim Aboueissa
Dear All: goods morning Is there is a way to reverse the scoring of the first three columns x1, x2, and x3 and keep the original scores for the fourth column x4. *Here is an example of the data set:* x1 x2 x3 x4 2 5 4 4 1 1 1 6 1 2 1 6 2 3 2 4 1 2 1 6 1 3 1 6 2 2