save_locally: Save several files locally based on a nesting variable

Description Usage Arguments Value Examples

View source: R/save_locally.R

Description

Cut a dataframe into several pieces based on a nesting variable, and save these pieces separately in a specified folder with a specified postfix.

Usage

1
save_locally(df, local_path, nesting, postfix, overwrite)

Arguments

df

a data frame that should be saved in segments

local_path

a full path <chr> where the files will be saved as .csv

nesting

variable name <chr> that will used as nesting variable

postfix

a string <chr> that will be appended to the end of the file name

overwrite

overwrite files <lgl>? (default = FALSE)

Value

No output, this function exerts a side-effect.

Examples

1
2
3
4
5
6
7
8
## Not run: 
save_locally(articles,
             "d:/temp/screening/",
             nesting = "reviewer",
             postfix = "",
             overwrite = TRUE)

## End(Not run)

nthun/metamanager documentation built on Aug. 9, 2019, 1:37 p.m.