Unit conversions: Difference between revisions

From Opasnet
Jump to navigation Jump to search
(→‎Answer: comments added)
Line 15: Line 15:
MWh|MJ|3600|1 MWh = 1 MWh * 3600 s/h = 3600 MWs = 3600 MJ
MWh|MJ|3600|1 MWh = 1 MWh * 3600 s/h = 3600 MWs = 3600 MJ
toe|MJ|35000|1 toe = 1000 kgoe = 1000 kg * 35 MJ/kg = 35000 MJ
toe|MJ|35000|1 toe = 1000 kgoe = 1000 kg * 35 MJ/kg = 35000 MJ
mg/MWh|mg/MJ|1/3600|
mg/MWh|mg/MJ|0.00027777777778|1/3600
kg/MWh|kg/GJ|3.6|
kg/MWh|kg/GJ|0.27777777778|1/3.6
kg/MWh|tn/TJ|3.6|
kg/MWh|tn/TJ|0.27777777778|0.001 tn/kg / 0.0036 TJ/kWh
kg/MWh|tn/MJ|3.6|?
kg/MWh|tn/MJ|0.00000027777777778|0.001 tn/kg / 3600 MJ/MWh
</t2b>
</t2b>
{{attack|# |Explanations. Do these make sense?|--[[User:Jouni|Jouni]] 11:43, 1 June 2012 (EEST)}}

Revision as of 08:43, 1 June 2012



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: Difference between revisions(-)
ObsFromToResultDescription
1MWhMJ36001 MWh = 1 MWh * 3600 s/h = 3600 MWs = 3600 MJ
2toeMJ350001 toe = 1000 kgoe = 1000 kg * 35 MJ/kg = 35000 MJ
3mg/MWhmg/MJ0.000277777777781/3600
4kg/MWhkg/GJ0.277777777781/3.6
5kg/MWhtn/TJ0.277777777780.001 tn/kg / 0.0036 TJ/kWh
6kg/MWhtn/MJ0.000000277777777780.001 tn/kg / 3600 MJ/MWh

⇤--#: . Explanations. Do these make sense? --Jouni 11:43, 1 June 2012 (EEST) (type: truth; paradigms: science: attack)