convert_gadget: Launch interactive conversion gadget

Description Usage Arguments Value Examples

View source: R/gadget.R

Description

It's often difficult to remember the symbol for the units you want to convert.This gadget shows which units can be converted to one anohter, and provides an example calculation on a sample vector On exit you can either return a valid convert() call or a converted numeric vector.

Usage

1
convert_gadget(vector, return_value = FALSE)

Arguments

vector

A numeric vector to convert. You can change the vector within the app.

return_value

By default the gadget generates a convert() call, if return_value is set to TRUE it will instead generate a converted vector.

Value

Insert output text into editor.

Examples

1
2
3
4
5
## Not run: 
convert_gadget()
convert_gadget(mtcars$mpg)

## End(Not run)

convertr documentation built on May 29, 2017, 5:14 p.m.