LSRPrisma_convert: Convert Data for LSR Prisma Flow Diagram between formats

Description Usage Arguments Value Examples

Description

Function to convert input data uploaded from format used in Approach 1 (all updates added as separate columns) to one of Approaches 2 to 4. Columns are summarised in a single column (Approach 2), base plus updates (Approach 3), or all updates and latest update (Approach 4). The function wraps LSRPrisma_data() so that data can be directly passed to the flow diagram creation function.

Usage

1
LSRPrisma_convert(data, format = "approach1")

Arguments

data

Unprocessed data provided in accordance with the 'template.csv' file.

format

The desired output approach based on the four potential layout formats for living systematic review PRISMA flow diagrams. Options are: 'approach1' with each update provided as a separate column; 'approach2' with the base and all updates combined into one column; 'approach3' with the base and all updates as two separate columns; and 'approach4' with the base plus previous updates and the final update provided as two separate columns.

Value

List of objects needed by LSRPRISMA_flow().

Examples

1
2
3
4
5
6
## Not run: 
data <- read.csv('inst/extdata/approach1.csv')
flowdata <- LSRPrisma_convert(data, format = 'approach4')


## End(Not run)

nealhaddaway/livingPRISMAflow documentation built on Dec. 22, 2021, 12:08 a.m.