View source: R/select_timeDF.R
select_timeDF | R Documentation |
select_timeDF function
select_timeDF(timeDF, colnames)
timeDF |
timeDF object |
colnames |
column names to be selected, chracter vector |
select_timeDF function returns a new timeDF object with columns specified and the column holding time information.
timeDF object
timeDF-class
time_df = data.frame(
time = c("2023-12-01 01:00:00",
"2023-12-01 05:00:00",
"2023-12-01 09:00:00",
"2023-12-01 13:00:00",
"2023-12-01 17:00:00",
"2023-12-01 21:00:00"),
value = c(123,
144,
150,
100,
200,
180),
phase = c("A",
"A",
"B",
"B",
"C",
"C")
)
timeDF = as.timeDF(time_df)
select_timeDF(timeDF, c("phase"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.