These are some aliases for R function which are more in line with Python equivalents.
len() reversed(x) sorted(x, decreasing = FALSE, ...) True False
An object of class logical
of length 1.
# python abbreviates to len, R is lengthier base::length(1:5)#> [1] 5len(1:5)#> [1] 5# for rev the trend is reversed base::rev(5:1)#> [1] 1 2 3 4 5reversed(5:1)#> [1] 1 2 3 4 5# returns a sorted copy base::sort(sample(1:5))#> [1] 1 2 3 4 5sorted(sample(1:5))#> [1] 1 2 3 4 5# don't really use these... identical(False, FALSE)#> [1] TRUEisTRUE(True)#> [1] TRUE