The following are the 2 initial columns of our dataset. The column on the left (with numbers) was inserter by R.
The following is another column in our dataset. We have calculated the mean of all values in this column.
We wish to compare each of the values in this last column to the mean value. (Is it higher, equal or lower than then mean value?).
To do so we used he following code:
which(databel$coverage>0.1632407, useNames=TRUE)
which(databel$coverage<0.1632407, useNames=TRUE)
which(databel$coverage==0.1632407, useNames=TRUE)
Where 0.1632407 is equal to the calculated mean of the column in the second immage.
However, this returns a list of the row number (found on the left side of the first image) rather than the place name (found on the right side of the first image)
How can we have it return the corresponding place name?