nobs: Get Number of Observations

View source: R/allgeneric.R

nobsR Documentation

Get Number of Observations

Description

This function retrieves the number of observations from a given object.

Usage

nobs(x)

Arguments

x

The input object, which can be of different types, such as a data frame, matrix, or a custom object with a defined 'nobs' method.

Value

The number of observations in the input object. Depending on the object type, this could be the number of rows or elements.


bbuchsbaum/rMVPA documentation built on Feb. 1, 2024, 8:45 p.m.