forked from OHI-Science/pat
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDEFAUL.Rmd
82 lines (42 loc) · 1.46 KB
/
DEFAUL.Rmd
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
---
title: "Untitled"
output: html_document
date: "2022-08-22"
---
```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = TRUE)
```
```{r}
library(readxl)
layers <- read_excel("comunas/layers.xlsx")
write.csv(layers, "comunas/layers.csv", row.names = FALSE)
#scenario_data <- read_excel("scenario_data.xlsx")
#write.csv(scenario_data, "comunas/conf/scenario_data_years.csv", row.names = FALSE)
```
Matriz
```{r}
library(readxl)
matriz <- read_excel("prep/_resilience/Matriz metas-resiliencias OHI Chile.xlsx",
sheet = "matriz")
write.csv(matriz, "comunas/conf/resilience_matrix.csv",
row.names = F, na = "")
category <- read_excel("prep/_resilience/Matriz metas-resiliencias OHI Chile.xlsx",
sheet = "category")
write.csv(category, "comunas/conf/resilience_categories.csv",
row.names = F, na = "")
```
```{r}
library(readxl)
matriz <- read_excel("prep/_pressures/matrizjunio2023presiones.xlsb.xlsx",
sheet = "matrizB")
write.csv(matriz, "comunas/conf/pressures_matrix.csv",
row.names = F, na = "")
category <- read_excel("prep/_pressures/matrizjunio2023presiones.xlsb.xlsx",
sheet = "categoryB")
write.csv(category, "comunas/conf/pressure_categories.csv",
row.names = F, na = "")
```
```{r}
goals <- read_excel("comunas/conf/goals.xlsx")
write.csv(goals, "comunas/conf/goals.csv", row.names = F, na = "")
```