concatTables: Concatenate frequency tables by station

Description Usage Arguments Value Examples

View source: R/concatTables.R

Description

This function looks for particular character sets in a string pulled from the filename and reads them. It is used recursively with getTable and read_whole_folder_RTW, for more information, please refer to the documentation for those functions

Usage

1
concatTables(stations, viewTable = FALSE, writeFile = FALSE)

Arguments

stations

a vector of type string containing the names of stations

viewTable

a logical argument that will display the output of the generated table, TRUE, concatTables will print the table

writeFile

a logical arugment that will write the file to the data folder included in the SWA portable designed for Amazon.

Value

dataframe of generated stop frequency by station

Examples

1
2
3
4
5
6
7
## Not run: 
dir <- paste0(paste0("C:/Users/", Sys.getenv("USERNAME")), "/Documents/R/WD/RTW")
setwd(dir)
stationNames <- c("DLA7", "DPS1")
weekStopFreq <- concatTables(stationNames, TRUE)

## End(Not run)

notsynonymous/SWA documentation built on Dec. 22, 2021, 3:13 a.m.