File: get_length.Rd

package info (click to toggle)
r-cran-bit 4.0.4%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 996 kB
  • sloc: ansic: 5,083; makefile: 6
file content (24 lines) | stat: -rw-r--r-- 516 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/integerutil.R
\name{get_length}
\alias{get_length}
\title{Get C length of a vector}
\usage{
get_length(x)
}
\arguments{
\item{x}{a vector}
}
\value{
integer scalar
}
\description{
Gets C length of a vector ignoring any length-methods dispatched by classes
}
\details{
Queries the vector length using C-macro \code{LENGTH}, this can be substantially faster than \code{length(unclass(x))}
}
\examples{
length(bit(12))
get_length(bit(12))
}