File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -318,15 +318,15 @@ raster: surface elevation in meters for one time period.
318
318
319
319
A raster dataset can contain one or more bands. We can use the ` rast() `
320
320
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.
322
322
323
323
``` {r view-raster-bands}
324
324
nlyr(DSM_HARV)
325
325
```
326
326
327
327
However, raster data can also be multi-band, meaning that one raster file
328
328
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
330
330
regardless of whether it has one or more bands. Jump to a later episode in
331
331
this series for information on working with multi-band rasters:
332
332
[ Work with Multi-band Rasters in R] ( 05-raster-multi-band-in-r/ ) .
You can’t perform that action at this time.
0 commit comments