SciencesPo (version 1.3.8)

nobs: Number of observations

Description

Number of observations

Usage

nobs(object, ...)

## S3 method for class 'numeric': nobs(object, ...)

## S3 method for class 'integer': nobs(object, ...)

## S3 method for class 'matrix': nobs(object, ...)

## S3 method for class 'data.frame': nobs(object, ...)

Arguments

object
the data object
...
some extra parameters.

Value

  • The number of observations.

Examples

Run this code
nobs(1:50)
nobs(10)
nobs(as.matrix(1:10))

Run the code above in your browser using DataLab