The factors_of function returns a numeric vector of the factors of a provided number.

factors_of(x)

Arguments

x

The number that you want to find the factors of.

Value

A numeric vector.

Examples

factors_of(8)
#> [1] 1 2 4 8