valeur absolue en r

x <- abs(x)

#Also works with vectors
x = c(1,-2)
x <- abs(x)
#x will be the vector [1,2]
MauriceLePastis