Indeed, I've worked with the solutions provided by others and the reshape
package has been very fluid to use. Thanks for the suggestion.
Chad
On Sat, Oct 10, 2015 at 4:56 PM, Frans Marcelissen <
fransiepansiekever...@gmail.com> wrote:
> I think this is what reshape is made for...
> Frans
>
Don't post in html, the list scrambles your tables. Assuming your data looks
like this
> rater.id <- c(1, 2, 1, 3, 2, 3)
> observation <- c(1, 1, 2, 2, 3, 3)
> rating <- c(6, 7, 4, 6, 2, 4)
> dat <- data.frame(rbind(rater.id, observation, rating))
> dat
X1 X2 X3 X4 X5 X6
rater.id
I think this is what reshape is made for...
Frans
--
rater.id <- c(1, 2, 1, 3, 2, 3)
observation <- c(1, 1, 2, 2, 3, 3)
rating <- c(6, 7, 4, 6, 2, 4)
dat=data.frame(rater.id,observation,rating)
library(reshape)
dat2<-melt(dat, id.vars =
3 matches
Mail list logo