On Aug 23, 2012, at 1:55 PM, ramoss wrote:

I am trying to concatenate 2 datasets that don't have exactly the same
column.
In SAS I did: data summary;
 set agency prop;
run;
No problem
in R I get error message
summary <-rbind(agency,prop)
Error in match.names(clabs, names(xi)) :
 names do not match previous names

This would be the point at which I would want to know the results of:

str(agency)
str(prop)


But when I use rbin.fill, that overwrites the second file w/ first one.
Is there a way to replicate the sas process in R?

Thanks in advance


Code... we want code.  .... and data.

PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


--
David Winsemius, MD
Alameda, CA, USA

______________________________________________
R-help@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.

Reply via email to