R: Find All Factors

get_all_factors {anomalyDetection} | R Documentation

## Find All Factors

### Description

`get_all_factors` finds all factor pairs for a given integer (i.e. a number that divides evenly into another number).

### Usage

    get_all_factors(n)

### Arguments

`n` | number to be factored

### Value

A list containing the integer vector(s) containing all factors for the given `n` inputs.

### Source

http://stackoverflow.com/a/6425597/3851274

### Examples

    # Find all the factors of 39304
    get_all_factors(39304)

[Package anomalyDetection version 0.2.5 Index]