Learn R Programming

bandicoot (version 1.0.0)

BASE$..len..: Length of the class or the instance

Description

User could override this method in derived class.

Usage

BASE$..len..()

Arguments

Examples

Run this code

BASE$..len..()

# Inherit from BASE
TEST <- new_class(BASE, class_name = "TEST")

# Override the `..len..` method
register_method(TEST, ..len.. = function() 1)
TEST$..len..()

Run the code above in your browser using DataLab