In this practical we are going to play around with the different types of elements in R.
vec1 with values 1 through 6 and one named vec2 with letters A through F. vec1 and one from vec2. The dimensions for both matrices are 3 rows by 2 columns. vec1 and vec2 with 6 rows and 2 columns. Inspect this matrix.dat3 where vec1 and vec2 are both columns. Name the columns V1 and V2, respectively. Use function data.frame().dat3b where vec1 and vec2 are both columns. Name the columns V1 and V2, respectively. Use function as.data.frame() on the matrix obtained from Question 4. dat3 that you have created in Question 4. V1 in our dataframe dat3 is not coded correctly, but actually represents grouping information about cities. Convert the variable to a factor and add the labels Utrecht, New York, London, Singapore, Rome and Cape Town.boys.RData. You need to download this file and put it in the project folder.boys dataset (it is from package mice, by the way) by typing boys in the console, and subsequently by using the function View(). boys data set and inspect the first and final 6 cases in the data set. boys data are sorted based on age. Verify this.boys dataset with str(). Use one or more functions to find distributional summary information (at least information about the minimum, the maximum, the mean and the median) for all of the variables. Give the standard deviation for age and bmi. Tip: make use of the help (?) and help search (??) functionality in R.north?End of practical