Learn R Programming

hhsmm (version 0.4.2)

hhsmmdata: convert to hhsmm data

Description

Converts a matrix of data and its associated vector of sequence lengths to a data list of class "hhsmmdata"

Usage

hhsmmdata(x, N = NULL)

Value

a data list of class "hhsmmdata" containing x and N

Arguments

x

a matrix of data

N

a vector of sequence lengths. If NULL then N = nrow(x)

Author

Morteza Amini, morteza.amini@ut.ac.ir

Examples

Run this code
x = sapply(c(1, 2), function(i) rnorm(100, i, i/2))
N = c(10, 15, 50, 25)
data = hhsmmdata(x, N)

Run the code above in your browser using DataLab