Skip to content
Back to formatted view

Raw Message

Message-ID: <f8e6ff050901291213q20f0df1dn7075b6f4e7e92e6@mail.gmail.com>
Date: 2009-01-29T20:13:47Z
From: Hadley Wickham
Subject: Stacking data
In-Reply-To: <349221.7600.qm@web28407.mail.ukl.yahoo.com>

? ? ? ? ? ? ? ? ? ?  ? ?  27193? ? ?  30949 ?  ? ?  V2
>
> But i have 41 columns (age column?  +?  40 individuals)
> I have the following script but an error is thrown up
> can anyone help, where am i going wrong
>
> zz <- read.csv("Filename.csv",strip.white = TRUE)

Try this:

install.packages("reshape")
library(reshape)
zzz <- melt(zz)

Hadley

-- 
http://had.co.nz/