Re: [R] Generating maps in R (Roger Bivand)

From: Aleksandr Andreev <aleksandr.andreev_at_duke.edu>
Date: Tue, 01 Apr 2008 21:54:39 -0400


Roger Bivand Roger.Bivand at nhh.no writes:

>This was exactly why I emphasised care. One way to try to do this is

> to extract the FS data slot:
> FSd <- as(FS, "data.frame")
> and then merge() FSd and agg2, using - untried - something like:
> FS1d <- merge(FSd, agg2, by="row.names", all=TRUE)

It worked after I added one more step:

row.names(FS1d) <- FS1d$SUBJECT

Thanks!

Aleksandr Andreev
Duke University



R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Received on Wed 02 Apr 2008 - 01:57:57 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Wed 02 Apr 2008 - 02:30:25 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive