Skip to content

Commit 1820e2d

Browse files
authored
Merge pull request #438 from sstevens2/typo-fix
Typo fix
2 parents f175377 + 2e3f263 commit 1820e2d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

episodes/01-raster-structure.Rmd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -318,15 +318,15 @@ raster: surface elevation in meters for one time period.
318318

319319
A raster dataset can contain one or more bands. We can use the `rast()`
320320
function to import one single band from a single or multi-band raster. We can
321-
view the number of bands in a raster using the `nly()` function.
321+
view the number of bands in a raster using the `nlyr()` function.
322322

323323
```{r view-raster-bands}
324324
nlyr(DSM_HARV)
325325
```
326326

327327
However, raster data can also be multi-band, meaning that one raster file
328328
contains data for more than one variable or time period for each cell. By
329-
default the `raster()` function only imports the first band in a raster
329+
default the `rast()` function only imports the first band in a raster
330330
regardless of whether it has one or more bands. Jump to a later episode in
331331
this series for information on working with multi-band rasters:
332332
[Work with Multi-band Rasters in R](05-raster-multi-band-in-r/).

0 commit comments

Comments
 (0)