convert_gadget: Launch interactive conversion gadget

Description Usage Arguments Value Examples

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)


Search within the convertr package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.