I have a column say hight, 120,113,114,113,114,.... until 100. That is, I have 100 hights in my data set.
Now I want to use a fixed formula to calculate a specific value. The formula is:
Hight= SQRT((hight1)^2 + (hight2)2 +(hight3)^2....)/2)
Hight= SQRT((120)^2 + (113)2 +(hight114)^2....)/2)
I was unable to run it using R codes to show the output. Are there any codes to get this data using this formula quickly?