Skip to content

Commit

Permalink
Merge pull request #438 from sstevens2/typo-fix
Browse files Browse the repository at this point in the history
Typo fix
  • Loading branch information
drakeasberry authored Jun 15, 2024
2 parents f175377 + 2e3f263 commit 1820e2d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions episodes/01-raster-structure.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -318,15 +318,15 @@ raster: surface elevation in meters for one time period.

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

```{r view-raster-bands}
nlyr(DSM_HARV)
```

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

0 comments on commit 1820e2d

Please sign in to comment.