formatWideLong: Convert between wide and long data formats.
Description
Convert a data.frame between wide and long formats.Usage
formatWide(dfin, sep = ".", obsToY, type, ...)
formatLong(dfin, species = NULL, type)
Arguments
dfin
A data.frame to be reformatted.
sep
A seperator of column names in wide format.
obsToY
Optional matrix specifying relationship between covariate
column structure and response matrix structure.
type
Type of unmarkedFrame to create?
species
Character name of species response column