R/printwm_class.R

Defines functions print.wm

Documented in print.wm

#' Print class wm
#'
#' This is an S3 print function that Prints only the first 4 elements of
#' wm class objects.
#'
#' @param x Print object.
#' @param ... Other parameters associated with the \code{print()} function.
#' @returns A object containing only the first four items.
#' @keywords internal
#' @export
#' @examples
#' numbers<- 1:10
#' class(numbers)<-"wm"
#' numbers
#'
print.wm <- function(x,...) {
  print(x[c(1:4)])}  # define a new print function for the cm class

Try the BLA package in your browser

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

BLA documentation built on May 29, 2024, 10:32 a.m.