R/oin_methods.R

Defines functions c.oin `[<-.oin` `[<-.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)))
}
rOpenGov/sweidnumbr documentation built on Jan. 19, 2024, noon