Modified doc to comply with requirements of assign. 2 in r programming