hhsmmdata function

convert to hhsmm data

convert to hhsmm data

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

hhsmmdata(x, N = NULL)

Arguments

  • x: a matrix of data
  • N: a vector of sequence lengths. If NULL then N = nrow(x)

Returns

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

Examples

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

Author(s)

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

  • Maintainer: Morteza Amini
  • License: GPL-3
  • Last published: 2024-09-04

Useful links