-
Notifications
You must be signed in to change notification settings - Fork 0
/
look.R
29 lines (24 loc) · 1.18 KB
/
look.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
look <- full_data %>% mutate(prey_species = if_else(condition = !is.na(prey_species),prey_species,"not available")) %>%
select(log_a,log_h,source,species,prey_species,alien,log_pred,log_prey,aspect_ratio,temp,log_arena) %>%
filter(complete.cases(.)) %>%
rename(ratio = aspect_ratio,
zalien = alien) %>%
# mutate(zalien = case_when(zalien == "Y" ~ TRUE,
# zalien == "N" ~ FALSE)) %>%
filter(log_h > - 20)
look %>% count(species,prey_species) %>% View()
full_data %>% select(log_a,log_h,source,species,alien,log_pred,log_prey,aspect_ratio,temp,log_arena) %>%
filter(complete.cases(.)) %>%
rename(ratio = aspect_ratio,
zalien = alien) %>%
# mutate(zalien = case_when(zalien == "Y" ~ TRUE,
# zalien == "N" ~ FALSE)) %>%
filter(log_h > - 20)
full_data %>% select(log_a,water,log_h,source,species,alien,log_pred,log_prey,aspect_ratio,temp,log_arena) %>%
filter(complete.cases(.)) %>%
rename(ratio = aspect_ratio,
zalien = alien) %>%
# mutate(zalien = case_when(zalien == "Y" ~ TRUE,
# zalien == "N" ~ FALSE)) %>%
filter(log_h > - 20) %>%
count(water)