Skip to main content
Maverick Noah
High hopes get Higher vibes
Asked a question 4 months ago

how to create a function in r?

Where am I?

In answerQA you can ask and answer questions and share your experience with others!

Charles Eli
I Don't want a perfect life. I want a happy life.

How to Create a Function in R

  1. Multiply the fractional numbers by 100.
  2. Round the result to one decimal place. You can use the round() function to do this.
  3. Paste a percentage sign after the rounded number. The paste() function is at your service to fulfill this task.
  4. Print the result. The print() function will do this.