> For the complete documentation index, see [llms.txt](https://ondrej-kvasnovsky-2.gitbook.io/handbook-of-hidden-data-scientist/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ondrej-kvasnovsky-2.gitbook.io/handbook-of-hidden-data-scientist/reading_and_writing/excel.md).

# Excel

On Mac, we can use [gdata package](http://cran.r-project.org/web/packages/gdata/index.html).

## Read Excel file into memory

You might need to intall the following package to run this example.

```r
install.packages("gdata", dep = T)

library(gdata)
```

Run the following code.

```r
url <- "https://data.baltimorecity.gov/api/views/dz54-2aru/rows.xlsx?accessType=DOWNLOAD"

download.file(url, destfile="./raw-data.xlsx", method="curl")

excel.data <- read.xls("raw-data.xlsx")

View(excel.data)
```
