Re: [R] Subsetting a square marix

2016-01-05 Thread David L Carlson
tutorials so that you understand how R works. - David L Carlson Department of Anthropology Texas A&M University College Station, TX 77840-4352 -Original Message- From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of Sarah Goslee Sent: Tue

Re: [R] Subsetting a square marix

2016-01-05 Thread Sarah Goslee
It really isn't clear what you want, and posting in HTML has mangled what you did provide. Please use dput() to provide sample data, and give us a clear idea of what you want, ideally an example of what the output should look like. Adding the R code you've tried to use is also a good idea. Sarah

[R] Subsetting a square marix

2016-01-05 Thread Tawanda Tarakini
I have a global matrix (e.g. table below) of species feeding. I am trying to create specific matrix for specific sites. If for example a subset is to have sp1, sp3 and spp only these 3 species should be appearing in the subset (both column and rows). I have been checking online help but I seem not