hw1
challenge1
my name
Comtrade
ggplot2
Author

Keith Martin

Published

February 14, 2023

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
library(readr)
comtrade <- read_csv ("_data/AB_NYC_2019.csv")
Rows: 48895 Columns: 16
── Column specification ────────────────────────────────────────────────────────
Delimiter: ","
chr   (5): name, host_name, neighbourhood_group, neighbourhood, room_type
dbl  (10): id, host_id, latitude, longitude, price, minimum_nights, number_o...
date  (1): last_review

ℹ Use `spec()` to retrieve the full column specification for this data.
ℹ Specify the column types or set `show_col_types = FALSE` to quiet this message.
Code
View(comtrade)
Error in check_for_XQuartz(file.path(R.home("modules"), "R_de.so")): X11 library is missing: install XQuartz from www.xquartz.org
Code
x <- c(2,3,4,5)
mean(x)
[1] 3.5

Rendering your post

When you click the Render button a document will be generated that includes both content and the output of embedded code.

Warning

Be sure that you have moved your *.qmd file into the posts folder BEFORE you render it, so that all files are stored in the correct location.

Important

Only render a single file - don’t try to render the whole website!

Pilot Student Blogs

We are piloting a workflow including individual student websites with direted and limited pull requests back to course blogs. Please let us know if you would like to participate.

Reading in data files

The easiest data source to use - at least initially - is to choose something easily accessible, either from our _data folder provided, or from an online source that is publicly available.

Using Other Data

If you would like to use a source that you have access to and it is small enough and you don’t mind making it public, you can copy it into the _data file and include in your commit and pull request.

Using Private Data

If you would like to use a proprietary source of data, that should be possible using the same process outlined above. There may initially be a few issues. We hope to have this feature working smoothly soon!