Learn R Programming

UNCLES (version 2.0)

factors: factors

Description

Find the factors of a number. If (primesonly) was true, it gives prime factors only. Otherwise, it gives all factors

Usage

factors(n, primeonly = FALSE)

Arguments

n

primeonly

Examples

Run this code
##---- Should be DIRECTLY executable !! ----
##-- ==>  Define data, use random,
##--	or do  help(data=index)  for the standard data sets.

## The function is currently defined as
function (n, primeonly = FALSE)
{
    return(NULL)
  }

Run the code above in your browser using DataLab