Create a sequence of data from 1 to 30 with odd numbers only. Use the seq () function [closed]

0

I am trying to solve this question given in a manual but I can not make the sequence be of odd numbers

    
asked by anonymous 14.05.2018 / 23:45

1 answer

2

Just pay attention to the parameters.

seq(from = 1, to = 30, by = 2)
  • from : start of sequence
  • to : maximum possible value of the sequence. Not exactly the final element.
  • by : sequence increment.
14.05.2018 / 23:58