-
Notifications
You must be signed in to change notification settings - Fork 0
/
First Blog.Rmd
79 lines (41 loc) · 1.63 KB
/
First Blog.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
---
title: "First Blog"
description:
DACSS 601 HomeWork 1
author:
- name: Cynthia Hester
date: 09/27/2021
categories:
- homework 1
- DACSS 601
- cynthia hester
output:
distill::distill_article:
self-contained: false
draft: true
---
**Introduction**
Hey everyone, my name is Cynthia and this is my first blog post. Whew!! I am a first year MS student in the DACSS program. I have a BS in Human Computer Interaction (HCI) with a minor in Information Technology from UMass-Amherst. I am originally from Port-of Spain, Trinidad. My hobbies include hiking, yoga,cycling, travel and reading.
**Cool stuff *R* can do**
I am going to import data from the Air Passengers data set which is included in R. It is comprised of data from the monthly totals of international airline passengers, 1949 to 1960. I am going visually express the data on a histogram plot which is a strength of R.
First, we are going to look at the first few rows of the Air Passengers argument using the *head function* in R which displays the first few rows of an argument. This is useful so the entire data set does not need be displayed.
```{r}
head(AirPassengers)
```
Next, to get an idea of what is at the end of the Air Passengers data set we are going to use the *tail function* which as the name implies displays what is at the end of the data set.
```{r}
tail(AirPassengers)
```
```{r}
hist(AirPassengers,
main="Histogram for Air Passengers",
xlab="Passengers",
border="red",
col="green",
xlim=c(100,700),
las=1,
breaks=5)
```
```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = TRUE)
```