matrix.to.grid: Convert data in matrix format to grid format with key columns...

Description Usage Arguments

View source: R/sktools.r

Description

Convert data in matrix format to grid format with key columns corresponding to for row and col names and a value colum

Usage

1
2
matrix.to.grid(dat, row.var = "row", col.var = "col", val.var = "value",
  row.values = rownames(dat), col.values = colnames(dat))

Arguments

dat

a data frame or matrix in matrix format

row.var

name of the variable corresponding to different rows

col.var

name of the variable corresponding to different columns

val.var

name of the variable corresponding to the values of the matrix

row.values

values of the row variable

col.values

values of the column variable


skranz/sktools documentation built on April 12, 2021, 11:43 a.m.