Description Usage Arguments Value Examples
The function takes a data-base type table and returns a table in wide format.
1 | layers_long2wide(x, rowname, colname)
|
x |
matrix or data frame that is to be reformatted |
rowname |
name of the variable that is used as the row name |
colname |
name of the variable that is used as the column name |
matrix
1 2 3 4 5 6 | ## Not run:
forcings <- read.table("forcings.txt", header=TRUE)
x <- as.matrix(forcings)
xx <- layers_long2wide(x, "time", "depth")
## End(Not run) % end dontrun
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.