formatWideLong {unmarked} | R Documentation |
Convert a data.frame between wide and long formats.
formatWide(dfin, sep = ".", obsToY, type, ...) formatLong(dfin, species = NULL, type)
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 |
... |
Further arguments |
A data.frame