[R] division of decimal number

Barry Rowlingson b.rowlingson at lancaster.ac.uk
Wed Apr 18 17:06:06 CEST 2007


Schmitt, Corinna wrote:
> Dear R-Experts,
> 
> how can I divide the number 0.285 with 2. I need a function.
> Result: 0.285 / 2 = 0.1425

  Just get the / operator:

  > divide = get("/")
  >
  > divide(0.285,2)
  [1] 0.1425

Is that what you want?

Barry



More information about the R-help mailing list