Skip to content

Melt (reshape) question

4 messages · jim holtman, Hadley Wickham, Steve Murray

#
Probably as the result of read.table without any headers, the column
names are "V1"..."V720".  You need to add new column names.  You have
statements:

colnames <- columnnames
rownames <- rnames

Are you assuming that these are assigning row/column names to the
structure?  Try

colnames(PopDen) <- columnnames
On Tue, Jul 15, 2008 at 5:00 PM, Steve Murray <smurray444 at hotmail.com> wrote:

  
    
#
Judging from your output, the -99's haven't been converted to NA's -
you can fix this (and the 88s) by doing:

PopDens[PopDens == -99] <- NA
PopDens[PopDens == 88] <- NA

Hadley
#
Thanks very much to you both - it worked a treat!

Steve
_________________________________________________________________
100?s of Nikon cameras to be won with Live Search