Learn R Programming

libr (version 1.3.9)

length.dsarray: Length function for dsarray class

Description

A length function for the data step array dsarray. The length function can by used either inside or outside the data step.

Usage

# S3 method for dsarray
length(x)

Value

The number of items in the specified dsarray.

Arguments

x

The dsarray object.

See Also

Other datastep: [.dsarray(), datastep(), delete(), dsarray(), dsattr(), output()

Examples

Run this code
# Define datastep array
carr <- dsarray(names(mtcars))

length(carr)
# 11

Run the code above in your browser using DataLab