Learn R Programming

fractional (version 0.1.3)

unfractional: Demote a fractional object back to a numeric one

Description

Given an object of class "fractional" this simple function removes the attributes that signal that it is to be treated as a fractional object, thus returning it to its original numeric status alone

Usage

unfractional(x)

Arguments

x
A "fractional" object

Value

A simple numeric object like x

Examples

Run this code
(tst <- fractional(matrix(0:9/10, 2, 5)))
(tst <- unfractional(tst))

Run the code above in your browser using DataLab