Skip to content
Prev 10142 / 29559 Next

warning at creating SpatialPolygonsDataFrame and error at saving through rgdal

On Mon, 29 Nov 2010, Agustin Lobo wrote:

            
The message is coming from data.frame() in base package. Do

debug(meta2sppol)
debug(data.frame)
HypNAr = meta2sppol()

and see what happens inside the data.frame() call that creates datos, 
which is where the warning is issued (it may be inside a coercion method 
call, such as as.data.frame()); open:

https://svn.r-project.org/R/trunk/src/library/base/R/dataframe.R

and search for "some row.names duplicated".

That is, the problem is in your own function. Please also note that 
providing a reproducible example is crucial to getting precise assistance, 
and usually the exercise of writing such an example reveals the cause, 
thus solving the problem more quickly.

Roger