on Kiss [mailto:sjk...@gmail.com]
Sent: Friday, September 5, 2014 10:22 AM
To: David L Carlson
Cc: r-help@r-project.org
Subject: Re: [R] Turn Rank Ordering Into Numerical Scores By Transposing A Data
Frame
HI, of course.
The a mini-version of my data-set is below, stored in d2. Then the code I'
quot;red", "blue", "green", "yellow",
NA), 4
mydf <- data.frame(rows=1:100, mydf)
colnames(mydf) <- c("row", "rank1", "rank2", "rank3", "rank4")
mymelt <- melt(mydf, id.vars=1, measure.vars=2:5, variabl
Carlson
Cc: r-help@r-project.org
Subject: Re: [R] Turn Rank Ordering Into Numerical Scores By Transposing A Data
Frame
Hi David and list:
This is working, except at this command
mycast <- dcast(mymelt, row~color, value.var="rank", fill=0)
dcast is using "length" as the defau
1 3
> 3 33 2 0 1 4
> 4 42 4 0 3 1
> 5 53 4 2 0 1
> 6 6 4 3 2 0 1
>
> David C
>
> -Original Message-
> From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On
> Behalf Of
vid C
-Original Message-
From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On
Behalf Of David L Carlson
Sent: Sunday, August 17, 2014 6:32 PM
To: Simon Kiss; r-help@r-project.org
Subject: Re: [R] Turn Rank Ordering Into Numerical Scores By Transposing A Data
Frame
The
4 3 2 0
David C
-Original Message-
From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On
Behalf Of Simon Kiss
Sent: Friday, August 15, 2014 3:58 PM
To: r-help@r-project.org
Subject: Re: [R] Turn Rank Ordering Into Numerical Scores By Transposing A Data
F
M University
> College Station, TX 77840-4352
>
> -Original Message-
> From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On
> Behalf Of Simon Kiss
> Sent: Friday, July 25, 2014 2:34 PM
> To: r-help@r-project.org
> Subject: [R] Turn Rank Ordering I
4 3 2 1
63 4 2 1
-
David L Carlson
Department of Anthropology
Texas A&M University
College Station, TX 77840-4352
-Original Message-
From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On
Behalf Of S
Hello:
I have data that looks like mydf, below. It is the results of a survey where
participants were to put a number of statements (in this case colours) in their
order of preference. In this case, the rank number is the variable, and the
factor level for each respondent is which colour they a
9 matches
Mail list logo