[R] error message

R. Michael Weylandt michael.weylandt at gmail.com
Sat Nov 5 00:58:12 CET 2011


Could you provide an example of your code? The error is coming up
because lastLine - n + 1 < 0 but obviously I can't tell you why it's
happening in your code without seeing it.

Michael

On Fri, Nov 4, 2011 at 2:06 PM, JulianaMF <jmf at ib.usp.br> wrote:
> Hello,
> I am a PhD candidate at University of Sao Paulo, finishing the thesis and
> know nothing about R language... I am trying to analyze a structure data set
> (STRs) with 82 samples and 10 loci (missing data = -9) and I keep getting
> the same Error in text[(last line - n + 1):last line] : only 0's may be
> mixed with negative subscripts message. I read this thread and tried the
> traceback () function, but all I got after I typed it was 1:
> read.structure(file = "SimStru3.str")...
> When I import the data using the read.table function, it works well, but
> then I am not being able to transform the data frame in a genind object... I
> know I may be asking very stupid things, but I really could use the help...
> Thank you so much!
> Juliana
>
> --
> View this message in context: http://r.789695.n4.nabble.com/error-message-tp3223412p3991100.html
> Sent from the R help mailing list archive at Nabble.com.
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>



More information about the R-help mailing list