शुरू करेंमुफ़्त में शुरू करें

Your first function: tossing a coin

Time to write your first function! It's a really good idea when writing functions to start simple. You can always make a function more complicated later if it's really necessary, so let's not worry about arguments for now.

यह अभ्यास पाठ्यक्रम का हिस्सा है

Introduction to Writing Functions in R

पाठ्यक्रम देखें

इंटरैक्टिव व्यावहारिक अभ्यास

इस अभ्यास को इस नमूना कोड को पूरा करके आज़माएँ।

coin_sides <- c("head", "tail")

# Sample from coin_sides once
___
कोड संपादित करें और चलाएँ