| get.times {tempR} | R Documentation | 
Get times
Description
Convenience function to convert exported time labels, e.g. from character format c('time_0.1s', 'time_0.2s', ...) or related format to numeric format c(0.1, 0.2, ...).
Usage
get.times(time.char, trim.left = "time_", trim.right = "s")
Arguments
| time.char | vector of characters containing the time | 
| trim.left | string to be trimmed from left | 
| trim.right | string to be trimmed from right | 
Details
Convenience function for getting times from column headers from common data export formats.
Value
times vector of times in numeric format
Examples
get.times(colnames(bars)[-c(1:4)])
(sample.colnames <- paste0("X", 0:30))
get.times(sample.colnames, trim.left = "X", trim.right = "")
[Package tempR version 0.10.1.1 Index]