View source: R/date_conversion.R
dates_to_posix | R Documentation |
convert date/time column of sample_annotation to POSIX format required to keep number-like behavior
dates_to_posix(sample_annotation, time_column = c("RunDate", "RunTime"),
new_time_column = "DateTime", dateTimeFormat = c("%b_%d",
"%H:%M:%S"), tz = "GMT")
sample_annotation |
data frame with:
.
See |
time_column |
name of the column(s) where run date & time are specified. These will be used to determine the run order |
new_time_column |
name of the new column to which date&time will be converted to |
dateTimeFormat |
POSIX format of the date and time.
See |
tz |
for time zone |
sample annotation file with a new column new_time_column
with
POSIX-formatted date
date_to_posix <- dates_to_posix(example_sample_annotation,
time_column = c('RunDate','RunTime'),
new_time_column = 'DateTime_new',
dateTimeFormat = c("%b_%d", "%H:%M:%S"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.