A length function for the data step array dsarray
.
The length function can by used either inside or outside the data step.
# S3 method for dsarray length(x)
x | The |
---|
The number of items in the specified dsarray
.
# Define datastep array carr <- dsarray(names(mtcars)) length(carr) # 11