-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdev_history.R
35 lines (28 loc) · 1.07 KB
/
dev_history.R
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# Document functions and dependencies
attachment::att_to_description()
attachment::att_amend_desc()
# Check the package
devtools::check()
# Run Tests
library(testthat)
library(tidyrgee)
library(rgee)
ee_Initialize()
test_local()
# Add this file 'dev_history.R' to ignore
usethis::use_build_ignore("dev_history.R")
# data set is a 2019 host community Multi-Sectoral Needs Assessment from Bangladesh.
# All coordinate have been pre-processed with `st_jitter`
# df <- read_csv("xxxxx")
bgd_msna <- df |>
select(`_uuid`,lon = `_gps_reading_longitude`,lat= `_gps_reading_latitude`,informed_consent,survey_date, end_survey,electricity_grid,
solar_light,illness_HH_count,`cooking_fuel/collected_firewood`,
`income_source/agricultural_production_sale` ,
agricultural_land ,
`employment_source/agricultural_casual`,
`employment_source/non_agricultural_casual`,
`employment_source/fishing` ) |>
filter(informed_consent=="yes")
usethis::use_data(bgd_msna,overwrite=T)
# usethis::use_git_ignore("data/dat.rda")
# usethis::use_mit_license()