wdConvert: Unit conversion (inches, points, cm)

Description Usage Arguments Details Value Author(s) Examples

View source: R/wdConvert.R

Description

This function converts between inches, cm, and points.

Usage

1
wdConvert(input,from="in",to="pt")

Arguments

input

the number to convert

from

either "in","cm", or "pt".

to

either "in","cm", or "pt".

Details

Converts the input value from from units to tounits.

Value

the converted number.

Author(s)

Christian Ritter

Examples

1
2
3
4
5
6
7
8
## Not run: 
wdConvert(1,"in","pt")
wdConvert(72,"pt","in")
wdConvert(1,"cm","pt")
## the following gives an error:
wdConvert(1,"cm","mm")

## End(Not run)

R2wd documentation built on May 2, 2019, 8:54 a.m.