Ad Code

Ticker

6/recent/ticker-posts

TCS Ievolve competency ID - 5337 - Data Science Fresco Play Hands on - R basics - Random Numbers in R Ievolve course ID - 55101

                                      

TCS Ievolve competency ID - 5337 - Data Science

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

Ievolve course ID - 55101


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)))

Post a Comment

0 Comments