Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update 08-nasa-metadata.Rmd #107

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions 08-nasa-metadata.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -44,15 +44,15 @@ Let's set up separate tidy data frames for title, description, and keyword, keep
```{r title, dependson = "download", message=FALSE}
library(dplyr)

nasa_title <- tibble(id = metadata$dataset$`_id`$`$oid`,
nasa_title <- tibble(id = metadata$dataset$identifier,
title = metadata$dataset$title)
nasa_title
```

These are just a few example titles from the datasets we will be exploring. Notice that we have the NASA-assigned ids here, and also that there are duplicate titles on separate datasets.

```{r desc, dependson = "download", dplyr.width = 150}
nasa_desc <- tibble(id = metadata$dataset$`_id`$`$oid`,
nasa_desc <- tibble(id = metadata$dataset$identifier,
desc = metadata$dataset$description)

nasa_desc %>%
Expand All @@ -67,7 +67,7 @@ Now we can build the tidy data frame for the keywords. For this one, we need to
```{r keyword, dependson = "download"}
library(tidyr)

nasa_keyword <- tibble(id = metadata$dataset$`_id`$`$oid`,
nasa_keyword <- tibble(id = metadata$dataset$identifier,
keyword = metadata$dataset$keyword) %>%
unnest(keyword)

Expand Down