These are some aliases for R function which are more in line with Python equivalents.

len()

reversed(x)

sorted(x, decreasing = FALSE, ...)

True

False

Format

An object of class logical of length 1.

Examples

# python abbreviates to len, R is lengthier base::length(1:5)
#> [1] 5
len(1:5)
#> [1] 5
# for rev the trend is reversed base::rev(5:1)
#> [1] 1 2 3 4 5
reversed(5:1)
#> [1] 1 2 3 4 5
# returns a sorted copy base::sort(sample(1:5))
#> [1] 1 2 3 4 5
sorted(sample(1:5))
#> [1] 1 2 3 4 5
# don't really use these... identical(False, FALSE)
#> [1] TRUE
isTRUE(True)
#> [1] TRUE