read_stn_csv: Read the last version csv, excel, fst or rds dataset in the...

Description Usage Arguments Value Examples

Description

read_stn_csv help to pick up the last version of the file in the directory by pattern in the file name

Usage

1
read_stn_csv (path = "1. data/", pattern = "DT.0575.SystemDyn.", sep = ";", type = "csv", header = T)

Arguments

path

Filder in string for reading dataset

pattern

the pattern string in filename

sep

separator in dataset

type

file extension either xls (xlsx), csv, fst or rsd

header

boolean. is header needed when csv. TRUE by default

sheet

name of excel sheet if needed. NULL by default

range

cells range for excel sheet if needed. NULL by default

Value

tibble

Examples

1
2
3
read_stn_csv (path = "1. data/", pattern = "DT.0722.BB.City", type = "rds")
read_stn_csv (path = "1. data/", pattern = "DT.0722.BB.City", type = "xls", sheet = "1", range = "B2:G14")
read_stn_csv (path = "1. data/", pattern = "DT.0575.SystemDyn.")

St-Digital-Twin/Dtwin documentation built on Jan. 1, 2022, 8:11 p.m.