| numberOfCases | R Documentation |
Different representations of datasets provide its elements in a very different way. This function provides a uniform interface to figure get the number of cases in a dataset.
numberOfCases(x)
## S3 method for class 'data.frame'
numberOfCases(x)
## Default S3 method:
numberOfCases(x)
x |
a dataset, of which the number of cases shall be counted. It can be a numeric vector, a matrix, a data.frame, a compositional dataset, or a BData object. |
an integer
numberOfCases(data.frame): method for dataframes
numberOfCases(default): method for lists and numeric, BDataDensities,...
data(iris)
numberOfCases(iris$Sepal.Length)
numberOfCases(iris)
numberOfCases(lapply(1:numberOfCases(iris),function(i) iris[i,]))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.