ms2time: Convert milliseconds to a time string

Description Usage Arguments Examples

View source: R/exported.R

Description

This will take a duration of time in milliseconds and convert it to the time string format used by Datavyu.

Usage

1
ms2time(timestamps)

Arguments

timestamps

A numeric time duration in milliseconds, such as 6000ms representing six seconds.

Examples

1
2
3
4
5
# 1102013 = 18 minutes and 22 seconds and 13 milliseconds
ms2time(1102013)

timestamps <- c(0, 300000, 86399999)
ms2time(timestamps)

iamamutt/datavyur documentation built on Dec. 20, 2021, 5:57 p.m.