EVOLUTION-MANAGER
Edit File: transform.sf.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: transform method for sf objects</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 transform.sf {sf}"><tr><td>transform.sf {sf}</td><td style="text-align: right;">R Documentation</td></tr></table> <h2>transform method for sf objects</h2> <h3>Description</h3> <p>Can be used to create or modify attribute variables; for transforming geometries see <a href="st_transform.html">st_transform</a>, and all other functions starting with <code>st_</code>. </p> <h3>Usage</h3> <pre> ## S3 method for class 'sf' transform(`_data`, ...) </pre> <h3>Arguments</h3> <table summary="R argblock"> <tr valign="top"><td><code>_data</code></td> <td> <p>object of class <code>sf</code></p> </td></tr> <tr valign="top"><td><code>...</code></td> <td> <p>Further arguments of the form new_variable=expression</p> </td></tr> </table> <h3>Examples</h3> <pre> a = data.frame(x1 = 1:3, x2 = 5:7) st_geometry(a) = st_sfc(st_point(c(0,0)), st_point(c(1,1)), st_point(c(2,2))) transform(a, x1_sq = x1^2) transform(a, x1_x2 = x1*x2) </pre> <hr /><div style="text-align: center;">[Package <em>sf</em> version 0.9-5 <a href="00Index.html">Index</a>]</div> </body></html>