knitr::opts_chunk$set( collapse = TRUE, comment = "#>" )
library(dplyr) library(usethis)
Create a coefficient table, a data.frame with a character column called probe
and a numeric column called coeff
.
If the model has an intercept give it the probe name Intercept
,
this value is expected so set this to 0 if you don't have one
datClock <- read.csv(system.file("extdata", "Horvath2013.csv", package = "DNAmAgeMini", mustWork = TRUE)) datClock <- datClock %>% select(probe = CpGmarker, coeff = CoefficientTraining) %>% mutate(probe = as.character(probe)) datClock[1,1] <- "Intercept" HorvathCoefficients <- datClock
HorvathCoefficients
usethis::use_data(HorvathCoefficients)
sessionInfo()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.