Skip to content

Instantly share code, notes, and snippets.

View agustin-alesso's full-sized avatar

Agustin Alesso agustin-alesso

View GitHub Profile
@agustin-alesso
agustin-alesso / get_genotypes.R
Last active March 23, 2022 17:54
find genotypes that are repeatead in selected environments
pacman::p_load(tidyverse)
# Fake data
full_grid <- expand_grid(
gen = paste0("G", 1:3),
loc = paste0("L", 1:3),
season = paste0("S", 1:4)
) %>%
mutate(env = paste(loc, season))
replications(~ gen * env, full_grid)