num_elements: Number of elements

View source: R/generics.R

num_elements.coded_vecR Documentation

Number of elements

Description

Returns the number of elements in an object. For an object of class vec, this will be the length of the vector. For an object of class corpus, this will be the sum of the lengths of its constituent sequences.

Usage

## S3 method for class 'coded_vec'
num_elements(x)

## S3 method for class 'corpus'
num_elements(x)

num_elements(x)

## S3 method for class 'vec'
num_elements(x)

Arguments

x

Object to analyse.

Value

The size of x, as an integer scalar.


pmcharrison/hrep documentation built on Feb. 18, 2024, 2:33 a.m.