Ok,

I`m going to check the n.keep values. Thanks!

Sander

________________________________
From: Michael Weylandt [via R] [mailto:ml-node+s789695n4633114h9@n4.nabble.com]
Sent: dinsdag 12 juni 2012 17:08
To: Zeeuw, S.A.J. van der (PATH)
Subject: Re: Error in sort(abs(diff(genomdat)))[1:n.keep] : only 0's may be mixed with negative subscripts

Your problem is that n.keep is less than 0. Why that is I cannot tell
without appropriate context.

E.g.,

x <- 1:10

x[2:5]

x[0:1]

x[(-3):1]

Michael

On Tue, Jun 12, 2012 at 6:01 AM, sanshine <[hidden email]</user/SendEmail.jtp?type=node&node=4633114&i=0>> wrote:

> Hello everyone,
>
> I`m trying to normalize and analize an illumina SNP array.
> But when i`m trying to segmentate i`m getting an error:
> Error in sort(abs(diff(genomdat)))[1:n.keep] :
>  only 0's may be mixed with negative subscripts.
> I`ve tried everything to fix this but the error still occours.
>
> Can anybody give me a tip?
>
> Thanks in advance!
>
>
> --
> View this message in context: http://r.789695.n4.nabble.com/Error-in-sort-abs-diff-genomdat-1-n-keep-only-0-s-may-be-mixed-with-negative-subscripts-tp4633091.html
> Sent from the R help mailing list archive at Nabble.com.
>
> ______________________________________________
> [hidden email]</user/SendEmail.jtp?type=node&node=4633114&i=1> 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.

______________________________________________
[hidden email]</user/SendEmail.jtp?type=node&node=4633114&i=2> 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.

________________________________
If you reply to this email, your message will be added to the discussion below:
http://r.789695.n4.nabble.com/Error-in-sort-abs-diff-genomdat-1-n-keep-only-0-s-may-be-mixed-with-negative-subscripts-tp4633091p4633114.html
To unsubscribe from Error in sort(abs(diff(genomdat)))[1:n.keep] : only 0's may be mixed with negative subscripts, click here<http://r.789695.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=4633091&code=Uy5BLkoudmFuX2Rlcl9aZWV1d0BsdW1jLm5sfDQ2MzMwOTF8LTE4ODIzNjgxMTk=>.
NAML<http://r.789695.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>


--
View this message in context: http://r.789695.n4.nabble.com/Error-in-sort-abs-diff-genomdat-1-n-keep-only-0-s-may-be-mixed-with-negative-subscripts-tp4633091p4633217.html
Sent from the R help mailing list archive at Nabble.com.
	[[alternative HTML version deleted]]

