Description Usage Arguments Author(s) Examples
Suport several data types included, data.frame(date, value), xts, zoo, ts or numeric. If numeric data are input, R try to build a date pattern for output in case of outType
is defined as "xts" or "df", otherwise it returns a ts object.
1 2 3 | ConvertData(Data, tsfrequency = "day",
dateformat = "%d/%m/%Y %H:%M:%S", OutType = "ts",
OutlierClean = TRUE, tz = Sys.getenv("TZ"), ...)
|
Data |
input data set |
tsfrequency |
data frequency. It can be "year", "month", "day", "hour", "min" or "sec" |
dateformat |
format for dates in case of data.frame data. See |
OutlierClean |
if TRUE compute outliers clean. See |
tz |
timezone. Default is the system tz |
... |
extra args |
outType |
output format os converted data. It can be "ts" "xts" or "df" data.frame |
LOPES, J. E.
1 2 3 4 5 6 | data(datasample)
ConvertData(datasample[,1:3], tsfrequency="day", dateformat='%d/%m/%Y %H:%M:%S',outType = "ts")
ConvertData(datasample[,1:3], tsfrequency="day", dateformat='%d/%m/%Y %H:%M:%S',outType = "xts")
#ConvertData(AirPassengers, tsfrequency = "month")
#ConvertData(rnorm(30), tsfrequency = "month")
#ConvertData(rnorm(30), tsfrequency = "month", outType = "xts")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.