Generating Even / Odd numbers using R

In the below tutorial I have explained how you can generate Even or Odd numbers using R. You can generate using any one of the following methods.

Method 1:
Generating even numbers that lie between 1 to 100
          even <- seq(1,100,2)

Method 2:
Generating 100 odd numbers starting from 1
         odd <- seq(1,by=2, len=100)

Subscribe to Sulthan Academy and Support my YouTube channel for more videos on R and data analysis.
Print Friendly, PDF & Email

I am an Avid reader, PhD Scholar (Finance), Data Analyst, Author(Research Papers and Books), Youtuber, R Programmer, Linux user, Supporter of Open Source and Free software movements, and Fan of Arsenal Football Club!

Leave a Reply

Your email address will not be published. Required fields are marked *