mainClass: Main Class of an Object

View source: R/mainClass.R

mainClassR Documentation

Main Class of an Object

Description

Returns the first element of what class(x) returns

Usage

mainClass(x)

Arguments

x

any R object

Value

name of main class of x (vector of character of length one)

Examples

class(as.POSIXct("2022-06-02"))
mainClass(as.POSIXct("2022-06-02"))

KWB-R/kwb.utils documentation built on April 1, 2024, 7:12 a.m.