Description Usage Arguments Details Author(s) See Also Examples
A simple wrapper of read.zoo with some defaults for different date formats and xts conversion
1 2 3 |
filename |
the name of the file to be read |
frequency |
|
format.in |
says how the data being read is formatted. Although the default is set to the ISO 8601 standard (which can also be set as " spreadsheets have less sensible date formats as defaults. See below. |
sep |
separator, default is "," |
header |
a logical value indicating whether the file contains the names of the variables as its first line. |
check.names |
logical. If TRUE then the names of the
variables in the data frame are checked to ensure that
they are syntactically valid variable names. If necessary
they are adjusted (by make.names) so that they are, and
also to ensure that there are no duplicates. See
|
... |
passes through any other parameters to
|
The parameter 'format.in' takes several values, including:
default date format for MS Excel spreadsheet csv format, which is "%m/%d/%Y"
default date format for OpenOffice spreadsheet csv format, "%m/%d/%y", although this may be operating system dependent
default date format for Gnumeric spreadsheet, which is "%d-%b-%Y"
alternatively, any specific format may be passed in, such as "%M/%y"
Peter Carl
1 2 3 4 | ## Not run:
Return.read("managers.cvs", frequency="d")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.