file_utility: WCCMH file utility functions

Description Usage Arguments Value Note See Also

Description

csv_to_rds reads

Usage

1
2
3
4
csv_to_rds(csv_file, keep_cols, rename_cols, rm.original)

load_data(work_dir, file_pattern, keep_cols = NULL, rename_cols = NULL,
  rm.original = FALSE)

Arguments

csv_file

the name of the file with the full file location.

keep_cols

the column names you want to retain.

rename_cols

column names to rename, defaults to NULL where no changes take effect.

rm.original

logical TRUE/FALSE whether to delete original csv file.

work_dir

the working direction containing either csv and/or rds files.

file_pattern

what file should be selected. Please make the file pattern select a unique file.

Value

A vector of recoded fund names.

Note

if you can get away from csv file storage, this is recommended. If you can get even further away from file storage on a hard drive and use a database, that is ideal.

See Also

file.path


JamesDalrymple/wccmh documentation built on May 7, 2019, 10:20 a.m.