44
55This package was designed to provide an objective measurement of fetch for any
66coastal location around New Zealand. Calculating fetch by hand is inaccurate,
7- time-consuming and unreliable. The ` fetchR ` package provides a single function
7+ time-consuming and unreliable. The ** fetchR** package provides a single function
88to calculate the average fetch, all that is required is the latitude and
99longitude of the location in decimal degrees.
1010
1111# Web application
1212
13- Check out the online application for ` fetchR ` at https://blasee.shinyapps.io/fetchR_shiny/ !
13+ Check out the online application for ** fetchR** at https://blasee.shinyapps.io/fetchR_shiny/ !
1414
1515# Local installation
1616
17- The installation of ` fetchR ` requires the ` rgeos ` package successfully installed.
17+ The installation of ** fetchR** requires the ` rgeos ` package successfully installed.
1818
1919## From R
2020
@@ -30,7 +30,7 @@ install_github("blasee/fetchR")
3030# Calculate average fetch
3131
3232To calculate the average fetch for the marine site at latitude = -36.4 and
33- longitude = 174.8 (to the nearest 100m) :
33+ longitude = 174.8:
3434
3535
3636``` r
@@ -45,8 +45,8 @@ kawau_bay = fetch(-36.4, 174.8)
4545```
4646
4747``` r
48- # Contains the distances for each direction
49- head( kawau_bay )
48+ # Contains the distances for each direction (the first 6 rows are shown below)
49+ kawau_bay
5050```
5151
5252```
@@ -57,6 +57,7 @@ head(kawau_bay)
57574 -36.41251 174.8280 120 2.87
58585 -36.41348 174.8206 130 2.38
59596 -36.41755 174.8189 140 2.58
60+ ...
6061```
6162
6263The summary function gives the location coordinates, average and median fetch
0 commit comments