How to integrate R language
This article mainly introduces the relevant knowledge of how to integrate the R language, the content is detailed and easy to understand, the operation is simple and fast, and has a certain reference value. I believe you will gain something after reading this R language. Let's take a look.
R language rounding function involves many functions, including upward rounding, downward rounding, rounding, rounding and so on.
Ceiling rounding up
> ceiling (5.1) [1] 6 > ceiling (5.8) [1] 6
Floor rounding down
> floor (5.1) [1] 5 > floor (5.8) [1] 5
Round sets a few places after the decimal point and rounds the function to zero after the default decimal point.
> round (5.1) [1] 5 > round (5.8) [1] 6
If the default is 1 digit, it is rounded after 1 decimal place
> round (5.11) [1] 5.1 > round (5.18) [1] 5.2 this is the end of the article on "how to integrate R language". Thank you for reading! I believe you all have a certain understanding of the knowledge of "how to integrate R language". If you want to learn more knowledge, you are welcome to follow the industry information channel.