R/as.alignment.R

Defines functions as.alignment

Documented in as.alignment

#
# Constructor for class alignment
#
as.alignment <- function(nb = NULL, nam = NULL, seq = NULL, com = NULL){
  ali <- list(nb = as.numeric(nb), nam = nam, seq = seq, com = com)
  class(ali) <- "alignment"
  return(ali)
}

Try the seqinr package in your browser

Any scripts or data that you put into this service are public.

seqinr documentation built on March 31, 2023, 3:05 p.m.