saveCSV {expowo}R Documentation

Fastly save CSV file within a current date folder

Description

Uses fwrite to fastly write a CSV file within a current date subfolder of a provided specific directory.

Usage

saveCSV(df,
        dir = "results",
        filename = "output",
        verbose = TRUE,
        append = FALSE,
        save = TRUE,
        foldername = NULL)

Arguments

df

Any input list of same length vectors (e.g. data.frame and data.table).

dir

Pathway to the computer's directory, where the file will be saved provided that the argument save is set up in TRUE. The default is to create a directory named results and the input data.frame will be saved within a subfolder named after the current date.

filename

Name of the output file to be saved. The default is to create a file entitled output.

verbose

Logical, if FALSE, a message showing the saving process will not be printed in the console in full.

append

Logical, if TRUE, the file is opened in append mode and column names (header row) are not written.

save

Logical, if FALSE, the input data.frame will be not be saved on disk.

foldername

A parameter only for internal use with expowo's main functions. You must keep this always as NULL.

Author(s)

Debora Zuanny & Domingos Cardoso

Examples


library(expowo)

res <- powoGenera(family = "Lecythidaceae",
                  verbose = TRUE,
                  save = FALSE)

saveCSV(res,
        dir = "results_powoGenera",
        filename = "Lecythidaceae_search",
        append = FALSE)



[Package expowo version 2.0 Index]