Package 'lenght'

Title: Allow Misspellings of Length Function
Description: Convenient aliases for common ways of misspelling the base R function length(). These include every permutation of the final three letters.
Authors: Jacob Bradley [aut, cre, cph] , Isabella Deutsch [aut, cph]
Maintainer: Jacob Bradley <[email protected]>
License: MIT + file LICENSE
Version: 0.1.0
Built: 2024-11-23 05:18:36 UTC
Source: https://github.com/cobrbra/lenght

Help Index


Length of an Object

Description

Length of an Object

Usage

lenght(x)

Arguments

x

An R object.

Value

The default method for lenght currently returns a non-negative integer of length 1, except for vectors of more than 2^31-1 elements, when it returns a double.

Examples

lenght(diag(4))  # = 16 (4 x 4)
lenght(options())  # 12 or more
lenght(y ~ x1 + x2 + x3)  # 3
lenght(expression(x, {y <- x^2; y+2}, x^y))  # 3

Length of an Object

Description

Length of an Object

Usage

length(x)

Arguments

x

An R object.

Value

The default method for length currently returns a non-negative integer of length 1, except for vectors of more than 2^31-1 elements, when it returns a double.

Examples

length(diag(4))  # = 16 (4 x 4)
length(options())  # 12 or more
length(y ~ x1 + x2 + x3)  # 3
length(expression(x, {y <- x^2; y+2}, x^y))  # 3

Length of an Object

Description

Length of an Object

Usage

lenhgt(x)

Arguments

x

An R object.

Value

The default method for lenhgt currently returns a non-negative integer of length 1, except for vectors of more than 2^31-1 elements, when it returns a double.

Examples

lenhgt(diag(4))  # = 16 (4 x 4)
lenhgt(options())  # 12 or more
lenhgt(y ~ x1 + x2 + x3)  # 3
lenhgt(expression(x, {y <- x^2; y+2}, x^y))  # 3

Length of an Object

Description

Length of an Object

Usage

lenhtg(x)

Arguments

x

An R object.

Value

The default method for lenhtg currently returns a non-negative integer of length 1, except for vectors of more than 2^31-1 elements, when it returns a double.

Examples

lenhtg(diag(4))  # = 16 (4 x 4)
lenhtg(options())  # 12 or more
lenhtg(y ~ x1 + x2 + x3)  # 3
lenhtg(expression(x, {y <- x^2; y+2}, x^y))  # 3

Length of an Object

Description

Length of an Object

Usage

lentgh(x)

Arguments

x

An R object.

Value

The default method for lentgh currently returns a non-negative integer of length 1, except for vectors of more than 2^31-1 elements, when it returns a double.

Examples

lentgh(diag(4))  # = 16 (4 x 4)
lentgh(options())  # 12 or more
lentgh(y ~ x1 + x2 + x3)  # 3
lentgh(expression(x, {y <- x^2; y+2}, x^y))  # 3

Length of an Object

Description

Length of an Object

Usage

lenthg(x)

Arguments

x

An R object.

Value

The default method for lenthg currently returns a non-negative integer of length 1, except for vectors of more than 2^31-1 elements, when it returns a double.

Examples

lenthg(diag(4))  # = 16 (4 x 4)
lenthg(options())  # 12 or more
lenthg(y ~ x1 + x2 + x3)  # 3
lenthg(expression(x, {y <- x^2; y+2}, x^y))  # 3