'How Do I Create a Dataframe from 1 to 100,000?

I am sure this is not hard, but I can't figure it out!

I want to create a dataframe that starts at 1 for the first row and ends at 100,000 in increments of 1, 2, 4, 5, or whatever. I could do this in my sleep in Excel, but is there a slick way to do this without importing a .csv or .txt file?

I have needed to do this in variations many times and just settled on importing a .csv, but I am tired of that.

Example in Excel



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source