diff --git a/DESCRIPTION b/DESCRIPTION index 034b4ca..612548e 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,6 +1,6 @@ Type: Package Package: MazamaLocationUtils -Version: 0.4.0 +Version: 0.4.1 Title: Manage Spatial Metadata for Known Locations Authors@R: c( person("Jonathan", "Callahan", email="jonathan.s.callahan@gmail.com", role=c("aut","cre")), diff --git a/NEWS.md b/NEWS.md index a2b1a63..04070fc 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,3 +1,7 @@ +# MazamaLocationUtils 0.4.1 + +* Documentation fixes for CRAN submission. + # MazamaLocationUtils 0.4.0 * Added `clusterByDistance()` and `table_addClustering()` functions. diff --git a/R/clusterByDistance.R b/R/clusterByDistance.R index 11c6227..e14c299 100644 --- a/R/clusterByDistance.R +++ b/R/clusterByDistance.R @@ -30,7 +30,7 @@ #' #' @seealso \link{table_removeRecord} #' -#' #' @examples +#' @examples #' library(MazamaLocationUtils) #' #' # Fremont, Seattle 47.6504, -122.3509 diff --git a/R/table_addClustering.R b/R/table_addClustering.R index 8ab25ba..bd6dad1 100644 --- a/R/table_addClustering.R +++ b/R/table_addClustering.R @@ -38,7 +38,7 @@ #' #' @seealso \link{clusterByDistance} #' -#' #' @examples +#' @examples #' library(MazamaLocationUtils) #' #' # Fremont, Seattle 47.6504, -122.3509 diff --git a/R/table_leaflet.R b/R/table_leaflet.R index 14096c1..dcf33cf 100644 --- a/R/table_leaflet.R +++ b/R/table_leaflet.R @@ -16,11 +16,11 @@ #' #' @details The \code{maptype} argument is mapped onto leaflet "ProviderTile" #' names. Current mappings include: -#' \enumerate{ -#' \item{"roadmap"}{ -- "OpenStreetMap"} -#' \item{"satellite"}{ -- "Esri.WorldImagery"} -#' \item{"terrain"}{ -- "Esri.WorldTopoMap"} -#' \item{"toner"}{ -- "Stamen.Toner"} +#' \itemize{ +#' \item{"roadmap" => "OpenStreetMap"} +#' \item{"satellite" => "Esri.WorldImagery"} +#' \item{"terrain" => "Esri.WorldTopoMap"} +#' \item{"toner" => "Stamen.Toner"} #' } #' #' If a character string not listed above is provided, it will be used as the diff --git a/docs/404.html b/docs/404.html index f03ecb1..19d6954 100644 --- a/docs/404.html +++ b/docs/404.html @@ -32,7 +32,7 @@ MazamaLocationUtils - 0.4.0 + 0.4.1 diff --git a/docs/LICENSE-text.html b/docs/LICENSE-text.html index 0e297e5..03d828f 100644 --- a/docs/LICENSE-text.html +++ b/docs/LICENSE-text.html @@ -17,7 +17,7 @@ MazamaLocationUtils - 0.4.0 + 0.4.1 diff --git a/docs/articles/Developer_Style_Guide.html b/docs/articles/Developer_Style_Guide.html index 2b7318e..ab3e2f9 100644 --- a/docs/articles/Developer_Style_Guide.html +++ b/docs/articles/Developer_Style_Guide.html @@ -33,7 +33,7 @@ MazamaLocationUtils - 0.4.0 + 0.4.1 diff --git a/docs/articles/MazamaLocationUtils.html b/docs/articles/MazamaLocationUtils.html index 2b2df5f..6d8f8ab 100644 --- a/docs/articles/MazamaLocationUtils.html +++ b/docs/articles/MazamaLocationUtils.html @@ -33,7 +33,7 @@ MazamaLocationUtils - 0.4.0 + 0.4.1 @@ -312,9 +312,9 @@

Finding known locations latitude = lats, distanceThreshold = 250 ) %>% dplyr::pull(city) -
##  [1] "Burbank"      NA             "Soap Lake"    NA             NA            
+
##  [1] NA             "Newport"      NA             NA             NA            
 ##  [6] NA             NA             NA             NA             "Wenatchee"   
-## [11] "Mount Vernon" "White Salmon" "LaCrosse"
+## [11] "Mount Vernon" NA NA
 # How about 5000 meters?
 table_getNearestLocation(
diff --git a/docs/articles/index.html b/docs/articles/index.html
index 4d82142..74c5e3d 100644
--- a/docs/articles/index.html
+++ b/docs/articles/index.html
@@ -17,7 +17,7 @@
       
       
         MazamaLocationUtils
-        0.4.0
+        0.4.1
       
     
diff --git a/docs/authors.html b/docs/authors.html index de03670..b742882 100644 --- a/docs/authors.html +++ b/docs/authors.html @@ -17,7 +17,7 @@ MazamaLocationUtils - 0.4.0 + 0.4.1 @@ -84,13 +84,13 @@

Citation

Callahan J (2023). MazamaLocationUtils: Manage Spatial Metadata for Known Locations. -R package version 0.4.0, https://github.com/MazamaScience/MazamaLocationUtils. +R package version 0.4.1, https://github.com/MazamaScience/MazamaLocationUtils.

@Manual{,
   title = {MazamaLocationUtils: Manage Spatial Metadata for Known Locations},
   author = {Jonathan Callahan},
   year = {2023},
-  note = {R package version 0.4.0},
+  note = {R package version 0.4.1},
   url = {https://github.com/MazamaScience/MazamaLocationUtils},
 }
diff --git a/docs/index.html b/docs/index.html index fef6134..68f20db 100644 --- a/docs/index.html +++ b/docs/index.html @@ -36,7 +36,7 @@ MazamaLocationUtils - 0.4.0 + 0.4.1 diff --git a/docs/news/index.html b/docs/news/index.html index 17b5558..1c70ac2 100644 --- a/docs/news/index.html +++ b/docs/news/index.html @@ -17,7 +17,7 @@ MazamaLocationUtils - 0.4.0 + 0.4.1 @@ -60,6 +60,10 @@

Changelog

Source: NEWS.md +
+ +
  • Documentation fixes for CRAN submission.
  • +
  • Added clusterByDistance() and table_addClustering() functions.
  • diff --git a/docs/pkgdown.yml b/docs/pkgdown.yml index f9fca93..2a4aa9c 100644 --- a/docs/pkgdown.yml +++ b/docs/pkgdown.yml @@ -4,5 +4,5 @@ pkgdown_sha: ~ articles: Developer_Style_Guide: Developer_Style_Guide.html MazamaLocationUtils: MazamaLocationUtils.html -last_built: 2023-10-30T16:42Z +last_built: 2023-10-30T18:04Z diff --git a/docs/reference/LocationDataDir.html b/docs/reference/LocationDataDir.html index 054e11e..b631962 100644 --- a/docs/reference/LocationDataDir.html +++ b/docs/reference/LocationDataDir.html @@ -20,7 +20,7 @@ MazamaLocationUtils - 0.4.0 + 0.4.1
diff --git a/docs/reference/MazamaLocationUtils.html b/docs/reference/MazamaLocationUtils.html index 961bc0b..0d85684 100644 --- a/docs/reference/MazamaLocationUtils.html +++ b/docs/reference/MazamaLocationUtils.html @@ -22,7 +22,7 @@ MazamaLocationUtils - 0.4.0 + 0.4.1 diff --git a/docs/reference/apiKeys.html b/docs/reference/apiKeys.html index 15973da..71efe8f 100644 --- a/docs/reference/apiKeys.html +++ b/docs/reference/apiKeys.html @@ -21,7 +21,7 @@ MazamaLocationUtils - 0.4.0 + 0.4.1 diff --git a/docs/reference/clusterByDistance-1.png b/docs/reference/clusterByDistance-1.png new file mode 100644 index 0000000..6c8c2ae Binary files /dev/null and b/docs/reference/clusterByDistance-1.png differ diff --git a/docs/reference/clusterByDistance.html b/docs/reference/clusterByDistance.html index ad1de02..1067cc6 100644 --- a/docs/reference/clusterByDistance.html +++ b/docs/reference/clusterByDistance.html @@ -25,7 +25,7 @@ MazamaLocationUtils - 0.4.0 + 0.4.1 @@ -131,26 +131,40 @@

References

See also

-

table_removeRecord

-

#' @examples -library(MazamaLocationUtils)Fremont, Seattle 47.6504, -122.3509Magnolia, Seattle 47.6403, -122.3997Downtown Seattle 47.6055, -122.3370

-

fremont_x <- jitter(rep(-122.3509, 10), .0005) -fremont_y <- jitter(rep(47.6504, 10), .0005)

-

magnolia_x <- jitter(rep(-122.3997, 8), .0005) -magnolia_y <- jitter(rep(47.6403, 8), .0005)

-

downtown_x <- jitter(rep(-122.3370, 3), .0005) -downtown_y <- jitter(rep(47.6055, 3), .0005)Apply clustering

-

tbl <- -dplyr::tibble( -longitude = c(fremont_x, magnolia_x, downtown_x), -latitude = c(fremont_y, magnolia_y, downtown_y) -) %>% -clusterByDistance( -clusterDiameter = 1000 -)

-

plot(tbl$longitude, tbl$latitude, pch = tbl$clusterID)

+
+
+

Examples

+
library(MazamaLocationUtils)
+
+# Fremont, Seattle 47.6504, -122.3509
+# Magnolia, Seattle 47.6403, -122.3997
+# Downtown Seattle 47.6055, -122.3370
+
+fremont_x <- jitter(rep(-122.3509, 10), .0005)
+fremont_y <- jitter(rep(47.6504, 10), .0005)
+
+magnolia_x <- jitter(rep(-122.3997, 8), .0005)
+magnolia_y <- jitter(rep(47.6403, 8), .0005)
+
+downtown_x <- jitter(rep(-122.3370, 3), .0005)
+downtown_y <- jitter(rep(47.6055, 3), .0005)
+
+# Apply clustering
+tbl <-
+  dplyr::tibble(
+    longitude = c(fremont_x, magnolia_x, downtown_x),
+    latitude = c(fremont_y, magnolia_y, downtown_y)
+  ) %>%
+  clusterByDistance(
+    clusterDiameter = 1000
+  )
+
+plot(tbl$longitude, tbl$latitude, pch = tbl$clusterID)
+
+
+
diff --git a/docs/reference/getLocationDataDir.html b/docs/reference/getLocationDataDir.html index 8d4ee61..b0c1293 100644 --- a/docs/reference/getLocationDataDir.html +++ b/docs/reference/getLocationDataDir.html @@ -17,7 +17,7 @@ MazamaLocationUtils - 0.4.0 + 0.4.1 diff --git a/docs/reference/id_monitors_500.html b/docs/reference/id_monitors_500.html index 1d27d0e..b76166d 100644 --- a/docs/reference/id_monitors_500.html +++ b/docs/reference/id_monitors_500.html @@ -40,7 +40,7 @@ MazamaLocationUtils - 0.4.0 + 0.4.1 diff --git a/docs/reference/index.html b/docs/reference/index.html index b084601..5ba7718 100644 --- a/docs/reference/index.html +++ b/docs/reference/index.html @@ -17,7 +17,7 @@ MazamaLocationUtils - 0.4.0 + 0.4.1 diff --git a/docs/reference/initializeMazamaSpatialUtils.html b/docs/reference/initializeMazamaSpatialUtils.html index 726552f..fd7b1e1 100644 --- a/docs/reference/initializeMazamaSpatialUtils.html +++ b/docs/reference/initializeMazamaSpatialUtils.html @@ -27,7 +27,7 @@ MazamaLocationUtils - 0.4.0 + 0.4.1 diff --git a/docs/reference/location_createID.html b/docs/reference/location_createID.html index 3934752..2c9e05e 100644 --- a/docs/reference/location_createID.html +++ b/docs/reference/location_createID.html @@ -24,7 +24,7 @@ MazamaLocationUtils - 0.4.0 + 0.4.1 diff --git a/docs/reference/location_getCensusBlock.html b/docs/reference/location_getCensusBlock.html index 7dae863..4939eb9 100644 --- a/docs/reference/location_getCensusBlock.html +++ b/docs/reference/location_getCensusBlock.html @@ -24,7 +24,7 @@ MazamaLocationUtils - 0.4.0 + 0.4.1 diff --git a/docs/reference/location_getOpenCageInfo.html b/docs/reference/location_getOpenCageInfo.html index dc78a6c..b9c24d6 100644 --- a/docs/reference/location_getOpenCageInfo.html +++ b/docs/reference/location_getOpenCageInfo.html @@ -20,7 +20,7 @@ MazamaLocationUtils - 0.4.0 + 0.4.1 diff --git a/docs/reference/location_getSingleAddress_Photon.html b/docs/reference/location_getSingleAddress_Photon.html index a9b8f8d..dc20aff 100644 --- a/docs/reference/location_getSingleAddress_Photon.html +++ b/docs/reference/location_getSingleAddress_Photon.html @@ -34,7 +34,7 @@ MazamaLocationUtils - 0.4.0 + 0.4.1 diff --git a/docs/reference/location_getSingleAddress_TexasAM.html b/docs/reference/location_getSingleAddress_TexasAM.html index b7fe545..1e67b99 100644 --- a/docs/reference/location_getSingleAddress_TexasAM.html +++ b/docs/reference/location_getSingleAddress_TexasAM.html @@ -18,7 +18,7 @@ MazamaLocationUtils - 0.4.0 + 0.4.1 diff --git a/docs/reference/location_getSingleElevation_USGS.html b/docs/reference/location_getSingleElevation_USGS.html index 83f7111..4bf7a3b 100644 --- a/docs/reference/location_getSingleElevation_USGS.html +++ b/docs/reference/location_getSingleElevation_USGS.html @@ -19,7 +19,7 @@ MazamaLocationUtils - 0.4.0 + 0.4.1 diff --git a/docs/reference/location_initialize.html b/docs/reference/location_initialize.html index 2d0f334..d092b58 100644 --- a/docs/reference/location_initialize.html +++ b/docs/reference/location_initialize.html @@ -33,7 +33,7 @@ MazamaLocationUtils - 0.4.0 + 0.4.1 diff --git a/docs/reference/or_monitors_500.html b/docs/reference/or_monitors_500.html index e298ee4..25af50a 100644 --- a/docs/reference/or_monitors_500.html +++ b/docs/reference/or_monitors_500.html @@ -40,7 +40,7 @@ MazamaLocationUtils - 0.4.0 + 0.4.1 diff --git a/docs/reference/pipe.html b/docs/reference/pipe.html index cc34808..7fc0bfd 100644 --- a/docs/reference/pipe.html +++ b/docs/reference/pipe.html @@ -17,7 +17,7 @@ MazamaLocationUtils - 0.4.0 + 0.4.1 diff --git a/docs/reference/setLocationDataDir.html b/docs/reference/setLocationDataDir.html index 19111ef..a251709 100644 --- a/docs/reference/setLocationDataDir.html +++ b/docs/reference/setLocationDataDir.html @@ -18,7 +18,7 @@ MazamaLocationUtils - 0.4.0 + 0.4.1 diff --git a/docs/reference/table_addClustering-1.png b/docs/reference/table_addClustering-1.png new file mode 100644 index 0000000..69f7022 Binary files /dev/null and b/docs/reference/table_addClustering-1.png differ diff --git a/docs/reference/table_addClustering.html b/docs/reference/table_addClustering.html index 2dfe1b6..9da9121 100644 --- a/docs/reference/table_addClustering.html +++ b/docs/reference/table_addClustering.html @@ -28,7 +28,7 @@ MazamaLocationUtils - 0.4.0 + 0.4.1 @@ -140,26 +140,40 @@

References

See also

-

clusterByDistance

-

#' @examples -library(MazamaLocationUtils)Fremont, Seattle 47.6504, -122.3509Magnolia, Seattle 47.6403, -122.3997Downtown Seattle 47.6055, -122.3370

-

fremont_x <- jitter(rep(-122.3509, 10), .0005) -fremont_y <- jitter(rep(47.6504, 10), .0005)

-

magnolia_x <- jitter(rep(-122.3997, 8), .0005) -magnolia_y <- jitter(rep(47.6403, 8), .0005)

-

downtown_x <- jitter(rep(-122.3370, 3), .0005) -downtown_y <- jitter(rep(47.6055, 3), .0005)Apply clustering

-

tbl <- -dplyr::tibble( -longitude = c(fremont_x, magnolia_x, downtown_x), -latitude = c(fremont_y, magnolia_y, downtown_y) -) %>% -table_addClustering( -clusterDiameter = 1000 -)

-

plot(tbl$longitude, tbl$latitude, pch = tbl$clusterID)

+
+
+

Examples

+
library(MazamaLocationUtils)
+
+# Fremont, Seattle 47.6504, -122.3509
+# Magnolia, Seattle 47.6403, -122.3997
+# Downtown Seattle 47.6055, -122.3370
+
+fremont_x <- jitter(rep(-122.3509, 10), .0005)
+fremont_y <- jitter(rep(47.6504, 10), .0005)
+
+magnolia_x <- jitter(rep(-122.3997, 8), .0005)
+magnolia_y <- jitter(rep(47.6403, 8), .0005)
+
+downtown_x <- jitter(rep(-122.3370, 3), .0005)
+downtown_y <- jitter(rep(47.6055, 3), .0005)
+
+# Apply clustering
+tbl <-
+  dplyr::tibble(
+    longitude = c(fremont_x, magnolia_x, downtown_x),
+    latitude = c(fremont_y, magnolia_y, downtown_y)
+  ) %>%
+  table_addClustering(
+    clusterDiameter = 1000
+  )
+
+plot(tbl$longitude, tbl$latitude, pch = tbl$clusterID)
+
+
+
diff --git a/docs/reference/table_addCoreMetadata.html b/docs/reference/table_addCoreMetadata.html index 1e429a3..bced06d 100644 --- a/docs/reference/table_addCoreMetadata.html +++ b/docs/reference/table_addCoreMetadata.html @@ -43,7 +43,7 @@ MazamaLocationUtils - 0.4.0 + 0.4.1 diff --git a/docs/reference/table_addLocation.html b/docs/reference/table_addLocation.html index 27ad0ae..41c0c54 100644 --- a/docs/reference/table_addLocation.html +++ b/docs/reference/table_addLocation.html @@ -20,7 +20,7 @@ MazamaLocationUtils - 0.4.0 + 0.4.1 diff --git a/docs/reference/table_addOpenCageInfo.html b/docs/reference/table_addOpenCageInfo.html index eed205a..ec483b8 100644 --- a/docs/reference/table_addOpenCageInfo.html +++ b/docs/reference/table_addOpenCageInfo.html @@ -37,7 +37,7 @@ MazamaLocationUtils - 0.4.0 + 0.4.1 diff --git a/docs/reference/table_addSingleLocation.html b/docs/reference/table_addSingleLocation.html index 7340ade..42be238 100644 --- a/docs/reference/table_addSingleLocation.html +++ b/docs/reference/table_addSingleLocation.html @@ -20,7 +20,7 @@ MazamaLocationUtils - 0.4.0 + 0.4.1 diff --git a/docs/reference/table_filterByDistance.html b/docs/reference/table_filterByDistance.html index 713a2ed..f185342 100644 --- a/docs/reference/table_filterByDistance.html +++ b/docs/reference/table_filterByDistance.html @@ -19,7 +19,7 @@ MazamaLocationUtils - 0.4.0 + 0.4.1 diff --git a/docs/reference/table_findAdjacentDistances.html b/docs/reference/table_findAdjacentDistances.html index d3a669b..50c3009 100644 --- a/docs/reference/table_findAdjacentDistances.html +++ b/docs/reference/table_findAdjacentDistances.html @@ -23,7 +23,7 @@ MazamaLocationUtils - 0.4.0 + 0.4.1 diff --git a/docs/reference/table_findAdjacentLocations.html b/docs/reference/table_findAdjacentLocations.html index 604d315..bb39dce 100644 --- a/docs/reference/table_findAdjacentLocations.html +++ b/docs/reference/table_findAdjacentLocations.html @@ -23,7 +23,7 @@ MazamaLocationUtils - 0.4.0 + 0.4.1 diff --git a/docs/reference/table_getDistanceFromTarget.html b/docs/reference/table_getDistanceFromTarget.html index c5d2889..9bd8a1f 100644 --- a/docs/reference/table_getDistanceFromTarget.html +++ b/docs/reference/table_getDistanceFromTarget.html @@ -20,7 +20,7 @@ MazamaLocationUtils - 0.4.0 + 0.4.1 diff --git a/docs/reference/table_getLocationID.html b/docs/reference/table_getLocationID.html index cbba1e6..0e60b01 100644 --- a/docs/reference/table_getLocationID.html +++ b/docs/reference/table_getLocationID.html @@ -21,7 +21,7 @@ MazamaLocationUtils - 0.4.0 + 0.4.1 diff --git a/docs/reference/table_getNearestDistance.html b/docs/reference/table_getNearestDistance.html index aa43398..45a7085 100644 --- a/docs/reference/table_getNearestDistance.html +++ b/docs/reference/table_getNearestDistance.html @@ -24,7 +24,7 @@ MazamaLocationUtils - 0.4.0 + 0.4.1 diff --git a/docs/reference/table_getNearestLocation.html b/docs/reference/table_getNearestLocation.html index 67f9d7c..9f954d0 100644 --- a/docs/reference/table_getNearestLocation.html +++ b/docs/reference/table_getNearestLocation.html @@ -21,7 +21,7 @@ MazamaLocationUtils - 0.4.0 + 0.4.1 diff --git a/docs/reference/table_getRecordIndex.html b/docs/reference/table_getRecordIndex.html index 2ddfb9f..df16789 100644 --- a/docs/reference/table_getRecordIndex.html +++ b/docs/reference/table_getRecordIndex.html @@ -18,7 +18,7 @@ MazamaLocationUtils - 0.4.0 + 0.4.1 diff --git a/docs/reference/table_initialize.html b/docs/reference/table_initialize.html index 8989f23..1c6638e 100644 --- a/docs/reference/table_initialize.html +++ b/docs/reference/table_initialize.html @@ -34,7 +34,7 @@ MazamaLocationUtils - 0.4.0 + 0.4.1 diff --git a/docs/reference/table_initializeExisting.html b/docs/reference/table_initializeExisting.html index fba8bfa..3fd0a8e 100644 --- a/docs/reference/table_initializeExisting.html +++ b/docs/reference/table_initializeExisting.html @@ -47,7 +47,7 @@ MazamaLocationUtils - 0.4.0 + 0.4.1 diff --git a/docs/reference/table_leaflet.html b/docs/reference/table_leaflet.html index c5b1eaf..a07c19a 100644 --- a/docs/reference/table_leaflet.html +++ b/docs/reference/table_leaflet.html @@ -20,7 +20,7 @@ MazamaLocationUtils - 0.4.0 + 0.4.1 @@ -116,11 +116,11 @@

Value

Details

The maptype argument is mapped onto leaflet "ProviderTile" -names. Current mappings include:

  1. "roadmap" -- "OpenStreetMap"

  2. -
  3. "satellite" -- "Esri.WorldImagery"

  4. -
  5. "terrain" -- "Esri.WorldTopoMap"

  6. -
  7. "toner" -- "Stamen.Toner"

  8. -

If a character string not listed above is provided, it will be used as the +names. Current mappings include:

  • "roadmap" => "OpenStreetMap"

  • +
  • "satellite" => "Esri.WorldImagery"

  • +
  • "terrain" => "Esri.WorldTopoMap"

  • +
  • "toner" => "Stamen.Toner"

  • +

If a character string not listed above is provided, it will be used as the underlying map tile if available. See https://leaflet-extras.github.io/leaflet-providers/ for a list of "provider tiles" to use as the background map.

diff --git a/docs/reference/table_leafletAdd.html b/docs/reference/table_leafletAdd.html index 42fed0c..583f2c6 100644 --- a/docs/reference/table_leafletAdd.html +++ b/docs/reference/table_leafletAdd.html @@ -20,7 +20,7 @@ MazamaLocationUtils - 0.4.0 + 0.4.1
diff --git a/docs/reference/table_load.html b/docs/reference/table_load.html index 7605090..7eadc67 100644 --- a/docs/reference/table_load.html +++ b/docs/reference/table_load.html @@ -21,7 +21,7 @@ MazamaLocationUtils - 0.4.0 + 0.4.1 diff --git a/docs/reference/table_removeColumn.html b/docs/reference/table_removeColumn.html index e10a569..272ce26 100644 --- a/docs/reference/table_removeColumn.html +++ b/docs/reference/table_removeColumn.html @@ -18,7 +18,7 @@ MazamaLocationUtils - 0.4.0 + 0.4.1 diff --git a/docs/reference/table_removeRecord.html b/docs/reference/table_removeRecord.html index 00ec20b..1d8213e 100644 --- a/docs/reference/table_removeRecord.html +++ b/docs/reference/table_removeRecord.html @@ -18,7 +18,7 @@ MazamaLocationUtils - 0.4.0 + 0.4.1 diff --git a/docs/reference/table_save.html b/docs/reference/table_save.html index 0e02ebd..2eca291 100644 --- a/docs/reference/table_save.html +++ b/docs/reference/table_save.html @@ -17,7 +17,7 @@ MazamaLocationUtils - 0.4.0 + 0.4.1 @@ -126,7 +126,7 @@

Examples

# Check the locationDataDir list.files(getLocationDataDir(), pattern = "table_save_example") -#> [1] "table_save_example.2023-10-30T09:44:24.rda" +#> [1] "table_save_example.2023-10-30T11:06:13.rda" #> [2] "table_save_example.rda"
diff --git a/docs/reference/table_updateColumn.html b/docs/reference/table_updateColumn.html index 3913c7d..435e35f 100644 --- a/docs/reference/table_updateColumn.html +++ b/docs/reference/table_updateColumn.html @@ -23,7 +23,7 @@ MazamaLocationUtils - 0.4.0 + 0.4.1 diff --git a/docs/reference/table_updateSingleRecord.html b/docs/reference/table_updateSingleRecord.html index 86c2c80..5e87cec 100644 --- a/docs/reference/table_updateSingleRecord.html +++ b/docs/reference/table_updateSingleRecord.html @@ -21,7 +21,7 @@ MazamaLocationUtils - 0.4.0 + 0.4.1 diff --git a/docs/reference/validateLocationTbl.html b/docs/reference/validateLocationTbl.html index f96dc83..e4554c4 100644 --- a/docs/reference/validateLocationTbl.html +++ b/docs/reference/validateLocationTbl.html @@ -18,7 +18,7 @@ MazamaLocationUtils - 0.4.0 + 0.4.1 diff --git a/docs/reference/validateLonLat.html b/docs/reference/validateLonLat.html index 9677a26..1058e34 100644 --- a/docs/reference/validateLonLat.html +++ b/docs/reference/validateLonLat.html @@ -17,7 +17,7 @@ MazamaLocationUtils - 0.4.0 + 0.4.1 diff --git a/docs/reference/validateLonsLats.html b/docs/reference/validateLonsLats.html index f5fa5c3..360fca8 100644 --- a/docs/reference/validateLonsLats.html +++ b/docs/reference/validateLonsLats.html @@ -17,7 +17,7 @@ MazamaLocationUtils - 0.4.0 + 0.4.1 diff --git a/docs/reference/validateMazamaSpatialUtils.html b/docs/reference/validateMazamaSpatialUtils.html index 762eb90..ae4d7d2 100644 --- a/docs/reference/validateMazamaSpatialUtils.html +++ b/docs/reference/validateMazamaSpatialUtils.html @@ -19,7 +19,7 @@ MazamaLocationUtils - 0.4.0 + 0.4.1 diff --git a/docs/reference/wa_airfire_meta.html b/docs/reference/wa_airfire_meta.html index 74ad863..822a6d1 100644 --- a/docs/reference/wa_airfire_meta.html +++ b/docs/reference/wa_airfire_meta.html @@ -34,7 +34,7 @@ MazamaLocationUtils - 0.4.0 + 0.4.1 diff --git a/docs/reference/wa_monitors_500.html b/docs/reference/wa_monitors_500.html index 8558315..1a44ece 100644 --- a/docs/reference/wa_monitors_500.html +++ b/docs/reference/wa_monitors_500.html @@ -40,7 +40,7 @@ MazamaLocationUtils - 0.4.0 + 0.4.1 diff --git a/man/clusterByDistance.Rd b/man/clusterByDistance.Rd index 3ea2d1b..0659c6e 100644 --- a/man/clusterByDistance.Rd +++ b/man/clusterByDistance.Rd @@ -44,14 +44,12 @@ The value of \code{clusterDiameter} is compared with the output of In most applications, the \link{table_addClustering} function should be used as it implements two-stage clustering using \code{clusterbyDistance()}. } -\references{ -\href{https://working-with-data.mazamascience.com/2021/07/15/when-k-means-clustering-fails/}{When k-means clustering fails} -} -\seealso{ -\link{table_removeRecord} +\examples{ +library(MazamaLocationUtils) -#' @examples -library(MazamaLocationUtils)Fremont, Seattle 47.6504, -122.3509Magnolia, Seattle 47.6403, -122.3997Downtown Seattle 47.6055, -122.3370 +# Fremont, Seattle 47.6504, -122.3509 +# Magnolia, Seattle 47.6403, -122.3997 +# Downtown Seattle 47.6055, -122.3370 fremont_x <- jitter(rep(-122.3509, 10), .0005) fremont_y <- jitter(rep(47.6504, 10), .0005) @@ -60,16 +58,23 @@ magnolia_x <- jitter(rep(-122.3997, 8), .0005) magnolia_y <- jitter(rep(47.6403, 8), .0005) downtown_x <- jitter(rep(-122.3370, 3), .0005) -downtown_y <- jitter(rep(47.6055, 3), .0005)Apply clustering +downtown_y <- jitter(rep(47.6055, 3), .0005) +# Apply clustering tbl <- -dplyr::tibble( -longitude = c(fremont_x, magnolia_x, downtown_x), -latitude = c(fremont_y, magnolia_y, downtown_y) -) \%>\% -clusterByDistance( -clusterDiameter = 1000 -) + dplyr::tibble( + longitude = c(fremont_x, magnolia_x, downtown_x), + latitude = c(fremont_y, magnolia_y, downtown_y) + ) \%>\% + clusterByDistance( + clusterDiameter = 1000 + ) plot(tbl$longitude, tbl$latitude, pch = tbl$clusterID) } +\references{ +\href{https://working-with-data.mazamascience.com/2021/07/15/when-k-means-clustering-fails/}{When k-means clustering fails} +} +\seealso{ +\link{table_removeRecord} +} diff --git a/man/table_addClustering.Rd b/man/table_addClustering.Rd index e40e146..585e5e1 100644 --- a/man/table_addClustering.Rd +++ b/man/table_addClustering.Rd @@ -52,14 +52,12 @@ clustered locations that are still too close to eachother, another round of clustering is performed using the results of the previous attempt. This two-stage approach seems to work well in. practice. } -\references{ -\href{https://working-with-data.mazamascience.com/2021/07/15/when-k-means-clustering-fails/}{When k-means clustering fails} -} -\seealso{ -\link{clusterByDistance} +\examples{ +library(MazamaLocationUtils) -#' @examples -library(MazamaLocationUtils)Fremont, Seattle 47.6504, -122.3509Magnolia, Seattle 47.6403, -122.3997Downtown Seattle 47.6055, -122.3370 +# Fremont, Seattle 47.6504, -122.3509 +# Magnolia, Seattle 47.6403, -122.3997 +# Downtown Seattle 47.6055, -122.3370 fremont_x <- jitter(rep(-122.3509, 10), .0005) fremont_y <- jitter(rep(47.6504, 10), .0005) @@ -68,16 +66,23 @@ magnolia_x <- jitter(rep(-122.3997, 8), .0005) magnolia_y <- jitter(rep(47.6403, 8), .0005) downtown_x <- jitter(rep(-122.3370, 3), .0005) -downtown_y <- jitter(rep(47.6055, 3), .0005)Apply clustering +downtown_y <- jitter(rep(47.6055, 3), .0005) +# Apply clustering tbl <- -dplyr::tibble( -longitude = c(fremont_x, magnolia_x, downtown_x), -latitude = c(fremont_y, magnolia_y, downtown_y) -) \%>\% -table_addClustering( -clusterDiameter = 1000 -) + dplyr::tibble( + longitude = c(fremont_x, magnolia_x, downtown_x), + latitude = c(fremont_y, magnolia_y, downtown_y) + ) \%>\% + table_addClustering( + clusterDiameter = 1000 + ) plot(tbl$longitude, tbl$latitude, pch = tbl$clusterID) } +\references{ +\href{https://working-with-data.mazamascience.com/2021/07/15/when-k-means-clustering-fails/}{When k-means clustering fails} +} +\seealso{ +\link{clusterByDistance} +} diff --git a/man/table_leaflet.Rd b/man/table_leaflet.Rd index e44e649..627b03b 100644 --- a/man/table_leaflet.Rd +++ b/man/table_leaflet.Rd @@ -39,11 +39,11 @@ identified. Set \code{jitter = 0} to see precise locations. \details{ The \code{maptype} argument is mapped onto leaflet "ProviderTile" names. Current mappings include: -\enumerate{ -\item{"roadmap"}{ -- "OpenStreetMap"} -\item{"satellite"}{ -- "Esri.WorldImagery"} -\item{"terrain"}{ -- "Esri.WorldTopoMap"} -\item{"toner"}{ -- "Stamen.Toner"} +\itemize{ +\item{"roadmap" => "OpenStreetMap"} +\item{"satellite" => "Esri.WorldImagery"} +\item{"terrain" => "Esri.WorldTopoMap"} +\item{"toner" => "Stamen.Toner"} } If a character string not listed above is provided, it will be used as the