table_import | R Documentation |
A small variation of the original read.table
that most of the time detect automatically the field separator character. It also includes the option to run the format_corrector
function in order to detect, for example, the date variables included in the original data set. If the function don't recognize any separator, it asks to specify the real one.
table_import(file,sep=F,format_corrector=F,...)
file |
The patch to he file which the data are to be read from. |
sep |
The field separator character, see |
format_corrector |
If True, it runs the |
... |
More arguments from |
The format_corrector
function is a complicated function so it's not recommended to run it unless the data set contains awkward variables like dates.
A data frame containing the data stored in the file.
This function might have problems if any of the fields contain typical separators, so it's always recommended to check the resulting data frame in order to avoid possible errors.
read.table
## Not run:
x <- table_import('mydata.csv',format_corrector=T)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.