Error in `.rowNamesDF<-`(x, value = value)

questions concerning anlysis/theory using program DENSITY and R package secr. Focus on spatially-explicit analysis.

Error in `.rowNamesDF<-`(x, value = value)

Postby OlivierD » Tue Jun 26, 2018 12:11 pm

Hi all
With a colleague, we recently encountered the following error when trying to load the trap (transect) file into secr :
Error in `.rowNamesDF<-`(x, value = value) :
duplicate 'row.names' are not allowed
It took us a while to figure out the TransectIDs were numeric, and that transect "10" was considered a duplicate of transect "1"...
The bottom line is that secr expects alphanumeric trap IDs.
Apologies if this is stating the obvious but I couldn't find anything explicit about this in the documentation (I may have missed it), so I thought I'd post here... I might avoid some headache to someone...
Cheers
Olivier
OlivierD
 
Posts: 8
Joined: Thu Feb 28, 2008 8:37 pm
Location: somewhere in between

Re: Error in `.rowNamesDF<-`(x, value = value)

Postby murray.efford » Tue Jun 26, 2018 12:25 pm

I don't think 'secr' expects non-numeric transect ID, or that 1 = 10, so something else is wrong. Maybe you could post a minimal example of the file, with the code you used to read it.
murray.efford
 
Posts: 519
Joined: Mon Sep 29, 2008 7:11 pm
Location: Dunedin, New Zealand


Return to analysis help

Who is online

Users browsing this forum: No registered users and 1 guest

cron