The odd R sequence

  • Comments posted to this topic are about the item The odd R sequence

  • what about seq(10,20,by=2) --> from 10 to 20 and the step is equal to 2

    rkaram

  • Nice question, thanks Steve

    ____________________________________________
    Space, the final frontier? not any more...
    All limits henceforth are self-imposed.
    “libera tute vulgaris ex”

  • I can't see anything on the reference given that indicates that the correct answer is the correct answer.  The examples given on there all suggest that none of the answers provided are right.


    On two occasions I have been asked, "Pray, Mr. Babbage, if you put into the machine wrong figures, will the right answers come out?" ... I am not able rightly to apprehend the kind of confusion of ideas that could provoke such a question.
    —Charles Babbage, Passages from the Life of a Philosopher

    How to post a question to get the most help http://www.sqlservercentral.com/articles/Best+Practices/61537

  • Answers 2 and 4 are both correct. Answer 4 is more accurate in terms of what the documentation says (help("seq")) but here is "incorrect". Oh well.


    I'm on LinkedIn

  • PB_BI - Wednesday, June 14, 2017 1:33 AM

    Answers 2 and 4 are both correct. Answer 4 is more accurate in terms of what the documentation says (help("seq")) but here is "incorrect". Oh well.

    I think it has to be 'by =' not just 'by'.

  • sipas - Wednesday, June 14, 2017 2:08 AM

    PB_BI - Wednesday, June 14, 2017 1:33 AM

    Answers 2 and 4 are both correct. Answer 4 is more accurate in terms of what the documentation says (help("seq")) but here is "incorrect". Oh well.

    I think it has to be 'by =' not just 'by'.

    I think the possible answers have been edited because when I looked it was "by = 2"


    I'm on LinkedIn

  • I just guessed not even knowing what language this was about.  The QOTD in my email has no subject.

  • I was assuming the "=" missing was a typo (which is so common here).

  • While I haven't actually worked with R, from the questions I've seen here, it looks like a remarkably intuitive language.  Those of you who have experience with R, is that really the case?

  • rkaram - Wednesday, June 14, 2017 12:26 AM

    what about seq(10,20,by=2) --> from 10 to 20 and the step is equal to 2

    That works, but no = in the answer choices

  • Neil Burton - Wednesday, June 14, 2017 1:15 AM

    I can't see anything on the reference given that indicates that the correct answer is the correct answer.  The examples given on there all suggest that none of the answers provided are right.

    How so?

  • PB_BI - Wednesday, June 14, 2017 4:42 AM

    I think the possible answers have been edited because when I looked it was "by = 2"

    No editing has taken place today

  • Fair enough, my mistake 🙂


    I'm on LinkedIn

  • R is apparently getting traction. Thanks, Steve!

Viewing 15 posts - 1 through 15 (of 16 total)

You must be logged in to reply to this topic. Login to reply