Skip to content

Commit

Permalink
docs for #77
Browse files Browse the repository at this point in the history
  • Loading branch information
dcooley committed Apr 16, 2020
1 parent 890a464 commit 430fe13
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 0 deletions.
18 changes: 18 additions & 0 deletions R/sfc.R
Original file line number Diff line number Diff line change
Expand Up @@ -420,6 +420,24 @@ calculate_bbox.default <- function( obj, x = NULL, y = NULL ) {
#'
#' @params obj sf, sfc or sfg object
#'
#' @examples
#'
#' df <- data.frame(
#' id1 = c(1,1,1,1,1,1,1,1,2,2,2,2)
#' , id2 = c(1,1,1,1,2,2,2,2,1,1,1,1)
#' , x = c(0,0,1,1,1,1,2,2,3,4,4,3)
#' , y = c(0,1,1,0,1,2,2,1,3,3,4,4)
#' )
#'
#' sf_line <- sfheaders::sf_linestring(
#' obj = df
#' , x = "x"
#' , y = "y"
#' , linestring_id = "id1"
#' )
#'
#' sf_boxes( sf_line )
#'
#' @export
sf_boxes <- function( obj ) calculate_boxes( obj )

Expand Down
19 changes: 19 additions & 0 deletions man/sf_boxes.Rd

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

0 comments on commit 430fe13

Please sign in to comment.