R/stdvectors.R

Defines functions toString.stdvector print.stdvector is.stdvector

Documented in is.stdvector print.stdvector toString.stdvector

toString.stdvector <- function(x,...){
  len <- stdvectorSize(x)
  return(paste('stdvector of',.getStringFromType(x$type),' with',len,'elements'))
}
print.stdvector <- function(x,...){
  print(toString.stdvector(x))
}
is.stdvector <- function(x){
  inherits(x,'stdvector')
}

Try the stdvectors package in your browser

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

stdvectors documentation built on May 1, 2019, 9:18 p.m.