Difference between revisions of "OpasnetUtils/Convert.units"

From Testiwiki
Jump to: navigation, search
m
m
 
Line 12: Line 12:
 
* fromunit  = a character vector or factor with the current units
 
* fromunit  = a character vector or factor with the current units
  
==Code=
+
==Code==
  
=https://www.opasnet.org/svn/opasnet_utils/trunk/R/ConvertUnits.r
+
https://www.opasnet.org/svn/opasnet_utils/trunk/R/ConvertUnits.r
  
 
==See also==
 
==See also==

Latest revision as of 13:31, 16 August 2012



Description

A function that converts units from one to another, if possible.

Parameters

  • x = a numeric vector with values to be converted
  • tounit = a character vector of the new units to be used. Must be found from the To column from the table in Unit conversions.
  • fromunit = a character vector or factor with the current units

Code

https://www.opasnet.org/svn/opasnet_utils/trunk/R/ConvertUnits.r

See also