cjerzak commited on
Commit
c44e3d7
·
verified ·
1 Parent(s): 7bd6ab5

Create ProcessDta_ForHFace.R

Browse files
Files changed (1) hide show
  1. scripts/ProcessDta_ForHFace.R +16 -0
scripts/ProcessDta_ForHFace.R ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ rm(list=ls()); options(error = NULL)
3
+ setwd("~/Documents/hf/TemporalNeighborhoodMaterialWealthAfrica/");
4
+ library(dplyr); library(tibble)
5
+ library(utf8); library(haven)
6
+ library(labelled); library(stringi)
7
+
8
+ pi_state <- read.csv("./poverty_improvement_by_state.csv")
9
+
10
+ # and also write Parquet
11
+ arrow::write_parquet(
12
+ pi_state,
13
+ sink = "./poverty_improvement_by_state.parquet",
14
+ compression = "snappy" # fast, default; you can also use "gzip", "brotli", etc.
15
+ )
16
+ }