INTERA:Time use based on activity: Difference between revisions

From Opasnet
Jump to navigation Jump to search
 
Line 17: Line 17:
=== Formula ===
=== Formula ===


*For details of upload function see [[Opasnet Base Connection for R]].
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].
 
<nowiki><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></nowiki>


== Result ==
== Result ==

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

{{#opasnet_base_link:Op_en4944}}


See also

Keywords

References

Related files

<mfanonymousfilelist></mfanonymousfilelist>

INTERA:Time use based on activity. Opasnet . [1]. Accessed 14 May 2025.