DACSS 601: Data Science Fundamentals - FALL 2022
  • Fall 2022 Posts
  • Contributors
  • DACSS

Testing out reading in data

  • Course information
    • Overview
    • Instructional Team
    • Course Schedule
  • Weekly materials
    • Fall 2022 posts
    • final posts

On this page

  • Instructions

Testing out reading in data

  • Show All Code
  • Hide All Code

  • View Source
hw2
challenge1
my name
dataset
ggplot2
Author

Emma Narkewicz

Published

October 11, 2022

Code
library(tidyverse)

knitr::opts_chunk$set(echo = TRUE)

Instructions

This document provides yaml header inforamtion you will need to replicate each week to submit your homework or other blog posts. Please observe the following conventions:

  • Save your own copy of this template as a blog post in the posts folder, naming it FirstLast_hwX.qmd
  • Edit the yaml header to change your author name - use the same name each week
  • include a description that is reader friendly
  • update the category list to indicate the type of submission, the data used, the main packages or techniques, your name, or any thing else to make your document easy to find
  • edit as a normal qmd/rmd file
Code
Covid_Work_Data <- read.csv("/Users/Emma/Desktop/Koding is Kewl/Loss_of_Work_Due_to_Illness_from_COVID-19.csv") 
Warning in file(file, "rt"): cannot open file '/Users/Emma/Desktop/Koding is
Kewl/Loss_of_Work_Due_to_Illness_from_COVID-19.csv': No such file or directory
Error in file(file, "rt"): cannot open the connection
Code
Covid_Work_Data %>%
  pivot_wider(
    names_from = Group,
    values_from = Subgroup
  )
Error in pivot_wider(., names_from = Group, values_from = Subgroup): object 'Covid_Work_Data' not found
Source Code
---
title: "Testing out reading in data"
author: "Emma Narkewicz"
desription: "Something to describe what I did"
date: "10/11/2022"
format:
  html:
    toc: true
    code-fold: true
    code-copy: true
    code-tools: true
categories:
  - hw2
  - challenge1
  - my name
  - dataset
  - ggplot2
---

```{r}
#| label: setup
#| warning: false

library(tidyverse)

knitr::opts_chunk$set(echo = TRUE)
```

## Instructions

This document provides yaml header inforamtion you will need to replicate each week to submit your homework or other blog posts. Please observe the following conventions:

-   Save your own copy of this template as a blog post in the `posts` folder, naming it `FirstLast_hwX.qmd`
-   Edit the yaml header to change your author name - use the same name each week
-   include a *description* that is reader friendly
-   update the *category* list to indicate the type of submission, the data used, the main packages or techniques, your name, or any thing else to make your document easy to find
-   edit as a normal qmd/rmd file


```{r}
Covid_Work_Data <- read.csv("/Users/Emma/Desktop/Koding is Kewl/Loss_of_Work_Due_to_Illness_from_COVID-19.csv") 


Covid_Work_Data %>%
  pivot_wider(
    names_from = Group,
    values_from = Subgroup
  )


```