From 4c962845ca1ae8a49136a72c8c9e05d86f9fbf4e Mon Sep 17 00:00:00 2001
From: Damon Morris Package use
read data function for each individual year contained within a global
cleaning function which applies each cleaning function in turn. The
collection of global cleaning functions for each year are then wrapped
-in a function to combine years of data.
The lfsclean()
wrapper function is used to process
multiple quarterly cross-sectional LFS data files into a single dataset
of cleaned variables.
-#### read in and clean raw data using the package
+## Load the package and other useful libraries
+
+library(lfsclean)
+library(tidyverse)
+library(ggthemes)
+library(zoo)
-####################
## input arguments
root <- "C:/"
@@ -128,6 +136,10 @@ Package use
keep_vars = keep_vars,
complete_vars = complete_vars,
deflator = deflator)
The lfsclean_5q()
wrapper function is used to process
the raw five-quarter longitudinal data. The arguments are simular to
those used for the quarterly data cleaning function. year
@@ -137,7 +149,14 @@
-## input arguments
+## Load the package and other useful libraries
+
+library(lfsclean)
+library(tidyverse)
+library(ggthemes)
+library(zoo)
+
+## input arguments
root <- "U:/"
file <- "ManWin/My Documents/Datasets/Labour Force Survey/longitudinal/tab"
@@ -155,6 +174,7 @@ Package use
ages = ages,
keep_vars = keep_vars,
complete_vars = complete_vars)