running many single prediction regressions of oxidative stress
Author
Juan Steibel,
Published
Invalid Date
These Knitr Options are for appearance only
We always start with knitr options for building a good html report
Setup Code
Please modify the path below, to point at your working directory
#====================================================================## Setup Options#====================================================================## remove all objects if restarting scriptrm(list=ls())# set tibble width for printingoptions(tibble.width =Inf)# remove scientific notationoptions(scipen=999)#==============================================================================## Install Packages / Load Packages#==============================================================================#library(tidyverse)
── Attaching core tidyverse packages ──────────────────────── tidyverse 2.0.0 ──
✔ dplyr 1.1.4 ✔ readr 2.1.6
✔ forcats 1.0.1 ✔ stringr 1.6.0
✔ ggplot2 4.0.1 ✔ tibble 3.3.1
✔ lubridate 1.9.4 ✔ tidyr 1.3.2
✔ purrr 1.2.1
── Conflicts ────────────────────────────────────────── tidyverse_conflicts() ──
✖ dplyr::filter() masks stats::filter()
✖ dplyr::lag() masks stats::lag()
ℹ Use the conflicted package (<http://conflicted.r-lib.org/>) to force all conflicts to become errors
library(lubridate)library(readxl) #install if neededlibrary(DT)
Warning: package 'DT' was built under R version 4.5.3
#==============================================================================## Set paths#==============================================================================## set all pathspath_main <-"C:/Users/jsteibel/OneDrive/Documents/Cheryl"path_data <-str_c(path_main, "/", sep="")# str_c() is from the stringr package, which is a part of 'tidyverse'# this concatenates two pieces of the path. We will use it a lot.#check:path_data
#==============================================================================## Set Inputs#==============================================================================#dt<-read_xlsx("Toad_OS_and_diet_comp_SAS.xlsx",na=".")
reformat to take means by treatment and species combination
Let’s read the results and describe them below. Also, rename column NA to “sodio” because NA is a forbidden name in R (used for missing data)