Learn R Programming

taRifx (version 1.0.6.2)

fpart: Obtain the fractional part of a numeric

Description

Takes a numeric vector and returns a vector of the numbers after the decimal place

Usage

fpart(vec)

Arguments

vec

A numeric vector of any length

Value

A vector of the same length as the input vec containing only the decimal component.

Examples

Run this code
# NOT RUN {
x <- runif(100)
fpart(x)
# }

Run the code above in your browser using DataLab