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