db_summarize: Summarize the databases inside a folder.

Description Usage Arguments Details Value Author(s) Examples

View source: R/db-summarize.R

Description

db_summary write the summary of databases, founded inside a provided folder, into a file.

Usage

1
db_summarize(path_data, filename = "summary-databases.txt")

Arguments

path_data

The path where to look for .Rdata files.

filename

File name where to write the summary.

Details

When the filename is not specified, db_summary will create the file "summary-databases.txt".

Value

A character indicating the folder path.

Author(s)

Erick Albacharro Chacon-Montalvan

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
# Create a path with datasets to apply our function
data_path <- tempdir()
save(iris, file = file.path(data_path, "iris.RData"))
save(airquality, file = file.path(data_path, "airquality.RData"))

# Obtain the summary of all datasets included in an specific path
db_summarize(data_path, filename = file.path(data_path, "summary.txt"))

# Print the summary
readLines(file.path(data_path, "summary.txt"))

ErickChacon/day2day documentation built on May 6, 2019, 4:03 p.m.