Difference between revisions of "INTERA:Time use based on activity"

From Testiwiki
Jump to: navigation, search
(Result table removed)
m (Formula)
 
(3 intermediate revisions by 2 users not shown)
Line 17: Line 17:
 
=== Formula ===
 
=== Formula ===
  
<nowiki><rcode>
+
Code used for reading and transforming the source csv file can be found on [http://en.opasnet.org/en-opwiki/index.php?title=INTERA:Time_use_based_on_activity&oldid=18821 an earlier version of this page].
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
 
</rcode></nowiki>
 
  
 
== Result ==
 
== Result ==
Line 50: Line 43:
 
| reference      =  
 
| reference      =  
 
}}
 
}}
 +
[[Category:Intera]]

Latest revision as of 10:26, 14 April 2011


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

Code used for reading and transforming the source csv file can be found on an earlier version of this page.

Result

Show results


See also

Keywords

References

Related files

<mfanonymousfilelist></mfanonymousfilelist>

INTERA:Time use based on activity. Opasnet . [1]. Accessed 26 Jun 2024.