factors: Function to get all factors

Description Usage Arguments Value References

View source: R/hmi_smallfunctions.R

Description

Function to get all factors (not limited to prime factors) of an integer.

Usage

1

Arguments

x

A single integer; no vector.

Value

A numeric vector with the factors

References

based on stackoverflow.com/questions/6424856 "R Function for returning ALL factors" answer by Chase


hmi documentation built on Oct. 23, 2020, 7:31 p.m.