getC {RCPA3}R Documentation

Imports common dataset file types into R environment

Description

If you don't complete file argument, you will be prompted to select file. Supports dataset file format like Stata, SPSS, Rdata, and csv files. It previews imported data and asks you to confirm before returning a data frame. You must assign the returned data frame to an object to work with it. If getC doesn't support a file type, it may suggest other functions and packages for importing that type of file.

Usage

getC(file, confirm = TRUE, ...)

Arguments

file

(Optional) Path to file you want to get and load in your R session; if you do not specify file you will be prompted to select one.

confirm

(Optional) Do you want to confirm getting file before function results returned? (default: TRUE)

...

(Optional) Additional arguments passed to loading function

Value

Dataset specified in file argument as a data frame. You must assign this returned data frame to an object to work with it.

RCPA3 Package Tutorial Videos

Textbook References

Online Resources

Examples

   library(RCPA3)
   
   # basic call will prompt user to choose file
   ## Not run:  
   getC()
   
## End(Not run)

[Package RCPA3 version 1.2.1 Index]