Description Usage Arguments Author(s) See Also Examples
These functions convert maps of class asc
to objects of
class im
(package spatstats) and conversely.
1 2 |
x |
an object of class |
Clement Calenge clement.calenge@oncfs.gouv.fr
asc
for additionnal information on
objects of class asc
, and im
for
additionnal information on objects of class im
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | if (require(spatstat)) {
#######################
### Conversion asc -> im
data(puechabon)
el <- getkasc(puechabon$kasc, "Elevation")
image(el, main = "An object of class \"asc\"")
elim <- asc2im(el)
image(elim, main = "An object of class \"im\"")
#######################
### Conversion im -> asc
u <- matrix(rnorm(10000), 100, 100)
haha <- im(u)
image(haha, main = "class im")
hihi <- im2asc(haha)
image(hihi, main = "class asc")
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.