Calculating Z Score In R Studio