Description Usage Arguments Value Author(s) References See Also Examples

This function is called by the `mefa`

function to subset the community data matrix and the related data frames, but can be applied more generally for subsetting and ordering.

1 2 | ```
mefaTables(xtab, dframe, margin, index = NULL,
drop.index = FALSE, xtab.fixed = TRUE)
``` |

`xtab` |
a data matrix. |

`dframe` |
a data frame. |

`margin` |
margin of the |

`index` |
if |

`drop.index` |
logical, should the |

`xtab.fixed` |
logical, if |

Returns a list with elements `xtab`

(matrix) and `dtab`

(data frame), corresponding to the subsetted `xtab`

and `dframe`

data sets, respectively. Original column and row orderings in the input matrix `xtab`

are preserved.

P\'eter S\'olymos, solymos@ualberta.ca

S\'olymos P. (2008) mefa: an R package for handling and reporting count data. *Community Ecology* **9**, 125–127.

S\'olymos P. (2009) Processing ecological data in R with the mefa package. *Journal of Statistical Software* **29(8)**, 1–28. doi: 10.18637/jss.v029.i08

http://mefa.r-forge.r-project.org/

1 2 3 4 5 6 7 8 9 10 11 12 | ```
x <- matrix(rpois(20,1), 5, 4)
## Note the reverse alphabetical names
rownames(x) <- letters[5:1]
x
f <- data.frame(matrix(rnorm(30), 10, 3))
rownames(f) <- letters[1:10]
f
## Reverse alphabetical names preserved
mefaTables(x, f, 1)
## Now result is the intersect
rownames(f) <- letters[3:12]
mefaTables(x, f, 1, xtab.fixed = FALSE)
``` |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.