Warning: package 'tidyverse' was built under R version 4.1.3
Warning: package 'tibble' was built under R version 4.1.3
Warning: package 'tidyr' was built under R version 4.1.3
Warning: package 'readr' was built under R version 4.1.3
Warning: package 'purrr' was built under R version 4.1.3
Warning: package 'dplyr' was built under R version 4.1.3
Warning: package 'stringr' was built under R version 4.1.3
Warning: package 'forcats' was built under R version 4.1.3
Warning: package 'lubridate' was built under R version 4.1.3
-- Attaching core tidyverse packages ------------------------ tidyverse 2.0.0 --
v dplyr 1.1.1 v readr 2.1.4
v forcats 1.0.0 v stringr 1.5.0
v ggplot2 3.4.2 v tibble 3.2.1
v lubridate 1.9.2 v tidyr 1.3.0
v purrr 1.0.1
-- Conflicts ------------------------------------------ tidyverse_conflicts() --
x dplyr::filter() masks stats::filter()
x dplyr::lag() masks stats::lag()
i Use the conflicted package (<http://conflicted.r-lib.org/>) to force all conflicts to become errors
library(gsheet)library(broom)
Warning: package 'broom' was built under R version 4.1.3
library(metafor)
Carregando pacotes exigidos: Matrix
Warning: package 'Matrix' was built under R version 4.1.3
Attaching package: 'Matrix'
The following objects are masked from 'package:tidyr':
expand, pack, unpack
Carregando pacotes exigidos: metadat
Carregando pacotes exigidos: numDeriv
Loading the 'metafor' package (version 4.2-0). For an
introduction to the package please type: help(metafor)
library(dplyr)library(ggthemes)
Warning: package 'ggthemes' was built under R version 4.1.3
library(plyr)
Warning: package 'plyr' was built under R version 4.1.3
------------------------------------------------------------------------------
You have loaded plyr after dplyr - this is likely to cause problems.
If you need functions from both plyr and dplyr, please load plyr first, then dplyr:
library(plyr); library(dplyr)
------------------------------------------------------------------------------
Attaching package: 'plyr'
The following objects are masked from 'package:dplyr':
arrange, count, desc, failwith, id, mutate, rename, summarise,
summarize
The following object is masked from 'package:purrr':
compact
library(janitor)
Attaching package: 'janitor'
The following objects are masked from 'package:stats':
chisq.test, fisher.test
library(metafor)library(cowplot)
Warning: package 'cowplot' was built under R version 4.1.3
Attaching package: 'cowplot'
The following object is masked from 'package:ggthemes':
theme_map
The following object is masked from 'package:lubridate':
stamp
library(rio)
ma =gsheet2tbl("https://docs.google.com/spreadsheets/d/1WVUeXTH_o9kTgryR1ZszdNFJjWt_PegmhxclXVSXVgk/edit?usp=sharing")head(ma)
study year location state
Min. : 1.00 Min. :2017 Length:340 Length:340
1st Qu.: 5.00 1st Qu.:2018 Class :character Class :character
Median :10.00 Median :2020 Mode :character Mode :character
Mean :10.27 Mean :2020
3rd Qu.:15.00 3rd Qu.:2022
Max. :22.00 Max. :2023
ai mean_sev mean_yld v_sev
Length:340 Min. : 0.10 Min. :1558 Min. : 0.0000
Class :character 1st Qu.:10.00 1st Qu.:3282 1st Qu.: 0.9804
Mode :character Median :21.49 Median :3762 Median : 2.5969
Mean :25.27 Mean :3747 Mean : 6.8977
3rd Qu.:38.82 3rd Qu.:4224 3rd Qu.: 8.4684
Max. :86.50 Max. :6078 Max. :64.2031
v_yld
Min. : 4250
1st Qu.: 30921
Median : 51914
Mean : 65616
3rd Qu.: 84747
Max. :349261