I am trying to create a SOM Hexagonal Map in R using the Kohonen Package.
I've encountered a couple of problems while running this package. Sometimes I am receiving a message that says:
"Error in sample.int(length(x), size, replace, prob) : cannot take a sample larger than the population when 'replace = FALSE'"
I receive this message although my sample is 1,000 observations and I use a 100x50 graph.
I am reproducing this code but haven't been very successful.