[R] how to fill out the empty spots when using rbind or cbind?

Daniel Malter daniel at umd.edu
Sat Oct 3 02:19:02 CEST 2009


Fill the respective "empty" spots in the vectors with NAs.  

Daniel


-------------------------
cuncta stricte discussurus
-------------------------

-----Ursprüngliche Nachricht-----
Von: r-help-bounces at r-project.org [mailto:r-help-bounces at r-project.org] Im
Auftrag von tkedch at msn.com
Gesendet: Friday, October 02, 2009 6:13 PM
An: R help
Betreff: [R] how to fill out the empty spots when using rbind or cbind?


I have uneven vectors I want to use cbind or rbind to combine them into a
matrix. Is there a way to make it so that R would not return error msg
saying they're uneven? 
Thanks. 

Edward Chen
Email: tkedch at msn.com
Cell Phone: 510-371-4717


 		 	   		  
	[[alternative HTML version deleted]]

______________________________________________
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.




More information about the R-help mailing list