Skip to main content

LENGTH

Function LENGTH 

Source
unsafe fn LENGTH(x: SEXP) -> c_int
Expand description

Get the length of a SEXP as int (for short vectors < 2^31).

For long vectors, use Rf_xlength() instead. Returns 0 for R_NilValue. Checked wrapper for LENGTH. Calls LENGTH_unchecked and routes through with_r_thread. Generated from source location line 2260, column 8. Generated from source file miniextendr-api/src/ffi.rs.