Another #rstats gotcha:

1:2 produces integers, but c(1, 2) produces doubles. They're not equal, but they're printed the same.



@peterdrake @data_science

This is because they are different functions to the same result!

The first is ':'(1, 2) and the other is c(1, 2). Note that you may use certain functions in this way, with the quotes! I may be rusty, so look into it if it interests you!

Cool difference of result though!

Sign in to participate in the conversation

The original server operated by the Mastodon gGmbH non-profit