5  Semantic Error

5.1 : Script

Code
log(c(10, 1, NA, 0))

log(T)
log(F)
log(TRUE)
log(True)

log("A" < "B")
log("Apple" < "Orange")

5.2 Script

Code
import math

math.log(10)
math.log(1)
math.log(0)

math.log(True)
math.log(False)

math.log('A' < 'B')

math.log('Apple' < 'Orange')

5.3 Operations

  • Including operations that may show warning

  • Missing values

  • Coercion

R coercion

R coercion

  • Vectorisation

  • Recycling