Generaltransposefunction: General Transpose function

Description Usage Arguments Value Examples

View source: R/GeneralTransposingFunctions.R

Description

General Transpose function

Usage

1
2
3
4
5
6
Generaltransposefunction(
  tableA,
  id1,
  id2,
  origin = deparse(substitute(tableA))
)

Arguments

id1

A list of variables (rows)

id2

A list of variables (columns of the transposed table), id2 can contain as a last element the strint "rn", if the variable rn is an index for the cells formed by the variables listed first in id2

table

A dataframe

Value

A list: first element of the list is a dataframe, the transposed version of the orioginal table. Second element is a key to allow back transposition

Examples

1
2
3
4
tableA<-sampledata(TRUE)
id1=c("id1a","id1b")
id2=c("id2a","id2b")
TtableA<-Generaltransposefunction(tableA,id1,id2)

DanielBonnery/BigSyn documentation built on June 28, 2020, 7:18 p.m.