Learn R Programming

timeDF (version 0.9.0)

as.data.frame.timeDF: Convert timeDF object to a plain dataframe

Description

Convert timeDF object to a plain dataframe.

Usage

# S3 method for timeDF
as.data.frame(x,row.names=NULL,optional=FALSE,format =
"%Y-%m-%d %H:%M:%S",...)

Value

dataframe

Arguments

x

timeDF object

row.names

same as as.data.frame in base

optional

same as as.data.frame in base

format

character element that describes how times in timeDF are converted to chracters

...

Further arguments passed to or from other methods

Details

Convert timeDF object to a plain dataframe.

See Also

timeDF-class timeDF-package

Examples

Run this code
# \dontshow{
    time_df = data.frame(
        time = c("2023-12-01 01:00:00",
                 "2023-12-01 02:00:00",
                 "2023-12-01 03:00:00",
                 "2023-12-02 04:00:00"),
        value = c(123,
                  144,
                  150,
                  100)
    )
    timeDF = as.timeDF(time_df)
# }
as.data.frame(timeDF)

Run the code above in your browser using DataLab