Breaking News

Fresco Play Hands on - R basics - Random Numbers in R

 

5337 - Data Science

E0- Fresco Play Hands on - R basics - Random Numbers in R



Question -

1. Create a vector V of random numbers of float with length, start, end, and precision values from the function parameters defined.

2. Note: Function structure is given as unalterable code.

Answer - 

random_function <- function(length,start,end,precision) { 
    





# Enter your code here. 
V <- round(runif(10, 0, 1),2)

return (V)
  
}#End Function
print(length(random_function(10,0.0,10.0,2)))

No comments