Tsallaka zuwa abun ciki
Justice Tech School

R Numbers

R has numeric and integer types. Useful functions: abs, sqrt, round, ceiling, floor, max, min and sum. %% is modulo and %/% integer division.

Example
print(17 %% 5); print(17 %/% 5); print(2 ^ 10)
print(sqrt(81)); print(round(3.14159, 2))

Exercise

Remainder operator.

17  5

Quiz Test

Which is integer division?

These free lessons are for learning. Join a full course for projects, mentor feedback and a verified certificate.