Write this chunk of code out in an English sentence to your grandma. Submit it on Socrative.com. Use BYUICLASS for the roomname.
-Florence Nightingale (Coxcomb graph)
Her most famous graph, displayed at the top of this article, shows the number of soldier deaths per month from various causes. Each pie slice represents a different month, from April 1854 through March 1856, and each color stands for a different cause of death. It takes just a quick glance to achieve the two main takeaways: that disease, colored blue, killed far more soldiers than either “wounds” (red) or “other” (black), and that it was reduced greatly in 1855.
After she completed her report, Nightingale worked hard to turn its conclusions into common knowledge, privately distributing it to influential people and writing several more reports, many of which included coxcombs. When she received push back from Army doctors, who thought sanitary measures a waste of money, she even leaked some of her charts to the press.
It is only by measuring that we can cross the river of myths.
Builds skills and experience from classes. Don’t take classes! Here is the real image
If there is a data format that exists and is used, then there is a way to import that data into R. We will learn how to handle the basic tabular formats. The following packages will provide most of the functionality we need.
library(readr)
library(readxls)
library(haven)
.csv
.html
.txt
.R
.xlsx
.Rmd
.doc
read.csv()
and read_csv()
?README.md
in your repository about the benefits.README.md
for me to read in class.parse_
commandsUse this code
money <- c('4,554,25', '$45', '8025.33cents', '288f45')
as.numeric(money)
and talk with your table about the output.parse_number(money)
and compare the results.read_csv()
with parsersproblems(challenge)
), the head()
, and tail()
of your challenge
object. What formats should they be??read_csv()
to fix the read in.Here are a few questions. Discuss each one with your table and decide which file type to use - .md
, .r
or .rmd
. Then discuss the reasons for that decision.