| sominp {somspace} | R Documentation |
Create sominp object
Description
sominp transforms the data set from data.table to
somsp format, which can be used as argument in the somspa function.
Usage
sominp(x)
Arguments
x |
The |
Details
x should be in tidy format
with four columns: time, latitude, longitude and variable.
Value
A sominp object. It contains:
a
matrixthat can be used as input for thesomfunction of thekohonen package.a
data.tablewith the with spatial point coordinates and a corresponding id.a
data.tablewith the original dataset.
See Also
Examples
dummy <- owda[Time <= 1510]
inp_som <- sominp(dummy)
[Package somspace version 1.2.4 Index]