ConvertTime: Extract and Convert Time Data to Decimal Hours

ConvertTimeR Documentation

Extract and Convert Time Data to Decimal Hours

Description

The function extracts and converts run time information from MARS output.

Usage

ConvertTime(raw)

Arguments

raw

Output from MARS.

Value

A data frame containing the time information in decimal hours.

Examples

# Example with "hours and minutes" format
raw_data <- data.frame(
  V1 = c("Header", "Row1", "Row2"),
  V2 = c("Time", "1 h 30 min", "2 h 45 min")
)
plate_time <- ConvertTime(raw_data)
print(plate_time)

# Example with decimal hours format
raw_data2 <- data.frame(
  V1 = c("Header", "Row1", "Row2"),
  V2 = c("Time", "1.5", "2.75")
)
plate_time2 <- ConvertTime(raw_data2)
print(plate_time2)


QuICSeedR documentation built on Sept. 11, 2024, 8:21 p.m.