[R] hi have a question about merging.

Dieter Menne dieter.menne at menne-biomed.de
Thu Dec 9 08:39:11 CET 2010

helloR wrote:
> this is the problem:
> load this R data frame over the internet and save it to your hard drive.
> http://rss.acs.unt.edu/Rdoc/library/twang/data/raceproling.RData
> ... 
> please show how to save a dataset of males only (the variable male=1) to a
> new dataframe. Then do the now to merge:
> ..
Interesting homework.

helloR wrote:
> I tried >merge(newr,news)

In R-world, other than in c, you have to assign the result to change it.
Something like

realynew <- merge(....)

could help.

View this message in context: http://r.789695.n4.nabble.com/hi-have-a-question-about-merging-tp3079559p3079701.html
Sent from the R help mailing list archive at Nabble.com.

More information about the R-help mailing list