Unit conversions

From Opasnet
Revision as of 13:48, 31 May 2012 by Jouni (talk | contribs) (code moved to Opasnet (R library))
Jump to navigation Jump to search



The code related to this tool is now a part of Opasnet (R library).

Question

How to convert data from one unit to another in R?

Answer

We need conversion factors, which are listed below, and a code that does the actual conversion.

Unit conversions(-)
ObsFromToResultDescription
1MWhMJ36001 MWh = 1 MWh * 3600 s/h = 3600 MWs = 3600 MJ
2toeMJ350001 toe = 1000 kgoe = 1000 kg * 35 MJ/kg = 35000 MJ