Learn R Programming

algebraic.dist (version 0.9.1)

dim.finite_set: Return the dimension of the finite set.

Description

Return the dimension of the finite set.

Usage

# S3 method for finite_set
dim(x)

Value

Integer; the dimension of the set.

Arguments

x

A finite set.

Examples

Run this code
fs <- finite_set$new(c(1, 3, 5, 7))
dim(fs) # 1

Run the code above in your browser using DataLab