Character error code .inp file

announcements (new versions, changes, bugs, installation problems...) related to program MARK

Character error code .inp file

Postby claudiapenaloza » Thu Feb 21, 2013 5:31 pm

I recently created an .inp file in R, checked it in Notepad++, and tried to run a Brownie model with it in MARK, but I get the following error:

The character ' ' was found in the encounter history.
INPUT --- /*00001*/
INPUT --- 00100000000100000000000000000000000000000000000000000000000
INPUT --- 000000000000000000000000000 1;

ERROR -- Encounter history must consist of only these characters: '10'


It seems MARK is finding a space at the beginning of the encounter history but I can't see it (I've tried checking in Word for hidden characters).
This is a snippet of the encounter histories:

/*00001*/ 00100000000100000000000000000000000000000000000000000000000000000000000000000000000000 1;
/*00002*/ 00100000010000000000000000000000000000000000000000000000000000000000000000000000000000 1;
/*00003*/ 00100100000000000000000000000000000000000000000000000000000000000000000000000000000000 1;
/*00004*/ 00100000000001000000000000000000000000000000000000000000000000000000000000000000000000 1;
/*00005*/ 00110000000000000000000000000000000000000000000000000000000000000000000000000000000000 1;
/*00006*/ 00100100000000000000000000000000000000000000000000000000000000000000000000000000000000 1;
/*00007*/ 00100000000001000000000000000000000000000000000000000000000000000000000000000000000000 1;
/*00008*/ 00110000000000000000000000000000000000000000000000000000000000000000000000000000000000 1;
/*00009*/ 00110000000000000000000000000000000000000000000000000000000000000000000000000000000000 1;
/*00010*/ 00100000010000000000000000000000000000000000000000000000000000000000000000000000000000 1;
/*00011*/ 00110000000000000000000000000000000000000000000000000000000000000000000000000000000000 1;
/*00012*/ 00110000000000000000000000000000000000000000000000000000000000000000000000000000000000 1;
/*00013*/ 00110000000000000000000000000000000000000000000000000000000000000000000000000000000000 1;
/*00014*/ 00110000000000000000000000000000000000000000000000000000000000000000000000000000000000 1;
/*00015*/ 00100001000000000000000000000000000000000000000000000000000000000000000000000000000000 1;
/*00016*/ 00100000000000000000000100000000000000000000000000000000000000000000000000000000000000 1;
/*00017*/ 00110000000000000000000000000000000000000000000000000000000000000000000000000000000000 1;
/*00018*/ 00110000000000000000000000000000000000000000000000000000000000000000000000000000000000 1;
/*00019*/ 00110000000000000000000000000000000000000000000000000000000000000000000000000000000000 1;
/*00020*/ 00110000000000000000000000000000000000000000000000000000000000000000000000000000000000 1;


This is the last bit of R code I used to format the results from a contingency table with the capture and recovery dates.
Code: Select all
d <- as.data.frame(apply(d,1,paste,collapse=""))
d <- data.frame(lapply(d, as.character), stringsAsFactors=FALSE)
colnames(d) <- c("ch")
d$freq = 1
d$freq <- gsub("$",";",d$freq)
d$ind <- paste0("/*",sprintf("%05d",as.numeric(seq(1:60052))),"*/")
d <- d[,c(3,1,2)]


How do I get rid of a space I can't find?
Any help greatly appreciated.
Thank you,
claudia
Last edited by claudiapenaloza on Fri Feb 22, 2013 1:02 pm, edited 1 time in total.
claudiapenaloza
 
Posts: 63
Joined: Tue Sep 23, 2008 9:48 pm
Location: York, SC

Re: Character error code .inp file

Postby claudiapenaloza » Fri Feb 22, 2013 1:01 pm

It wasn't a space, or any other "hidden" character for that matter. I had specified the wrong number of occasions (double what was correct... a slip of the mind regarding the "LDLD" data structure). Oops! :oops:
claudiapenaloza
 
Posts: 63
Joined: Tue Sep 23, 2008 9:48 pm
Location: York, SC


Return to software problems/news

Who is online

Users browsing this forum: No registered users and 1 guest

cron