Skip to content

Commit

Permalink
screening summary
Browse files Browse the repository at this point in the history
  • Loading branch information
jcaracappa1 committed Jun 3, 2024
1 parent 06cc8f8 commit e6da7da
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions R/screening_analysis.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
#Cursory analysis of literature review screening data
library(dplyr)

data.orig = read.csv(here::here('data','screening_results.csv')) %>%
mutate(Answers = gsub("\"","",Answers,fixed = T),
Question.N = paste0('Q',Question.N))%>%
select(Title, Question.N,Answers)%>%
tidyr::spread(Question.N, Answers)

data.include = data.orig %>%
filter(Q2 == 'Yes, include the reference')

data.var = data.include %>%
group_by(Q2,Q1)%>%
summarise(N = n(),
pct = N/nrow(data.include))

data.spp = data.include %>%
group_by(Q2,Q3)%>%
summarise(N = n(),
pct = N/nrow(data.include))

0 comments on commit e6da7da

Please sign in to comment.