me.spread: Spread an dataframe.

Description Usage Arguments Value Examples

View source: R/spread.R

Description

Transforms columns into rows and rows into columns.

Usage

1
me.spread(data, namenc = " ", mode = FALSE)

Arguments

data

a dataframe

namenc

name of new column (first column) (default="")

mode

if results are incorretly try set this to TRUE

Value

Return a dataframe.

Examples

1
2
v=data.frame('date'=c('2016','2017'),'value1'=c(12,10),'value2'=c(8,6))
me.spread(v,namenc='old header')

metools documentation built on July 2, 2020, 2:28 a.m.

Related to me.spread in metools...