Hello, I have a large dataset, one of the columns is named "Nitrate". I would like to take the mean of rows 1-55 of the column "Nitrate". I know how to take the mean of the whole column, but how do I take the mean of only specific rows of the whole column?
Just select the rows by subseting the dataframe
mean(dataset_name$Nitrate[1:55])
1 Like
Thank you! That worked!
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.