Publications by Daniel Lee
Clean data
In this exercise you will learn to clean data using the dplyr package. To this end, you will follow through the codes in one of our e-texts, Data Visualization with R. The given example code below is from Chapter 1.2 Cleaning data. # Load package library(tidyverse) ## ── Attaching packages ─────────────────�...
986 sym R (3097 sym/17 pcs)
Quiz 1
Use the given code below to answer the questions. Q1 Import Netflix stock prices, instead of Apple. Hint: Insert a new code chunk below and type in the code, using the tq_get() function above. Replace the ticker symbol. Find ticker symbols from Yahoo Finance. ## Load package library(tidyverse) # for cleaning, plotting, etc library(tidyquant) # f...
2037 sym R (1992 sym/5 pcs) 1 img
Mock Quiz 1
Use the given code below to answer the questions. Q1 Get Walmart stock prices, instead of Apple. Hint: Insert a new code chunk below and type in the code, using the tq_get() function above. Replace the ticker symbol for Walmart. You may find the ticker symbol for walmart from Yahoo Finance. ## Load package library(tidyverse) # for cleaning, plot...
1242 sym R (1035 sym/3 pcs) 1 img
My First RMarkdown with Code
Use the given code below to answer the questions. Q1 Get Amazon stock prices, instead of Apple. Hint: Insert a new code chunk below and type in the code, using the tq_get() function above. Replace the ticker symbol for Microsoft. You may find the ticker symbol for Microsoft from Yahoo Finance. ## Load package library(tidyverse) # for cleaning, p...
1189 sym R (1021 sym/3 pcs) 1 img
My First Publication
Q1 What is R? R is a free software Q2 What is RStudio? RStudio is a R language for code editor and development enviorment Q3 What is R packages? Complied code and simple data Hint: Type your answer in bold Note: For help with RMarkdown syntax, go Help > Cheatsheets > R Markdown Reference Guide. Q4 Add a code chunk. ...
330 sym
Quiz 3
The data set is from a case-control study of smoking and Alzheimer’s disease. The data set has two variables of main interest: smoking a factor with four levels “None”, “<10”, “10-20”, and “>20” (cigarettes per day) disease a factor with three levels “Alzheimer”, “Other dementias”, and “Other diagnoses”. Q1 Describ...
2143 sym 3 img
Term Project
This is an extension of the tidytuesday assignment you have already done. Complete the questions below, using the screencast you chose for the tidytuesday assigment. Import data library(tidyverse) library(ggthemes) theme_set(theme_light()) wwc_outcomes <- readr::read_csv("https://raw.githubusercontent.com/rfordatascience/tidytuesday/master/data/...
701 sym R (1465 sym/2 pcs) 1 img