On January 21th at 14:15 UTC , progression through exercises will be unavailable for 10 minutes due to a planned maintenance break.
Deals Of The Week - hours only!Up to 80% off on all courses and bundles.-Close
Introduction
Text values
Variables
Functions
16. Function arguments
Summary

Instruction

Good! Note that a function in R can take more than one argument. For example, the function round has a variant that allows you to specify the precision of the result. We use it like this:

round(14.356, 2)

The second argument 2 tells R that the number 14.356 should be rounded to two decimal places. In this case, the function will return the value 14.36.

Exercise

Tanya's weight in pounds is 136.6864. Round this number to one decimal place.