Difference between revisions of "INTERA:Time use based on activity"
From Testiwiki
(Added category: 'Intera') |
m |
||
Line 16: | Line 16: | ||
=== Formula === | === Formula === | ||
+ | |||
+ | *For details of upload function see [[Opasnet Base Connection for R]]. | ||
<nowiki><rcode> | <nowiki><rcode> | ||
Line 24: | Line 26: | ||
colnames(atu)[4] <- "Result" | colnames(atu)[4] <- "Result" | ||
atu[atu[,4]=="n/a ",4] <- NA | atu[atu[,4]=="n/a ",4] <- NA | ||
+ | #lirary(OpasnetBaseUtils) | ||
+ | #Op_baseWrite("opasnet_base", atu) #commented out to prevent unintentional uploading | ||
</rcode></nowiki> | </rcode></nowiki> | ||
Revision as of 10:50, 4 March 2011
This page is a variable.
The page identifier is Op_en4944 |
---|
Moderator:Arja (see all) |
This page is a stub. You may improve it into a full page, and then a rating bar will appear here. |
Upload data
|
Contents
Scope
This variable describes the time use of European population based on the activities.
Definition
Data
Mean of time used in different activities based on information of HETUS database [1]
Dependencies
Unit
Min per day
Formula
- For details of upload function see Opasnet Base Connection for R.
<rcode> atu <- read.table("M:/Intera_data/Activity_time_use.csv", sep = ";", header = TRUE) #csv constructed by importing table below to excel colnames(atu) <- gsub(" ", " ", gsub(".", " ", colnames(atu), fixed = TRUE)) atu <- reshape(atu, idvar = c("Country", "Sex"), times = colnames(atu)[3:ncol(atu)], timevar = "Activity", varying = list(colnames(atu)[3:ncol(atu)]), direction = "long") #reshaped from 2d value representation to 1d colnames(atu)[4] <- "Result" atu[atu[,4]=="n/a ",4] <- NA #lirary(OpasnetBaseUtils) #Op_baseWrite("opasnet_base", atu) #commented out to prevent unintentional uploading </rcode>
Result
See also
Keywords
References
Related files
<mfanonymousfilelist></mfanonymousfilelist>