Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 91bd4ee969
Fetching contributors…

Cannot retrieve contributors at this time

34 lines (32 sloc) 0.744 kb
\name{ms}
\alias{ms}
\title{Create a period with the specified number of minutes and seconds}
\usage{
ms(...)
}
\arguments{
\item{...}{character or numeric vectors of minute second
pairs}
}
\value{
a vector of class \code{Period}
}
\description{
Transforms character or numeric vectors into a period
object with the specified number of minutes and seconds.
ms() Arbitrary text can separate minutes and seconds.
Fractional separator is assumed to be ".".
}
\examples{
x <- c("09:10", "09:02", "1:10")
ms(x)
# [1] 9 minutes and 10 seconds 9 minutes and 2 seconds 1 minute and 10 seconds
ms("7 6")
# [1] 7 minutes and 6 seconds
ms("6,5")
# 6 minutes and 5 seconds
}
\seealso{
\code{\link{hms}, \link{hm}}
}
\keyword{period}
Jump to Line
Something went wrong with that request. Please try again.