Enter below an R command that will output four values: the p…