Challenge 1 by Jinxia

challenge_1
Jinxia Niu
datasets:birds.csv and wild_birds_data.xlsx
Author

Jinxia Niu

Published

February 22, 2023

Code
#Reading in data

library(tidyverse)
── Attaching packages ─────────────────────────────────────── tidyverse 1.3.2 ──
✔ ggplot2 3.4.1     ✔ purrr   1.0.1
✔ tibble  3.1.8     ✔ dplyr   1.1.0
✔ tidyr   1.3.0     ✔ stringr 1.5.0
✔ readr   2.1.4     ✔ forcats 1.0.0
── Conflicts ────────────────────────────────────────── tidyverse_conflicts() ──
✖ dplyr::filter() masks stats::filter()
✖ dplyr::lag()    masks stats::lag()
Code
df <- read.csv("_data/birds.csv")
View(df)
nrow(df)
[1] 30977
Code
install.packages("readxl")
Error in contrib.url(repos, "source"): trying to use CRAN without setting a mirror
Code
library("readxl")
df1 <- read_excel("_data/wild_bird_data.xlsx")

knitr::opts_chunk$set(echo = TRUE, warning=FALSE, message=FALSE)

Describe the data

Birds.csv is a data sets of a total of 14 columns,30977 rows.It includes 4-6 kinds of birds gatherer from 9 areas, with the years of each kind of births discovered.

Wildbirds.xlsl is a dataset includes 2 columns and 147 rows.The birds are sorted by Wet body weight and population size,

Read in the Data

Read in one (or more) of the following data sets, using the correct R package and command.

  • railroad_2012_clean_county.csv ⭐
  • birds.csv ⭐⭐
  • FAOstat*.csv ⭐⭐
  • wild_bird_data.xlsx ⭐⭐⭐
  • StateCounty2012.xls ⭐⭐⭐⭐

Find the _data folder, located inside the posts folder. Then you can read in the data, using either one of the readr standard tidy read commands, or a specialized package such as readxl.

Add any comments or documentation as needed. More challenging data sets may require additional code chunks and documentation.

Describe the data

Using a combination of words and results of R commands, can you provide a high level description of the data? Describe as efficiently as possible where/how the data was (likely) gathered, indicate the cases and variables (both the interpretation and any details you deem useful to the reader to fully understand your chosen data).