Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

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)