R

Asked • 10/16/19

What's the difference between `1L` and `1`?

I often seen the symbol `1L` (or `2L`, `3L`, etc) appear in R code. Whats the difference between `1L` and `1`? `1==1L` evaluates to `TRUE`. Why is `1L` used in R code?

1 Expert Answer

By:

Robert S. answered • 11/22/19

Tutor
5.0 (186)

R Developer and Analyst

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.