Skip to content

Commit

Permalink
fix final missing anchor
Browse files Browse the repository at this point in the history
  • Loading branch information
dramanica committed Jun 23, 2024
1 parent dba1d6e commit 13cd293
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions R/recipe_sf.R
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@
#' case when `x` is an [sf::sf] object, as commonly
#' used in Species Distribution Model, and generates a `spatial_recipe`.
#'
#' [recipes] are not natively compatible with [sf::sf] objects. The problem is that
#' [recipes::recipe()] are not natively compatible with [sf::sf] objects. The problem is that
#' the `geometry` column of [sf::sf] objects is a list, which is incompatible with
#' the translation of formulae in [recipe]. This method strips the `geometry`
#' the translation of formulae in [recipes::recipe()]. This method strips the `geometry`
#' column from the [data.frame] and replaces it with a simple `X` and `Y` columns
#' before any further operations, thus allowing
#' the usual processing by [recipe()] to succeed (`X` and `Y` are give the role
#' the usual processing by [recipes::recipe()] to succeed (`X` and `Y` are give the role
#' of coords in a spatial recipe). When prepping and baking a `spatial_recipe`,
#' if a data.frame or tibble without coordinates is used as `training` or
#' `new_data`, dummy `X` and `Y` columns
Expand Down
6 changes: 3 additions & 3 deletions man/recipe.sf.Rd

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

0 comments on commit 13cd293

Please sign in to comment.