Please download the file https://anaraven.bitbucket.io/eval/2018/cmb1/disu/answers.Rmd. Write your student number in the correct place at the beginning of the answer file. When you finish, send the answers.Rmd file to andres.aravena+cmb@istanbul.edu.tr. Be sure to use the correct email address and send only one file.
x with this content:# write your answer here
$name
[1] "Ali" "Bahar" "Cem" "Deniz" "Elif" "Faruk" "Güney" "Haluk" "Irem"
$age
[1] 20 23 26 29 32 35 38 41 44
# write your answer here
[1] "Cem"
age# write your answer here
[1] 32
# write your answer here
[1] "Elif"
v with the element ages in x. Assign the element names as names of the elements of v# write your answer here
Ali Bahar Cem Deniz Elif Faruk Güney Haluk Irem
20 23 26 29 32 35 38 41 44
v the name of the person with the median age# write your answer here
Elif
32
df with this content:# write your answer here
name age
1 Ali 20
2 Bahar 23
3 Cem 26
4 Deniz 29
5 Elif 32
6 Faruk 35
7 Güney 38
8 Haluk 41
9 Irem 44
(you can write all the values again, or you can use as.data.frame)
# write your answer here
[1] Cem
Levels: Ali Bahar Cem Deniz Elif Faruk Güney Haluk Irem
age# write your answer here
[1] 32
df the name of the person with the median age# write your answer here
[1] Elif
Levels: Ali Bahar Cem Deniz Elif Faruk Güney Haluk Irem
Your computer has already a ChickWeight data frame with four columns, from an experiment on the effect of diet on early growth of chicks.
ChickWeight.# write your answer here
[1] "weight" "Time" "Chick" "Diet"
ChickWeight.# write your answer here
[1] 578
ChickWeight# write your answer here
weight Time Chick Diet
43 102 12 4 1
Chick number of the chickens with weight greater than 330. Chick numbers can be repeated.# write your answer here
[1] 21 34 35 35 35
50 Levels: 18 < 16 < 15 < 13 < 9 < 20 < 10 < 8 < 17 < 19 < 4 < ... < 48