Training exposure: Difference between revisions
Jump to navigation
Jump to search
(code and run updated) |
(→Data) |
||
(4 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
[[Category:Costs and valuations]] | [[Category:Costs and valuations]] | ||
[[Category:Opasnet training]] | [[Category:Opasnet training]] | ||
[[Category:Contains R code]] | |||
{{variable|moderator=Jouni|stub=Yes}} | {{variable|moderator=Jouni|stub=Yes}} | ||
Line 9: | Line 10: | ||
== Answer == | == Answer == | ||
<rcode embed=1 graphics=1> | |||
library(OpasnetUtils) | |||
library(ggplot2) | |||
objects.latest("Op_en5674", code_name = "initiate") | |||
exposure | |||
exposure <- EvalOutput(exposure) # for printing | |||
oprint(summary(exposure)) # fashionable design | |||
ggplot(exposure@output, aes(x = exposureResult, weight = 1, fill = Year)) + | |||
geom_density() + | |||
theme_grey(base_size = 24) | |||
</rcode> | |||
== Rationale == | == Rationale == | ||
Line 15: | Line 31: | ||
===Data=== | ===Data=== | ||
<t2b index="Year | <t2b index="Exposure agent,Year" obs="Result" desc="Description" unit="µg /m3"> | ||
2012 | PM2.5|2012|1 - 4| | ||
2020 | PM2.5|2020|10 - 11| | ||
</t2b> | </t2b> | ||
=== | === Calculations === | ||
<rcode | <rcode label="Initiate ovariable" name="initiate"> | ||
> | |||
library(OpasnetUtils) # relevant libraries | library(OpasnetUtils) # relevant libraries | ||
# Define ovariable | # Define ovariable | ||
exposure <- | exposure <- Ovariable("exposure", ddata = "Op_en5674") | ||
colnames(exposure@data) <- gsub("[ \\.]", "_", colnames(exposure@data)) | |||
) | |||
objects. | objects.store(exposure) # save for later use | ||
cat("Ovariable exposure saved | cat("Ovariable exposure saved.\n") | ||
</rcode> | </rcode> | ||
Line 71: | Line 64: | ||
==Related files== | ==Related files== | ||
Latest revision as of 08:18, 3 June 2015
Moderator:Jouni (see all) |
This page is a stub. You may improve it into a full page. |
Upload data
|
Question
What is the exposure in the Training assessment?
Answer
Rationale
Data
Obs | Exposure agent | Year | Result | Description |
---|---|---|---|---|
1 | PM2.5 | 2012 | 1 - 4 | |
2 | PM2.5 | 2020 | 10 - 11 |
Calculations
See also
Help pages | Wiki editing • How to edit wikipages • Quick reference for wiki editing • Drawing graphs • Opasnet policies • Watching pages • Writing formulae • Word to Wiki • Wiki editing Advanced skills |
Training assessment (examples of different objects) | Training assessment • Training exposure • Training health impact • Training costs • Climate change policies and health in Kuopio • Climate change policies in Kuopio |
Methods and concepts | Assessment • Variable • Method • Question • Answer • Rationale • Attribute • Decision • Result • Object-oriented programming in Opasnet • Universal object • Study • Formula • OpasnetBaseUtils • Open assessment • PSSP |
Terms with changed use | Scope • Definition • Result • Tool |
Keywords
References