Unit conversions: Difference between revisions
Jump to navigation
Jump to search
(code moved to Opasnet (R library)) |
(→Answer) |
||
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| | |||
</t2b> | </t2b> |
Revision as of 08:23, 1 June 2012
Moderator:Jouni (see all) |
This page is a stub. You may improve it into a full page. |
Upload data
|
- 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.
Obs | From | To | Result | Description |
---|---|---|---|---|
1 | MWh | MJ | 3600 | 1 MWh = 1 MWh * 3600 s/h = 3600 MWs = 3600 MJ |
2 | toe | MJ | 35000 | 1 toe = 1000 kgoe = 1000 kg * 35 MJ/kg = 35000 MJ |
3 | mg/MWh | mg/MJ | 1/3600 |