Difference between revisions of "R: Matematika Dasar"

From OnnoWiki
Jump to navigation Jump to search
Line 27: Line 27:
 
  (-4:3) %% 2
 
  (-4:3) %% 2
  
 +
(-4:3) %/% 3
 +
 +
sign
 +
 +
sign(-4:3)
  
 
==Pranala Menarik==
 
==Pranala Menarik==
  
 
* [[R]]
 
* [[R]]

Revision as of 08:41, 28 November 2019

Contoh operasi matematika

2 ^ 2
2 * 2
2 / 2
2 + 2
2 - 2
4 * 3 ^ 3

vector -4 s/d 3

-4:3

abs remainer=

absolute

abs(-4:3)

remainder

(-4:3) %% 2
(-4:3) %/% 3

sign

sign(-4:3)

Pranala Menarik