Skip to contents

This function takes two strings and returns a pasted output.

Usage

animal_sounds(animal, sound = NULL)

Arguments

animal

An animal name, e.g. "Tiger", "Dog"

sound

A sound the animal will make, e.g. "Roar", "Woof", which is pasted together using paste().

Examples

animal_sounds("dog", "woof")
#> [1] "The dog says woof, woof, woof!"