Training exposure: Difference between revisions

From Opasnet
Jump to navigation Jump to search
(code cleaned but something wrong with formula: NAs in Result)
Line 8: Line 8:


== Answer ==
== Answer ==
<t2b index="Year,Observation" locations="Unit,Result,Description" unit="-">
2012|ug/m3|1 - 2|
2020|ug/m3|10 - 11|
</t2b>


<rcode  
<rcode  
name="answer"  
name="answer"  
label="Run code"  
label="Run code"  
graphics="1"
include="
include="
page:Object-oriented_programming_in_Opasnet|name:answer|
page:Object-oriented_programming_in_Opasnet|name:answer|
Line 28: Line 23:


library(xtable)
library(xtable)
out <- op_baseGetData("opasnet_base", "Op_en5674") # Downloads the data on the data table of this page.
formula.Op_en5674(dependencies.Op_en5674)
colnames(out)[colnames(out) == "obs.1"] <- "Row" # Changes the column name "obs.1" to "Row"
 
out <- tidy(out , direction = "wide")
print(out)
colnames(out)[colnames(out) == "result"] <- "Result"
out <- make.ovariable(
out <- make.ovariable(
data = out,
data = fetch("Op_en5674"),
formula = formula.Op_en5674,
formula = formula.Op_en5674,
dependencies = dependencies.Op_en5674)
dependencies = dependencies.Op_en5674)
cat("Computing training exposures.\n")
 
print(out)
print(out)
plot(out)


</rcode>
</rcode>


{{attack|# |The automatic Obs column creates a column "obs.1" in Opasnet Base; it should replace "Obs" instead.|--[[User:Jouni|Jouni]] 22:15, 14 May 2012 (EEST)}}
== Rationale ==


{{attack|# |The column name is "result" although it should be "Result". This should be converted automatically but now it is done by hand in the code.|--[[User:Jouni|Jouni]] 22:15, 14 May 2012 (EEST)}}
===Data===


== Rationale ==
<t2b index="Year,Observation" locations="Unit,Result,Description" unit="-">
2012|ug/m3|1 - 2|
2020|ug/m3|10 - 11|
</t2b>


=== Formula ===
=== Formula ===
Line 53: Line 49:
name="formula"  
name="formula"  
label="Initiate functions"  
label="Initiate functions"  
include="
page:Object-oriented_programming_in_Opasnet|name:answer|
page:OpasnetBaseUtils|name:generic
"
>
>



Revision as of 21:14, 21 May 2012



Question

What is the exposure in the Training assessment?

Answer

+ Show code

Rationale

Data

Training exposure: Difference between revisions(-)
ObsYearUnitResultDescription
12012ug/m31 - 2
22020ug/m310 - 11

Formula

+ Show code

See also

Materials and examples for training in Opasnet and open assessment
Help pages Wiki editingHow to edit wikipagesQuick reference for wiki editingDrawing graphsOpasnet policiesWatching pagesWriting formulaeWord to WikiWiki editing Advanced skills
Training assessment (examples of different objects) Training assessmentTraining exposureTraining health impactTraining costsClimate change policies and health in KuopioClimate change policies in Kuopio
Methods and concepts AssessmentVariableMethodQuestionAnswerRationaleAttributeDecisionResultObject-oriented programming in OpasnetUniversal objectStudyFormulaOpasnetBaseUtilsOpen assessmentPSSP
Terms with changed use ScopeDefinitionResultTool


Keywords

References


Related files

<mfanonymousfilelist></mfanonymousfilelist>