Skip to content

Commit

Permalink
take out unnecessary use of dplyr in plink vignette
Browse files Browse the repository at this point in the history
  • Loading branch information
tabpeter committed Sep 23, 2024
1 parent 4e1cde7 commit 12d10e8
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions vignettes/articles/plink_files.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@ Now we are ready to create a `plmm_design`, which is an object with the pieces w
# get outcome data
penncath_pheno <- read.csv(find_example_data(path = 'penncath_clinical.csv'))
phen <- data.frame(FamID = penncath_pheno$FamID, CAD = penncath_pheno$CAD) |>
dplyr::mutate(FamID = as.character(FamID))
phen <- data.frame(FamID = as.character(penncath_pheno$FamID),
CAD = penncath_pheno$CAD)
pen_design <- create_design(data_file = plink_data,
feature_id = "FID",
Expand All @@ -79,8 +79,7 @@ pen_design <- create_design(data_file = plink_data,
outcome_col = "CAD",
logfile = "design",
# again, overwrite if needed; use with caution
overwrite = TRUE
)
overwrite = TRUE)
# examine the design - notice the components of this object
pen_design_rds <- readRDS(pen_design)
Expand Down

0 comments on commit 12d10e8

Please sign in to comment.