Some Simple math
R can be used as a calculator and indeed one of its principal uses is to undertake complex mathematical
and statistical calculations. R can perform simple calculations as well as more complex ones.
This section deals with some of R’s commonly used mathematical functions. Learning how to carry
out some of these simple operations will give you practice at using R and typing simple commands.
Let's Try
> 1+2
[1] 3
> 1+78*879*5*log10(20)
[1] 446007.1
No comments:
Post a Comment