Convert Time Series Data Frame to xts Object
dataFrameToXts(dataFrame, timeColumn = names(dataFrame)[posixColumnAtPosition(dataFrame)[1]])
dataFrame | data frame containing a timestamp column |
---|---|
timeColumn | name or number of time column. Default: first POSIXt-column in dataFrame |
xts object with timestamps taken from timestamp column. Non-numeric columns are removed.