Description Usage Arguments Details Examples
Function implementing the fizzbuzz function.
The function takes a vector of numbers as inputs and replaces values that are evenly divisible by 3 with "Fizz", values that are evenly divisible by 5 with "Buzz", and values evenly divisible by both with "FizzBuzz".
1 | fizzbuzz(x)
|
x |
A numeric vector |
The input vector is expected to be numeric and contain only finite values, that are greater than or equal to 0 and must be representable as an integer. Any violations of these assumptions will result in an error.
1 2 3 4 5 6 7 8 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.