suppose you have this set of data and its saved in file called (gobiants) site R
ID: 3842284 • Letter: S
Question
suppose you have this set of data and its saved in file called (gobiants)
site
Region
PlantCov
1
Dry Steppe
40
2
Dry Steppe
52
3
Dry Steppe
40
4
Dry Steppe
43
5
Dry Steppe
27
6
Gobi Desert
30
7
Gobi Desert
16
8
Gobi Desert
30
9
Gobi Desert
56
10
Gobi Desert
22
11
Gobi Desert
14
in RStudio :
find the mean and mode for PlantCov for the first 5 sites, and then the mean and mode for PlantCov for the rest 6 sites.
i need help just writing the code for this. thank you
site
Region
PlantCov
1
Dry Steppe
40
2
Dry Steppe
52
3
Dry Steppe
40
4
Dry Steppe
43
5
Dry Steppe
27
6
Gobi Desert
30
7
Gobi Desert
16
8
Gobi Desert
30
9
Gobi Desert
56
10
Gobi Desert
22
11
Gobi Desert
14
Explanation / Answer
firstfive=head(vect,5)
mean(firstfive)
median(lastsix)
getmode(lastsix)
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.