Learn R Programming

SciencesPo (version 1.3.5)

frac: Fractional part of a numeric vector.

Description

Split off fractional part of a numeric vector, compute and evaluate continuous fractions.

Usage

frac(x, digits = NA)

Arguments

x
A vector of numerics.
digits
An integer. If not missing, the fractional part will be rounded.

Examples

Run this code
frac(c(0, pi, 2*pi))

Run the code above in your browser using DataLab