#dataformatter R package to format data for meta-analysis
###dependencies
V8
###contents
wide2long
- R wrapper for CINeMA's wideToLong function in js
data
is the dataset.type
:"binary"
or"continuous"
data
is the dataset.fields
:"binary"
or"continuous"
or a list of the column names starting with study id, i.e.c("study","treat","r","n")
###installation
install.packages("V8")
install_github("esm-ispm-unibe-ch/dataformatter")
###usage
library(dataformatter)
longData = readxl("./somedataset.xls")
wideData = long2wide(longData,c("id","t","r","n"))
in the above example we defined manually the fields' names, which is the same as
wideData = long2wide(longData,"binary")
see cinema.ispm.ch/#doc for the default field names.