wideToLong: Convert Dataframe from Wide to Long

Description Usage Arguments Examples

View source: R/wideToLong.R

Description

This function converts a data frame from wide format to long.

Usage

1
wideToLong(data, colSelections)

Arguments

data

This is the data source to be converted

colSelections

These are the columns (references by column number) that contain the values

Examples

1
2
3
library(dplyr)
mtcars2 <- mtcars %>% mutate(Car = row.names(mtcars)) %>% select(Car,mpg,cyl,disp)
dat <- wideToLong(mtcars2,c(2:4))

jsdeherrera/shinyBoots documentation built on May 20, 2019, 2:08 a.m.