daviddalpiaz / appliedstats

:bar_chart: Methods of Applied Statistics Course Textbook Repository
https://book.stat420.org/
154 stars 168 forks source link

Sequence incrementing by a constant value #123

Closed SahaniGoonetilleke closed 2 years ago

SahaniGoonetilleke commented 2 years ago

Constant can be 0.1 instead of 1 too.

daviddalpiaz commented 2 years ago

I'm wondering if there is just an overall better way to write this sentence. Now that you've suggested an alternative, I definitely don't like what I originally wrote, but I think a bigger change might be needed. Want to take the first pass at a replacement?

SahaniGoonetilleke commented 2 years ago

Sure, maybe this... If we want to create a sequence that isn’t limited to integers with a spacing of 1, but a sequence that can increase/decrease by a constant value at a time ( 0.1 here ), we can use the seq() function.

daviddalpiaz commented 2 years ago

How about this?

To create a sequence that is not limited to consecutive integers, use the seq() function to define a sequence by its start, end, and increment.

daviddalpiaz commented 2 years ago

I think I like it. Going to merge yours then add my own commit.

SahaniGoonetilleke commented 2 years ago

Cool, it looks good!