loadAndView: Load and View Files

Description Usage Arguments Value Examples

View source: R/AmerAssocIndividInvestorsAAII.R

Description

Creates a data.frame from each file. Loads those data.frames into the "env" environment. Calls View() upon each data.frame (so the user may see the data).

Usage

1
loadAndView(SubPathFileExt, HowFileName = "fileName", env, ...)

Arguments

SubPathFileExt

Location of the file.

HowFileName

String. Function name to determine which part (or all of the FileName) to be the new R object name. Expected values are "fileName", "filePostFixName", or "filePreFixName".

env

Target environment to load data.frames. Default is the global environment (.GlobalEnv)

Value

String. Name of the data.frame loaded. data.frames are loaded into the environment. Attempted to be started is View() upon each data.frame.

Examples

1
2
3
4
5
6
7
8
## Not run: 
e <- new.env()
loadAndView(c(
  "C:\\Program Files (x86)\\Stock Investor\\Professional\\setup.dbf",
  "C:\\Program Files (x86)\\Stock Investor\\Professional\\Static\\si_isq.dbf"
), env = e)

## End(Not run)

AndreMikulec/econModel documentation built on June 30, 2021, 9:48 a.m.