[R] creating vectors with three variables out of three datasets

Erik Iverson eriki at ccbr.umn.edu
Thu Nov 4 22:50:10 CET 2010



DomDom wrote:
> Hi there,
> 
> i´ve got a problem with how to create a vector with three variables out of
> three seperate ascii files.
> These three ascii files contain pixel information of the same image but
> different bands and i need a matrix of 
> vectors, with each vector containing the corresponding pixel values for each
> band. 
> 
> Up to now i´ve seperately read out the ascii files into three matrices but
> don´t know how to put the corresponding pixel values together.

Perhaps rbind or cbind, see ?rbind.

It would be useful if you gave us a small, reproducible example
of the type of data you have and what you want to do with it, please
see the Posting Guide.



> 
> Looking forward to any help.
> Thank you
> 
> Dominik
> 
> 
> 
> 
> ------------------------------------------------------------------------
> 
> ______________________________________________
> 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