Best Answer · By JanBask Data Science Expert
Answered on Nov 3, 2019
Let us assign all the recorded time in a variable
x=c(17,16,20,24,22,15,21,15,17,22)
To find out the time he commuted 20 minutes or more, we can do the following
sum(x>=20)
To find out the percentage of his commute less than 17 minutes, we can do the following
y=sum(x
y/length(x)