R/oin_methods.R

Defines functions `[<-.oin` `[<-.oin` c.oin

#' @export
print.oin <- function (x,...) 
{
  print(as.character(x),...)
  cat("Organizational identity number(s)")
}

#' @export
`[.oin` <- create_s3_method("[")

#' @export
rep.oin <- create_s3_method("rep")

#' @export
`[<-.oin` <- function(x, ..., value){
  value <- as.oin(value)
  NextMethod()
}

#' @export
`[<-.oin` <- function(x, ..., value){
  value <- as.oin(value)
  NextMethod()
}

#' @export
c.oin <- function(..., recursive = FALSE){
  args <- list(...)
  if (!length(args)) return(as.oin(character()))
  as.oin(unlist(lapply(args, as.character)))
}

Try the sweidnumbr package in your browser

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

sweidnumbr documentation built on March 31, 2020, 5:24 p.m.