# Does this work in R?

• Steve Jones - SSC Editor

SSC Guru

Points: 717443

Comments posted to this topic are about the item Does this work in R?

• Evgeny Garaev

SSCertifiable

Points: 6418

Why 42?

• twin.devil

SSC-Insane

Points: 22208

nice and easy. Thanks Steve.
Just curious, why 42 π?

• Neil Burton

SSC-Insane

Points: 22079

I'm curious about 42 because the only number I can see is 24.  I got it wrong I was wondering what the catch was.

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

• RoNoS

SSC Eights!

Points: 956

`24 -> x`

What does this do?

 This assigns the value of 42 to x

How does it translates it? Does it mirror or reverse?

• nigel.

SSChampion

Points: 11622

RoNoS - Wednesday, April 26, 2017 1:40 AM

`24 -> x`

What does this do?

 This assigns the value of 42 to x

How does it translates it? Does it mirror or reverse?

Or is it simply a typo?

• paul s-306273

SSChampion

Points: 10615

Confused me too.

• edwardwill

SSCertifiable

Points: 5038

twin.devil - Wednesday, April 26, 2017 12:36 AM

nice and easy. Thanks Steve.
Just curious, why 42 π?

Because it's the answer to life, the universe and everything, obviously.

• andrew_dale

Ten Centuries

Points: 1201

Typo! 24 or 42?

• twin.devil

SSC-Insane

Points: 22208

edwardwill - Wednesday, April 26, 2017 2:53 AM

twin.devil - Wednesday, April 26, 2017 12:36 AM

nice and easy. Thanks Steve.
Just curious, why 42 π?

Because it's the answer to life, the universe and everything, obviously.

Thanks for Shed a light on me π

• Mighty

SSCrazy Eights

Points: 8559

It is just a typo. The explanation show the correct syntax 42 -> x.

• Ed Wagner

SSC Guru

Points: 286969

edwardwill - Wednesday, April 26, 2017 2:53 AM

twin.devil - Wednesday, April 26, 2017 12:36 AM

nice and easy. Thanks Steve.
Just curious, why 42 π?

Because it's the answer to life, the universe and everything, obviously.

In that case, wouldn't there be multiple correct answers?

• Bob Razumich

SSCrazy

Points: 2019

Possible reasons for 24...
1. Steve is a Jeff Gordon fan.
2. Steve is a Chase Elliot fan.
3. His eyes were crossed when he wrote the question after first verifying the answer.
4. Steve is a Richard Petty fan, but forgot that The King drove mostly with number 43 on his car and in his confusion transposed the numbers on the question after getting it wrong in the answer.
5. Steve wanted to blow up the comment thread on today's question.

• George Vobr

SSCrazy Eights

Points: 9089

Today it's pretty funny. Answer # 4 probably belongs to the humor category, or it is indicative of the very good mood and fantasy of the author at the time of its composition.π
Anyway thanks for this question, Steve.

• Rod at work

SSC-Dedicated

Points: 33190

I don't get how finding this statement in R

24 -> x

could possibly result in assigning 42 to x. Its 24, not 42. Is there some sort of math formula involved in the assignment operator?

Kindest Regards, Rod Connect with me on LinkedIn.

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