Excluding the zero from a sequence when created
On Nov 25, 2015 5:48 PM, "Steven Stoline" <sstoline at gmail.com> wrote:
Dear Hadley: In fact I am teaching R this semester for undergraduate students. In addition, I am using R in most of the classes I teach.
Sure, but your question was about basic extraction, not about teaching. As Hadley suggested R-help is more appropriate for questions like this. Best, Ista
with many thanks steve On Wed, Nov 25, 2015 at 1:53 PM, Hadley Wickham <h.wickham at gmail.com>
wrote:
For future reference, this mailing list is about teaching R - you really should use R-help for such questions. Hadley On Thu, Nov 26, 2015 at 1:13 AM, Steven Stoline <sstoline at gmail.com> wrote:
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
sstoline at gmail.com
[[alternative HTML version deleted]]
_______________________________________________ R-sig-teaching at r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-sig-teaching
--
Steven M. Stoline
1123 Forest Avenue
Portland, ME 04112
sstoline at gmail.com
[[alternative HTML version deleted]]
_______________________________________________ R-sig-teaching at r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-sig-teaching