EVOLUTION-MANAGER
Edit File: st_normalize.html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><title>R: Normalize simple features</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <link rel="stylesheet" type="text/css" href="R.css" /> </head><body> <table width="100%" summary="page for st_normalize {sf}"><tr><td>st_normalize {sf}</td><td style="text-align: right;">R Documentation</td></tr></table> <h2>Normalize simple features</h2> <h3>Description</h3> <p><code>st_normalize</code> transforms the coordinates in the input feature to fall between 0 and 1. By default the current domain is set to the bounding box of the input, but other domains can be used as well </p> <h3>Usage</h3> <pre> st_normalize(x, domain = st_bbox(x), ...) </pre> <h3>Arguments</h3> <table summary="R argblock"> <tr valign="top"><td><code>x</code></td> <td> <p>object of class sf, sfc or sfg</p> </td></tr> <tr valign="top"><td><code>domain</code></td> <td> <p>The domain <code>x</code> should be normalized from as a length 4 vector of the form <code>c(xmin, ymin, xmax, ymax)</code>. Defaults to the bounding box of <code>x</code></p> </td></tr> <tr valign="top"><td><code>...</code></td> <td> <p>ignored</p> </td></tr> </table> <h3>Examples</h3> <pre> p1 = st_point(c(7,52)) st_normalize(p1, domain = c(0, 0, 10, 100)) p2 = st_point(c(-30,20)) sfc = st_sfc(p1, p2, crs = 4326) sfc sfc_norm <- st_normalize(sfc) st_bbox(sfc_norm) </pre> <hr /><div style="text-align: center;">[Package <em>sf</em> version 0.9-5 <a href="00Index.html">Index</a>]</div> </body></html>