sqrt()

sqrt()

 The sqrt() function computes the square root of a value.

Example 1:

# Calculate the square root of 157
sqrt(157)

Example output:

Output of sqrt() function

Example 2:

# Use sqrt() to get the standard deviation around the mean of Thumb
empty_model <- lm(Thumb ~ NULL, data = Fingers)
sqrt(sum(resid(empty_model)^2)/156)

Example output:

Output of using sqrt() to find standard deviation of Thumb