was {lazy.tools}R Documentation

Displays the attribuets and the structure of the input.

Description

Displays the attribuets and the structure of the input.

Usage

was(X, opt = 0)

Arguments

X

an object whose info we would like to have.

opt

= 1 to print structure only.
=2 to print attributes only.

Value

A list

Examples

  bool <- TRUE
  num <- 1
  cpl <- 1+1i
  strng <- "Hello."
  vec <- 1:10
  mat <- matrix(c(1, 2, 3), 3, 2)
  array <- array(1,c(2,2,2))
  df <- data.frame(a=1,b=letters[1:2])
  lis <- list(a=1:3, b="abc",NA)

  was(bool)
  was(num)
  was(cpl)
  was(strng)
  was(vec)
  was(mat)
  was(array)
  was(df)
  was(c)


[Package lazy.tools version 0.1.6 ]