From 4c962845ca1ae8a49136a72c8c9e05d86f9fbf4e Mon Sep 17 00:00:00 2001 From: Damon Morris Date: Tue, 15 Aug 2023 16:38:36 +0100 Subject: [PATCH] update site --- public/articles/lfsclean.html | 28 ++++++++++++++++++++++++---- public/pkgdown.yml | 2 +- vignettes/lfsclean.Rmd | 21 ++++++++++++++++++--- 3 files changed, 43 insertions(+), 8 deletions(-) diff --git a/public/articles/lfsclean.html b/public/articles/lfsclean.html index 149a2cf..637673f 100644 --- a/public/articles/lfsclean.html +++ b/public/articles/lfsclean.html @@ -100,14 +100,22 @@

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.

+in a function to combine years of data into a single data table for +output.

+
+

Quarterly cross-sectional datasets +

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)
+
+
+

Longitudinal datasets +

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 @@

Package use

in January-March, April-June, July-September, and October-December of 2020.

-## 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)
+