Читать книгу Probability with R - Jane M. Horgan - Страница 37

Exercises 1.1

Оглавление

1 In a class of 50 students of computing, 23 are female and 27 are male. The results of their first‐year Java programming examination are given as follows:Females:57, 59, 78, 79, 60, 65, 68, 71, 75, 48, 51, 55, 56, 41, 43,44, 75, 78, 80, 81, 83, 83, 85Males:48, 49, 49, 30, 30, 31, 32, 35, 37, 41, 86, 42, 51, 53, 56,42, 44, 50, 51, 65, 67, 51, 56, 58, 64, 64, 75Read these data into R by storing them in the following ways:As two vectors, one for the females and one for the males;As one vector, with a factor vector designating the gender.If it was discovered that the mark for the 34th student was entered incorrectly and should have been 46 instead of 86, use an appropriate editing procedure to change this.Save the workspace in a file in a suitable directory for access later.

Probability with R

Подняться наверх