Learn R Programming

do (version 2.0.0.1)

reshape_toLong: Convert Wide Data to Long

Description

It is easy to convert wide data to long in this function. Be careful, id must be unique. prefix, suffix and var.names can be used together.

Usage

reshape_toLong(data, prefix = NULL, suffix = NULL, var.names = NULL)

Value

long data

Arguments

data

wide data

prefix

prefix of value variables

suffix

suffix of value variables

var.names

names of value variables, do.value will be created as the name of value column