To find the standard deviation of all elements in an array in R, you can use the sd()
function. First, you need to create the array using the c()
function, then apply the sd()
function to the array. Here's an example:
main.r92 chars6 lines
This will give you the standard deviation of all elements in the my_array
array.
gistlibby LogSnag