Inputs to functions
Most functions require some sort of input to determine what to compute. The inputs to functions are called arguments. You specify them inside the parentheses after the word "function."
As mentioned in the video, the following exercises assume that you are using sample() to do random sampling.
यह अभ्यास पाठ्यक्रम का हिस्सा है
Introduction to Writing Functions in R
इंटरैक्टिव व्यावहारिक अभ्यास
इस अभ्यास को इस नमूना कोड को पूरा करके आज़माएँ।
coin_sides <- c("head", "tail")
n_flips <- 10
# Sample from coin_sides n_flips times with replacement
___