Description Usage Arguments Details Value Examples
View source: R/rda_conversion.R
A function that loads raw data from a CSV file to a local variable.
1 2 | rda.conversion.loadDataFile(directory, file, header = T, sep = ",",
dec = ".", quote = "\"")
|
directory |
The directory in which the target |
file |
The file that should be loaded by this function. |
header |
|
sep |
Character specifying the |
dec |
Character specifying the decimal split |
quote |
Set of quoting characters. Defaults to |
The function first checks the existance of the given directory and
file. In case both exist, the specified file will be loaded
considering the loading parameters header, sep, dec and quote.
data.frame containing the data present in the specified
file.
1 2 3 4 | # Assuming the existance of directory 'dir' and file 'data.csv':
KaggleHouse:::rda.conversion.loadFile(
'dir', 'data.csv', header = T, sep = ";", dec = ".", quote = '\"'
)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.