speciesCompositionsToDataFrame: Generate a data frame of the list of species composition...

View source: R/family_funks.R

speciesCompositionsToDataFrameR Documentation

Generate a data frame of the list of species composition integer vectors. Rows are named as families and columns as species.

Description

Generate a data frame of the list of species composition integer vectors. Rows are named as families and columns as species.

Usage

speciesCompositionsToDataFrame(spec.comps.lst,
  column.names = names(spec.comps.lst[[1]]),
  family.names = names(spec.comps.lst))

Arguments

spec.comps.lst

- A list of integer vectors generated by lapply function 'speciesComposition' on the gene families character vectors.

column.names

- A character vector of column names. Default is the names slot of the first entry of 'spec.comps.lst'

family.names

- A character vector of family names. Default is the names slot of argument list 'spec.comps.lst'

Value

A data frame: One row per family and one column per species with an extra column of the family sizes.


asishallab/GeneFamilies documentation built on May 22, 2023, 11:30 a.m.