smd

An R package for computing the standardized mean difference between two groups for various data types.

x <- rnorm(100)
g <- rep(1:2, each = 50)
smd(x, g)

See using smd for more details.