Skip to content

Commit

Permalink
Built site for gh-pages
Browse files Browse the repository at this point in the history
  • Loading branch information
Quarto GHA Workflow Runner committed Jan 9, 2025
1 parent 124236b commit 3accb4f
Show file tree
Hide file tree
Showing 10 changed files with 62 additions and 62 deletions.
2 changes: 1 addition & 1 deletion .nojekyll
Original file line number Diff line number Diff line change
@@ -1 +1 @@
ea5d44d8
fcf92271
4 changes: 2 additions & 2 deletions 01-hello.html

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions 07-Introsf.html
Original file line number Diff line number Diff line change
Expand Up @@ -554,10 +554,10 @@
<p>Simple feature objects can be written with <code>st_write</code>, as in</p>
<div class="cell">
<div class="sourceCode" id="cb4"><pre class="downlit sourceCode r code-with-copy"><code class="sourceCode R"><span><span class="op">(</span><span class="va">file</span> <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/base/tempfile.html">tempfile</a></span><span class="op">(</span>fileext <span class="op">=</span> <span class="st">".gpkg"</span><span class="op">)</span><span class="op">)</span></span>
<span><span class="co"># [1] "/tmp/RtmpPxXdik/file441025be6072.gpkg"</span></span>
<span><span class="co"># [1] "/tmp/RtmpxPd5Ib/file3dd9dd10336.gpkg"</span></span>
<span><span class="fu"><a href="https://r-spatial.github.io/sf/reference/st_write.html">st_write</a></span><span class="op">(</span><span class="va">nc</span>, <span class="va">file</span>, layer <span class="op">=</span> <span class="st">"layer_nc"</span><span class="op">)</span></span>
<span><span class="co"># Writing layer `layer_nc' to data source </span></span>
<span><span class="co"># `/tmp/RtmpPxXdik/file441025be6072.gpkg' using driver `GPKG'</span></span>
<span><span class="co"># `/tmp/RtmpxPd5Ib/file3dd9dd10336.gpkg' using driver `GPKG'</span></span>
<span><span class="co"># Writing 100 features with 14 fields and geometry type Multi Polygon.</span></span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
</div>
<p>where the file format (GPKG) is derived from the file name extension. Using argument <code>append</code>, <code>st_write</code> can either append records to an existing layer or replace it; if unset, it will err if a layer already exists. The tidyverse-style <code>write_sf</code> will replace silently if <code>append</code> has not been set. Layers can also be deleted using <code>st_delete</code>, which is convenient in particular when they are associated with tables in a database.</p>
Expand Down Expand Up @@ -698,7 +698,7 @@
<p>When using spatial joins, each record may have several matched records, yielding a large result table. A way to reduce this complexity may be to select from the matching records the one with the largest overlap with the target geometry. An example of this is shown (visually) in <a href="#fig-largest" class="quarto-xref">Figure&nbsp;<span>7.4</span></a>; this is done using <code>st_join</code> with argument <code>largest = TRUE</code>.</p>
<div class="cell">
<details class="code-fold"><summary>Code</summary><div class="sourceCode" id="cb15"><pre class="downlit sourceCode r code-with-copy"><code class="sourceCode R"><span><span class="co"># example of largest = TRUE:</span></span>
<span><span class="fu"><a href="https://rdrr.io/r/base/system.file.html">system.file</a></span><span class="op">(</span><span class="st">"shape/nc.shp"</span>, package<span class="op">=</span><span class="st">"sf"</span><span class="op">)</span> <span class="op">|&gt;</span> </span>
<span><span class="fu"><a href="https://rdrr.io/r/base/system.file.html">system.file</a></span><span class="op">(</span><span class="st">"gpkg/nc.gpkg"</span>, package<span class="op">=</span><span class="st">"sf"</span><span class="op">)</span> <span class="op">|&gt;</span> </span>
<span> <span class="fu"><a href="https://r-spatial.github.io/sf/reference/st_read.html">read_sf</a></span><span class="op">(</span><span class="op">)</span> <span class="op">|&gt;</span></span>
<span> <span class="fu"><a href="https://r-spatial.github.io/sf/reference/st_transform.html">st_transform</a></span><span class="op">(</span><span class="st">'EPSG:2264'</span><span class="op">)</span> <span class="op">-&gt;</span> <span class="va">nc</span></span>
<span><span class="va">gr</span> <span class="op">&lt;-</span> <span class="fu"><a href="https://r-spatial.github.io/sf/reference/sf.html">st_sf</a></span><span class="op">(</span></span>
Expand Down Expand Up @@ -2865,7 +2865,7 @@
<span id="cb98-387"><a href="#cb98-387" aria-hidden="true" tabindex="-1"></a><span class="in">#| fig-cap: "Example of `st_join` with `largest = TRUE`: the label of the polygon in the top figure with the largest intersection with polygons in the bottom figure is assigned to the polygons of the bottom figure."</span></span>
<span id="cb98-388"><a href="#cb98-388" aria-hidden="true" tabindex="-1"></a><span class="in">#| code-fold: true</span></span>
<span id="cb98-389"><a href="#cb98-389" aria-hidden="true" tabindex="-1"></a><span class="in"># example of largest = TRUE:</span></span>
<span id="cb98-390"><a href="#cb98-390" aria-hidden="true" tabindex="-1"></a><span class="in">system.file("shape/nc.shp", package="sf") |&gt; </span></span>
<span id="cb98-390"><a href="#cb98-390" aria-hidden="true" tabindex="-1"></a><span class="in">system.file("gpkg/nc.gpkg", package="sf") |&gt; </span></span>
<span id="cb98-391"><a href="#cb98-391" aria-hidden="true" tabindex="-1"></a><span class="in"> read_sf() |&gt;</span></span>
<span id="cb98-392"><a href="#cb98-392" aria-hidden="true" tabindex="-1"></a><span class="in"> st_transform('EPSG:2264') -&gt; nc</span></span>
<span id="cb98-393"><a href="#cb98-393" aria-hidden="true" tabindex="-1"></a><span class="in">gr &lt;- st_sf(</span></span>
Expand Down
8 changes: 4 additions & 4 deletions 08-Plotting.html
Original file line number Diff line number Diff line change
Expand Up @@ -535,13 +535,13 @@
<span><span class="op">(</span><span class="va">cI</span> <span class="op">&lt;-</span> <span class="fu"><a href="https://r-spatial.github.io/classInt/reference/classIntervals.html">classIntervals</a></span><span class="op">(</span><span class="va">r</span><span class="op">)</span><span class="op">)</span></span>
<span><span class="co"># style: quantile</span></span>
<span><span class="co"># one of 1.49e+10 possible partitions of this variable into 8 classes</span></span>
<span><span class="co"># [-2.24,-1.3) [-1.3,-0.737) [-0.737,-0.385) [-0.385,-0.0684) </span></span>
<span><span class="co"># [-2.17,-1.03) [-1.03,-0.554) [-0.554,-0.273) [-0.273,-0.0672) </span></span>
<span><span class="co"># 13 12 13 12 </span></span>
<span><span class="co"># [-0.0684,0.258) [0.258,0.664) [0.664,1.17) [1.17,2.83] </span></span>
<span><span class="co"># [-0.0672,0.192) [0.192,0.717) [0.717,1.14) [1.14,1.97] </span></span>
<span><span class="co"># 12 13 12 13</span></span>
<span><span class="va">cI</span><span class="op">$</span><span class="va">brks</span></span>
<span><span class="co"># [1] -2.2356 -1.3039 -0.7372 -0.3849 -0.0684 0.2576 0.6637 1.1703</span></span>
<span><span class="co"># [9] 2.8333</span></span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
<span><span class="co"># [1] -2.1666 -1.0289 -0.5541 -0.2726 -0.0672 0.1921 0.7168 1.1403</span></span>
<span><span class="co"># [9] 1.9708</span></span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
</div>
<p>it takes argument <code>n</code> for the number of intervals, and a <code>style</code> that can be one of “fixed”, “sd”, “equal”, “pretty”, “quantile”, “kmeans”, “hclust”, “bclust”, “fisher” or “jenks”. Style “pretty” may not obey <code>n</code>; if <code>n</code> is missing, <code>nclass.Sturges</code> is used; two other methods are available for choosing <code>n</code> automatically. If the number of observations is greater than 3000, a 10% sample is used to create the breaks for “fisher” and “jenks”.</p>
</section><section id="sec-graticule" class="level3"><h3 class="anchored" data-anchor-id="sec-graticule">Graticule and other navigation aids</h3>
Expand Down
Binary file modified 08-Plotting_files/figure-html/fig-starshook-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions 16-SpatialRegression.html
Original file line number Diff line number Diff line change
Expand Up @@ -437,7 +437,7 @@
<div class="cell">
<div class="sourceCode" id="cb1"><pre class="downlit sourceCode r code-with-copy"><code class="sourceCode R"><span><span class="kw"><a href="https://rdrr.io/r/base/library.html">library</a></span><span class="op">(</span><span class="va"><a href="https://r-spatial.github.io/sf/">sf</a></span><span class="op">)</span></span>
<span><span class="kw"><a href="https://rdrr.io/r/base/library.html">library</a></span><span class="op">(</span><span class="va"><a href="https://jakubnowosad.com/spData/">spData</a></span><span class="op">)</span></span>
<span><span class="va">boston_506</span> <span class="op">&lt;-</span> <span class="fu"><a href="https://r-spatial.github.io/sf/reference/st_read.html">st_read</a></span><span class="op">(</span><span class="fu"><a href="https://rdrr.io/r/base/system.file.html">system.file</a></span><span class="op">(</span><span class="st">"shapes/boston_tracts.shp"</span>,</span>
<span><span class="va">boston_506</span> <span class="op">&lt;-</span> <span class="fu"><a href="https://r-spatial.github.io/sf/reference/st_read.html">st_read</a></span><span class="op">(</span><span class="fu"><a href="https://rdrr.io/r/base/system.file.html">system.file</a></span><span class="op">(</span><span class="st">"shapes/boston_tracts.gpkg"</span>,</span>
<span> package <span class="op">=</span> <span class="st">"spData"</span><span class="op">)</span><span class="op">[</span><span class="fl">1</span><span class="op">]</span>, quiet <span class="op">=</span> <span class="cn">TRUE</span><span class="op">)</span></span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
</div>
<div class="cell">
Expand Down Expand Up @@ -1407,7 +1407,7 @@
<span id="cb38-72"><a href="#cb38-72" aria-hidden="true" tabindex="-1"></a><span class="in">```{r, message=FALSE}</span></span>
<span id="cb38-73"><a href="#cb38-73" aria-hidden="true" tabindex="-1"></a><span class="in">library(sf)</span></span>
<span id="cb38-74"><a href="#cb38-74" aria-hidden="true" tabindex="-1"></a><span class="in">library(spData)</span></span>
<span id="cb38-75"><a href="#cb38-75" aria-hidden="true" tabindex="-1"></a><span class="in">boston_506 &lt;- st_read(system.file("shapes/boston_tracts.shp",</span></span>
<span id="cb38-75"><a href="#cb38-75" aria-hidden="true" tabindex="-1"></a><span class="in">boston_506 &lt;- st_read(system.file("shapes/boston_tracts.gpkg",</span></span>
<span id="cb38-76"><a href="#cb38-76" aria-hidden="true" tabindex="-1"></a><span class="in"> package = "spData")[1], quiet = TRUE)</span></span>
<span id="cb38-77"><a href="#cb38-77" aria-hidden="true" tabindex="-1"></a><span class="in">```</span></span>
<span id="cb38-80"><a href="#cb38-80" aria-hidden="true" tabindex="-1"></a><span class="in">```{r}</span></span>
Expand Down
34 changes: 17 additions & 17 deletions 17-Econometrics.html
Original file line number Diff line number Diff line change
Expand Up @@ -748,23 +748,23 @@
<span> INLA_slm <span class="op">=</span> <span class="va">mv_mean</span>, censored <span class="op">=</span> </span>
<span> <span class="va">boston_506</span><span class="op">$</span><span class="va">censored</span><span class="op">[</span><span class="fu"><a href="https://rdrr.io/r/base/integer.html">as.integer</a></span><span class="op">(</span><span class="fu"><a href="https://rdrr.io/r/base/attr.html">attr</a></span><span class="op">(</span><span class="va">t0</span>, <span class="st">"region.id"</span><span class="op">)</span><span class="op">)</span><span class="op">]</span><span class="op">)</span></span>
<span><span class="co"># fit_TS fit_KP2 fit_KP5 INLA_slm censored</span></span>
<span><span class="co"># 13 23912 29477 28147 30387 right</span></span>
<span><span class="co"># 14 28126 27001 28516 31197 right</span></span>
<span><span class="co"># 15 30553 36184 32476 38519 right</span></span>
<span><span class="co"># 17 18518 19621 18878 20170 right</span></span>
<span><span class="co"># 43 9564 6817 7561 7340 left</span></span>
<span><span class="co"># 50 8371 7196 7383 6992 left</span></span>
<span><span class="co"># 312 51477 53301 54173 56475 right</span></span>
<span><span class="co"># 313 45921 45823 47095 46750 right</span></span>
<span><span class="co"># 314 44196 44586 45361 42821 right</span></span>
<span><span class="co"># 317 43427 45707 45442 47308 right</span></span>
<span><span class="co"># 337 39879 42072 41127 41100 right</span></span>
<span><span class="co"># 346 44708 46694 46108 45139 right</span></span>
<span><span class="co"># 355 48188 49068 48911 48814 right</span></span>
<span><span class="co"># 376 42881 45883 44966 46493 right</span></span>
<span><span class="co"># 408 44294 44615 45670 46752 right</span></span>
<span><span class="co"># 418 38211 43375 41914 42285 right</span></span>
<span><span class="co"># 434 41647 41690 42398 41164 right</span></span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
<span><span class="co"># 13 23912 29477 28147 30968 right</span></span>
<span><span class="co"># 14 28126 27001 28516 31254 right</span></span>
<span><span class="co"># 15 30553 36184 32476 40744 right</span></span>
<span><span class="co"># 17 18518 19621 18878 20961 right</span></span>
<span><span class="co"># 43 9564 6817 7561 6914 left</span></span>
<span><span class="co"># 50 8371 7196 7383 6900 left</span></span>
<span><span class="co"># 312 51477 53301 54173 56176 right</span></span>
<span><span class="co"># 313 45921 45823 47095 46471 right</span></span>
<span><span class="co"># 314 44196 44586 45361 42800 right</span></span>
<span><span class="co"># 317 43427 45707 45442 47830 right</span></span>
<span><span class="co"># 337 39879 42072 41127 41419 right</span></span>
<span><span class="co"># 346 44708 46694 46108 45730 right</span></span>
<span><span class="co"># 355 48188 49068 48911 49076 right</span></span>
<span><span class="co"># 376 42881 45883 44966 47516 right</span></span>
<span><span class="co"># 408 44294 44615 45670 46367 right</span></span>
<span><span class="co"># 418 38211 43375 41914 43672 right</span></span>
<span><span class="co"># 434 41647 41690 42398 41536 right</span></span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
</div>
<p>The spatial regression toolbox remains incomplete, and it will take time to fill in blanks. It remains unfortunate that the several traditions in spatial regression seldom seem to draw on each others’ understandings and advances.</p>
</section><section id="exercises" class="level2" data-number="17.5"><h2 data-number="17.5" class="anchored" data-anchor-id="exercises">
Expand Down
4 changes: 2 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
<meta name="author" content="Edzer Pebesma">
<meta name="author" content="Roger Bivand">
<meta name="dcterms.date" content="2025-01-08">
<meta name="dcterms.date" content="2025-01-09">
<title>Spatial Data Science</title>
<style>
code{white-space: pre-wrap;}
Expand Down Expand Up @@ -391,7 +391,7 @@
<div>
<div class="quarto-title-meta-heading">Published</div>
<div class="quarto-title-meta-contents">
<p class="date">January 8, 2025</p>
<p class="date">January 9, 2025</p>
</div>
</div>

Expand Down
Loading

0 comments on commit 3accb4f

Please sign in to comment.