Publications by Anika Lewis
{DataCamp} Data Manipulation with Dplyr
## Load package library(tidyverse) ## ── Attaching core tidyverse packages ──────────────────────── tidyverse 2.0.0 ── ## ✔ dplyr 1.1.2 ✔ readr 2.1.4 ## ✔ forcats 1.0.0 ✔ stringr 1.5.0 ## ✔ ggplot2 3.4.2 ✔ tibble 3.2.1 ## ✔ lubridate 1.9.2 ✔ tid...
11620 sym R (37672 sym/79 pcs) 2 img
{Bio 620} Lab 5
install.packages("NHANES") install.packages("dplyr") library(NHANES) Loading the data might interfere with knitting depending on the setting; will reinstall packages everytime This is survey data collected by the US National Center for Health Statistics (NCHS) which has conducted a series of health and nutrition surveys since the early 1960’s. ...
1190 sym R (1218 sym/20 pcs)
{DataCamp} Project: Dr. Semmelweis and the Discovery of Handwashing
install.packages("tidyverse") library(knitr) library(tidyverse) ## ── Attaching core tidyverse packages ──────────────────────── tidyverse 2.0.0 ── ## ✔ dplyr 1.1.2 ✔ readr 2.1.4 ## ✔ forcats 1.0.0 ✔ stringr 1.5.0 ## ✔ ggplot2 3.4.2 ✔ tibble 3.2.1 ## �...
4484 sym R (5358 sym/20 pcs) 4 img
{Bio 620} Homework 1
install.packages("table1") ## Installing package into '/cloud/lib/x86_64-pc-linux-gnu-library/4.2' ## (as 'lib' is unspecified) install.packages("dplyr") ## Installing package into '/cloud/lib/x86_64-pc-linux-gnu-library/4.2' ## (as 'lib' is unspecified) ## also installing the dependency 'pillar' install.packages("dagitty") ## Installing package in...
1851 sym R (10050 sym/53 pcs) 4 img 1 tbl
{Bio 620} Homework 2
Data import and recoding Download the dataset, import it into R, and recode variables as instructed in Homework 1. install.packages("table1") install.packages("dplyr") install.packages("ggplot2") install.packages("splines") ## Installing package into '/cloud/lib/x86_64-pc-linux-gnu-library/4.3' ## (as 'lib' is unspecified) ## Warning: package 'spli...
4092 sym R (10591 sym/49 pcs) 1 img 1 tbl
{Bio 620} Lab 6
1.Importing the Dataset a. Import the dataset library(readr) breast_cancer <- read_csv("breast cancer.csv", col_types = cols(id = col_character(), diagnosis = col_factor(levels = c("B", "M")))) b. Recode the “diagnosis” column library(magrittr) library(dplyr) ## ## Attaching package: 'dplyr' ## The following object...
4228 sym R (8322 sym/33 pcs) 7 img
{Bio 620} Lab 7
install.packages("aplore3") install.packages("forcats") install.packages("dplyr") library(aplore3) # dataset library(forcats) # relevel library(dplyr) ## ## Attaching package: 'dplyr' ## The following objects are masked from 'package:stats': ## ## filter, lag ## The following objects are masked from 'package:base': ## ## intersect, setdi...
2547 sym R (2726 sym/49 pcs)
{Bio 620} Lab 1
Introduction to R and R Studio R Packages Type the name of each of these packages (tidyverse, openintro) into the search box to see if they have been installed install.packages("tidyverse") ## Installing package into '/cloud/lib/x86_64-pc-linux-gnu-library/4.2' ## (as 'lib' is unspecified) install.packages("openintro") ## Installing package into '...
4130 sym R (6086 sym/48 pcs) 7 img
{Bio 620} Lab 2
install.packages("tidyverse") ## Installing package into '/cloud/lib/x86_64-pc-linux-gnu-library/4.2' ## (as 'lib' is unspecified) install.packages("openintro") ## Installing package into '/cloud/lib/x86_64-pc-linux-gnu-library/4.2' ## (as 'lib' is unspecified) Load packages library(tidyverse) ## ── Attaching core tidyverse packages ───�...
7035 sym R (11079 sym/53 pcs) 17 img
{Bio 620} Lab 3
library("ggplot2") The data Let’s load up the data for the 2011 season. download.file("http://www.openintro.org/stat/data/mlb11.RData", destfile = "mlb11.RData") load("mlb11.RData") Exercise 1 What type of plot would you use to display the relationship between runs and one of the other numerical variables? Plot this relationship using the varia...
8357 sym R (9730 sym/48 pcs) 17 img