Dear David:

it works


many thanks
steve


On Wed, Nov 25, 2015 at 7:16 AM, David Pell <[email protected]>
wrote:

> How about :
>
> t <- t[ t != 0 ]
>
> David
>
>
> -----Original Message-----
> From: R-sig-teaching [mailto:[email protected]] On
> Behalf Of Steven Stoline
> Sent: 25 November 2015 12:13
> To: R-sig-teaching <[email protected]>
> Subject: [R-sig-teaching] Excluding the zero from a sequence when created
>
> Dear All:
>
> How to exclude the zero from this sequence when created.
>
> t<-seq(-1,1,0.01)
>
>
> Because I want to do the following:
>
>
> y<-cos(pi/t)
>
> plot(t,y, type="l", col="blue", lwd=1.5)
>
> abline(h=0, col="red", lwd=1.5)
>
>
> with many thanks
> steve
>
>
> --------------------
> Steven M. Stoline
> 1123 Forest Avenue
> Portland, ME 04112
> [email protected]
>
> [[alternative HTML version deleted]]
>
> _______________________________________________
> [email protected] mailing list
> https://stat.ethz.ch/mailman/listinfo/r-sig-teaching
>
> ________________________________
>
>
> This email may have a protective marking please see
> http://www.mrc.ac.uk/about/information-standards/document-marking-policy/
> <http://www.mrc.ac.uk/about/information-standards/document-marking-policy/
> >
>
> This email and any attachments are intended for the na...{{dropped:30}}

_______________________________________________
[email protected] mailing list
https://stat.ethz.ch/mailman/listinfo/r-sig-teaching

Reply via email to