News in English

Getting Help With Functions In R Programming - Easy Guides - Wiki

Getting help on a specific functionGeneral helpOthersRelated articlesInfosIn our previous articles we described how to install and start using R/RStudio. We also provide the essentials of R programming.Here, we’ll describe how to get help about a specific function in RTo read more about a given function, for example mean, the R function help() can be used as follow:help(mean)Or use this:?meanThe output look like this:If you want to see some examples of how to use the function, type this: example(function_name).example(mean)Note that, typical R help files contain the following sections:TitleDescription: a short description of what the function does.Usage: the syntax of the function.Arguments: the description of the arguments taken by the function.Value: the value returned by the functionExamples: provide examples on how to use the functionIf you want to read the general documentation about R, use the function help.start():help.start()The output is a web page, on most R installations, wh...

Читайте на 123ru.net