getC | R Documentation |
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.
getC(file, confirm = TRUE, ...)
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 |
Dataset specified in file argument as a data frame. You must assign this returned data frame to an object to work with it.
Complete Playlist of RCPA3 Package Tutorial Videos, includes video for this function and many more.
Philip H. Pollock and Barry C. Edwards, An R Companion to Political Analysis, 3rd Edition (Thousand Oaks, CA: Sage Publications, Forthcoming 2022), Chapter 15.
Philip H. Pollock and Barry C. Edwards, The Essentials of Political Analysis, 6th Edition (Thousand Oaks, CA: Sage Publications, 2020), pp. 321-327. ISBN-13: 978-1506379616; ISBN-10: 150637961.
R Tutorials & Resources for Doing Your Own Political Analysis, Compiled by Barry C. Edwards
Sage Edge Resources for Political Analysis Series, for streaming videos, flashcards, and more student resources for textbooks by Pollock and Edwards, from Sage Publications.
Political Science Data Web Site: Find datasets for your own research and resources to help with the analysis.
library(RCPA3)
# basic call will prompt user to choose file
## Not run:
getC()
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.