Professional Documents
Culture Documents
1. Out of 27 respondents considered in the survey, the respondents specify that their favorite
subjects are mathematics, statistics and science with 12, 5, and 10 of the total respondents,
respectively. Create a factor, based on the information given.
2. Create a 8 x 5 matrix that contains a number from 1 to 10 with length out of 40. Fill matrix
by columns. Make sure that the names of the rows are Cat, Pig, Monkey, Chicken, Horse, Rat,
Fish, and Dog and the names of the columns are Black, Pink, Orange, Violet, and Yellow.
3. Create a list that contains a numeric vector from (1 to 30, 34, 45, 47, and 50 to 70), a character
vector that repeat the elements A, B, and C 30 times, and a 2 x 3 matrix that contains a
number from 101 to 106 filled by rows.