You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: NEWS.md
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,9 @@
1
1
# *News*
2
2
3
+
# zipcodeR 0.3.3
4
+
- This update vectorizes the `zip_distance()` function to allow distance calculations between two vectors or columns of ZIP codes. The function now returns a data.frame of the resulting distance calculation.
5
+
-`zip_distance()` now includes an additional argument, units, which allows selection between miles and meters for distance calculations.
6
+
3
7
# zipcodeR 0.3.2
4
8
-`zip_code_db` has been updated.
5
9
-`download_zip_data()` has been refactored to make data updates more easily accessible and compare against existing data. Data is now directly downloaded from the upstream source and the existing data GitHub repository will no longer be updated.
#' Calculate the distance between two ZIP codes in miles
66
66
#'
67
67
#'
68
-
#' @param zipcode_a First ZIP code
69
-
#' @param zipcode_b Second ZIP code
68
+
#' @param zipcode_a First vector of ZIP codes
69
+
#' @param zipcode_b Second vector of ZIP codes
70
70
#' @param lonlat lonlat argument to pass to raster::pointDistance() to select method of distance calculation. Default is TRUE to calculate distance over a spherical projection. FALSE will calculate the distance in Euclidean (planar) space.
71
-
#' @return distance calculated from centroids of each ZIP code in miles
71
+
#' @param units Specify which units to return distance calculations in. Choices include meters or miles.
72
+
#' @return a data.frame containing a column for each ZIP code and a new column containing the distance between the two columns of ZIP code
0 commit comments