Skip to content

Commit

Permalink
#27: Export sites_info.
Browse files Browse the repository at this point in the history
  • Loading branch information
maurolepore committed Mar 6, 2018
1 parent 1a64c50 commit ac7a303
Show file tree
Hide file tree
Showing 7 changed files with 52 additions and 29 deletions.
8 changes: 8 additions & 0 deletions R/data.R
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,11 @@

#' @name wsg
"wsg_metadata"



#' Table of information on sites from tropical forests.
#'
#' @source Ervan Rutishauser (er.rutishauser@@gmail.com), received on Sat,
#' Oct 28, 2017 at 4:05 AM.
"sites_info"
7 changes: 4 additions & 3 deletions data-raw/data.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -97,9 +97,10 @@ use_data(references_metadata, overwrite = TRUE)
## `sites_info`

```{r sites-info}
# Basic info ForestGEO sites
# TODO: Add table. See https://goo.gl/ic7uya.
sites_info <- read_csv(
here("data-raw/data_sites_info.csv")
)
use_data(sites_info, overwrite = TRUE)
```

## `sitespecies`
Expand Down
27 changes: 22 additions & 5 deletions data-raw/data.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ documents [here](https://rmarkdown.rstudio.com/lesson-1.html).)

``` r
library(tidyverse)
#> -- Attaching packages ------------------------------------------- tidyverse 1.2.1 --
#> -- Attaching packages ---------------------------------------------- tidyverse 1.2.1 --
#> v ggplot2 2.2.1 v purrr 0.2.4
#> v tibble 1.4.2 v dplyr 0.7.4
#> v tidyr 0.8.0 v stringr 1.3.0
#> v readr 1.1.1 v forcats 0.3.0
#> -- Conflicts ---------------------------------------------- tidyverse_conflicts() --
#> -- Conflicts ------------------------------------------------- tidyverse_conflicts() --
#> x dplyr::filter() masks stats::filter()
#> x dplyr::lag() masks stats::lag()
library(here)
Expand Down Expand Up @@ -154,9 +154,26 @@ use_data(references_metadata, overwrite = TRUE)
## `sites_info`

``` r
# Basic info ForestGEO sites

# TODO: Add table. See https://goo.gl/ic7uya.
sites_info <- read_csv(
here("data-raw/data_sites_info.csv")
)
#> Parsed with column specification:
#> cols(
#> id = col_double(),
#> Site = col_character(),
#> site = col_character(),
#> lat = col_double(),
#> long = col_double(),
#> UTM_Zone = col_integer(),
#> UTM_X = col_character(),
#> UTM_Y = col_character(),
#> intertropical = col_character(),
#> size.ha = col_double(),
#> E = col_double(),
#> wsg.site.name = col_character()
#> )
use_data(sites_info, overwrite = TRUE)
#> <U+2714> Saving sites_info to data/sites_info.rda
```

## `sitespecies`
Expand Down
File renamed without changes.
Binary file added data/sites_info.rda
Binary file not shown.
21 changes: 0 additions & 21 deletions man/WSG.Rd

This file was deleted.

18 changes: 18 additions & 0 deletions man/sites_info.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit ac7a303

Please sign in to comment.