[R] Error message in SPACECAP package

PIKAL Petr
Tue, 05 Nov 2013 13:06:43 -0000

Hi

Although I do not know about SPACECAP here are few hints.

Usually attachment does not go through, use dput instead.
Copy output of

dput(head(yourdata))

to the mail.

str(yourdata)

Gives you (and us if you show the output) some info about your data mode.

My opinion is that some column is not the correct type for used function.

Regards
Petr


> -----Original Message-----
> From: r-help-bounces at r-project.org [mailto:r-help-bounces at r-
> project.org] On Behalf Of Miroslav Kutal
> Sent: Monday, November 04, 2013 12:11 PM
> To: r-help at r-project.org
> Subject: [R] Error message in SPACECAP package
>
> Dear all
>
> I've tried a spatial capture-recapture in SPACECAP package but got
> stuck after uploading the input data files:
>
> "Error in animal capture details file - non-integer or missing
values"
> Error in if (locso[loc, so + 3] == 0) { :
> missing value where TRUE/FALSE needed
>
> I prepared the input capture file according to the manual and the file
> should consist from three columns: LOC_ID, ANIMAL_ID, SO (sampling
> occasion) so actually no TRUE/FALSE type of data..
>
> I am attaching also the input capture file. Because I am not familiar
> with all R functions I would appreciate any suggestion for solving this
> problem.
>
> Thank you,
>
> Miroslav Kutal