thin_csv_or_rds: thins a csv or rds file, saves it with new name, optionally...

View source: R/general_functions.R

thin_csv_or_rdsR Documentation

thins a csv or rds file, saves it with new name, optionally deletes old file

Description

thins a csv or rds file, saves it with new name, optionally deletes old file

Usage

thin_csv_or_rds(filename, thin, save_as_rds, remove_after)

Arguments

filename

character vector of length 1: with .csv or .rds extension

thin

numeric vector of length 1 (must be in integer if not integer format): thin every this many iterations

save_as_rds

logical vector of length 1: if TRUE, save thinned chain as rds regardless of extension of filename; if FALSE, save as original extension

remove_after

logical vector of length 1: remove old file if TRUE


ada-w-yan/deltaomicron1 documentation built on June 24, 2022, 5:41 a.m.