About this document
R Coding Exercises and Functions by student login is a document available to read on EtoBox.
1. The function f(6) returns 49 because it calculates b^2 + g(6) where b=7 and g(6) evaluates to 6*b=6*7=42. 2. Write a function that takes a vector as an input, calculates the median, and replaces any missing values with the median. 3. Write codes to create the following vectors using built-in R functions: a) Repeating sequence of 1,2,3 b) Repeating sequence of 1,2 alternating with 3,4 c) Sequence from 2 to 20 incrementing by 2 d) Sequence of letters with different frequencies
- Author
- student login
- Language
- EN