Skip to content

Commit

Permalink
updated vignette and readme
Browse files Browse the repository at this point in the history
  • Loading branch information
sckott committed Sep 23, 2016
1 parent 760cf89 commit b188814
Show file tree
Hide file tree
Showing 6 changed files with 507 additions and 455 deletions.
75 changes: 36 additions & 39 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ Inspect metadata
```r
res$meta
#> $request_date
#> [1] "2015-11-26T01:10:03.810980"
#> [1] "2016-09-23T18:55:14.650960"
#>
#> $response_records
#> [1] 10
Expand All @@ -60,7 +60,7 @@ res$meta
#> [1] "45.523452,-122.676207"
#>
#> $last_cursor
#> [1] "False:CpoFCuYCCr4C9wAAABn_____jIGJmo2LkZqL0o-QjYuek96WkZuah9LNz87L0s_N0s7Onv8AAP90baCgmYuMoKD_AAD_XZ6Pj5qRmJaRmv8AAP9zdG2WkZuah_8AAP9dm4ic_wAA_3N0bZuQnKCWm_8AAP9dnIqSidCdlo2b0oyPmpyWkpqRjNDKz8zPx_8AAP9zf5yKkonQnZaNm9KMj5qclpKakYzQys_Mz8f_AAD__wD-__6MgYmajYuRmovSj5CNi56T3paRm5qH0s3PzsvSz83Szs6e_wB0baCgmYuMoKD_AF2ej4-akZiWkZr_AHN0bZaRm5qH_wBdm4ic_wBzdG2bkJyglpv_AF2cipKJ0J2WjZvSjI-anJaSmpGM0MrPzM_H_wBzf5yKkonQnZaNm9KMj5qclpKakYzQys_Mz8f_AP_-EAohBN0EkB08Gxk5AAAAAOb___9IClAAWgsJyEEOwRHJ_dAQARINRG9jdW1lbnRJbmRleBr9AShBTkQgKElTICJjdXN0b21lcl9uYW1lIiAiYXBwZW5naW5lIikgKElTICJncm91cF9uYW1lIiAic352ZXJ0bmV0LXBvcnRhbCIpIChJUyAibmFtZXNwYWNlIiAiaW5kZXgtMjAxNC0wMi0xMWEiKSAoSVMgImluZGV4X25hbWUiICJkd2MiKSAoQU5EIChRVCAiQXZlcyIgInJ0ZXh0X2NsYXNzIikgKE9SIChJUyAicmF0b21f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 Inspect data. A `dplyr` data.frame is given back, so you get a nice brief data s

```r
res$data[,1:5]
#> Source: local data frame [10 x 5]
#>
#> # A tibble: 10 × 5
#> modified language accessrights
#> (chr) (chr) (chr)
#> 1 2015-01-06 en NA
#> 2 2015-01-06 en NA
#> <chr> <chr> <chr>
#> 1 2015-01-06 en <NA>
#> 2 2015-01-06 en <NA>
#> 3 2015-05-11 07:55:08.0 en http://vertnet.org/resources/norms.html
#> 4 2015-05-11 07:55:08.0 en http://vertnet.org/resources/norms.html
#> 5 2015-08-26 13:10:07.0 en http://vertnet.org/resources/norms.html
Expand All @@ -94,7 +93,7 @@ res$data[,1:5]
#> 8 2015-08-26 13:10:07.0 en http://vertnet.org/resources/norms.html
#> 9 2015-08-26 13:10:07.0 en http://vertnet.org/resources/norms.html
#> 10 2015-08-26 13:10:07.0 en http://vertnet.org/resources/norms.html
#> Variables not shown: references (chr), institutionid (chr)
#> # ... with 2 more variables: references <chr>, institutionid <chr>
```

Search for _Mustela nigripes_ in the states of _Wyoming_ or _South Dakota_, limit to 20 records
Expand All @@ -103,30 +102,30 @@ Search for _Mustela nigripes_ in the states of _Wyoming_ or _South Dakota_, limi
```r
res <- searchbyterm(specificepithet = "nigripes", state = "(wyoming OR south dakota)", limit = 20, verbose = FALSE)
res$data[,1:5]
#> Source: local data frame [18 x 5]
#>
#> # A tibble: 19 × 5
#> modified language
#> (chr) (chr)
#> <chr> <chr>
#> 1 2010-01-14 13:06:23.0 en
#> 2 2011-11-17 12:02:57.0 en
#> 3 2013-08-07 en
#> 4 2015-04-14 15:45:27.0 en
#> 5 2015-04-17 17:39:57.0 en
#> 6 2015-08-18 10:24:17.0 en
#> 7 NA NA
#> 8 NA NA
#> 9 NA NA
#> 10 NA NA
#> 11 NA NA
#> 12 NA NA
#> 13 NA NA
#> 14 NA NA
#> 15 NA NA
#> 16 NA NA
#> 17 NA NA
#> 18 NA NA
#> Variables not shown: accessrights (chr), references (chr), institutionid
#> (chr)
#> 7 2016-06-02 en
#> 8 <NA> <NA>
#> 9 <NA> <NA>
#> 10 <NA> <NA>
#> 11 <NA> <NA>
#> 12 <NA> <NA>
#> 13 <NA> <NA>
#> 14 <NA> <NA>
#> 15 <NA> <NA>
#> 16 <NA> <NA>
#> 17 <NA> <NA>
#> 18 <NA> <NA>
#> 19 <NA> <NA>
#> # ... with 3 more variables: accessrights <chr>, references <chr>,
#> # institutionid <chr>
```

### dplyr downstream
Expand All @@ -141,21 +140,20 @@ out$data %>%
group_by(scientificname) %>%
summarise(count = length(scientificname)) %>%
arrange(desc(count))
#> Source: local data frame [25 x 2]
#>
#> # A tibble: 25 × 2
#> scientificname count
#> (chr) (int)
#> 1 Ochotona princeps 288
#> 2 Ochotona princeps saxatilis 168
#> <chr> <int>
#> 1 Ochotona princeps 287
#> 2 Ochotona princeps saxatilis 169
#> 3 Ochotona pallasi 114
#> 4 Ochotona princeps muiri 106
#> 4 Ochotona princeps muiri 107
#> 5 Ochotona hyperborea 30
#> 6 Ochotona princeps figginsi 19
#> 6 Ochotona princeps figginsi 18
#> 7 Ochotona dauurica 14
#> 8 Ochotona princeps princeps 9
#> 9 Ochotona princeps brunnescens 8
#> 10 Ochotona princeps cuppes 8
#> .. ... ...
#> # ... with 15 more rows
```


Expand All @@ -181,10 +179,9 @@ bigsearch(genus = "ochotona", rf = "pikaRecords", email = "big@@search.luv")
```r
res <- spatialsearch(lat = 33.529, lon = -105.694, radius = 2000, limit = 10, verbose = FALSE)
res$data[,1:5]
#> Source: local data frame [10 x 5]
#>
#> # A tibble: 10 × 5
#> modified language
#> (chr) (chr)
#> <chr> <chr>
#> 1 2013-09-10 12:55:00.0 en
#> 2 2013-09-10 12:55:00.0 en
#> 3 2013-09-10 12:55:00.0 en
Expand All @@ -194,9 +191,9 @@ res$data[,1:5]
#> 7 2014-09-09 14:04:14.0 en
#> 8 2015-08-03 19:48:08.0 en
#> 9 2015-09-08 00:33:35.0 en
#> 10 NA en
#> Variables not shown: accessrights (chr), references (chr), institutionid
#> (chr)
#> 10 <NA> en
#> # ... with 3 more variables: accessrights <chr>, references <chr>,
#> # institutionid <chr>
```

## Contributors
Expand Down
Binary file modified inst/vign/figure/unnamed-chunk-13-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions inst/vign/rvertnet_vignette.Rmd
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<!--
%\VignetteEngine{knitr::knitr}
%\VignetteIndexEntry{rvertnet introduction}
%\VignetteEncoding{UTF-8}
-->

```{r, eval=TRUE, echo=FALSE}
Expand Down
Loading

0 comments on commit b188814

Please sign in to comment.