Description Usage Arguments Value Author(s)
The Function takes a value and converts it into a new unit. By adressing "unit" and "into" the former as well as the new unit are defined.
1 | windspeed_conversion(x, unit=c("m/s","km/h","B","kn"), into=c("m/s","km/h","B","kn"), num=FALSE)
|
x |
The numeric value to convert |
unit |
The input unit. Choose from "m/s","km/h","B","kn" |
into |
The output unit. Choose from "m/s","km/h","B","kn" |
num |
A logical parameter indicating whether the returned value should be numeric or a character object with number and unit |
If num is FALSE (default) function paste() is called to write the number and the unit together in one character string. Else only the number is returned.
Carsten Vick (carsten.vick@campus.tu-berlin.de)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.