View source: R/interface.loadData.R
loadData | R Documentation |
This function helps with the data loading by wraping different functions accessible in the feR package and that together make a complete and seamless data loading procedure
loadData( file = NULL, sheetIndex = 1, folder = "DATOS/", var.to.upper = TRUE, var.forbiden.chars = c(" ", ".", ":", ";", "-", "__", "(", ")", "[", "]", "{", "}", "$", "%", "&", "/", "\\", "!"), var.forbiden.last.char = c("_", " "), var.empty.starts.char = c("_"), guess.factor = TRUE, max.factor.cat = 10, verbose = TRUE, DEBUG = FALSE )
file |
String; file name or empty if you want the 'folder' listed for you to choose file |
sheetIndex |
numeric (default=1); if data file is an excel/calc file what sheet should be loaded |
folder |
String; folder inside the project filder where data files can be found |
var.to.upper |
boolean (default=FALSE); return all caps |
var.forbiden.chars |
string vector (see details); characters to ve removed from the string |
var.forbiden.last.char |
string vector (see details); characters to remove if they are the last character in the string |
var.empty.starts.char |
strings vector (see details); characters that if found at the very beggining of the string could mean that the variable is empty |
guess.factor |
boolean (default=TRUE); try to guess variables that are indeed factors |
max.factor.cat |
num (default=10); max number of unique values after which a variable is not considered a factor anymore |
verbose |
boolean (default=TRUE); if you want the function to be verbose |
DEBUG |
boolean (default=FALSE); even more verbose |
data.frame; data frame with variable names corrected and nameless vars removed
This function wrap [strClean][feR::strClean()] for string cleaning (used to clean var names), [feR::loadFile()], wrapped by the function
[roxygen2::roxygenize()], 'browseVignettes("roxygen2")'
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.