factors: Factors

Description Usage Arguments Value Note See Also Examples

View source: R/prime.R

Description

Find the integers a given number is divisible by

Usage

1
factors(x, prime = FALSE)

Arguments

x

an integer

prime

should only prime factors be returned?

Value

An integer vector

Note

The trivial factors 1 and x itself are not included.

See Also

factorise for prime factorisation

Examples

1
2
factors(210)
factors(210, prime=TRUE)

AkselA/R-ymse documentation built on March 21, 2020, 9:52 a.m.