12.07.2015 Views

R dummies

R dummies

R dummies

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

typing help(paste) returns help about the paste() function.By typing ? followed by the name of the function. For example, typing ?pastereturns help about the paste() function.Typically, the R Help files follow a fairly standard outline. You find most of thefollowing sections in every R Help file:Title: A one-sentence overview of the function.Description: An introduction to the high-level objectives of the function,typically about one paragraph long.Usage: A description of the syntax of the function (in other words, how thefunction is called). This is where you find all the arguments that you can supplyto the function, as well as any default values of these arguments.Arguments: A description of each argument. Usually this includes a specificationof the class (for example, character, numeric, list, and so on). This section isan important one to understand, because supplying an argument of the wrongclass is quite frequently a cause of errors in R.Details: Extended details about how the function works, provides longerdescriptions of the various ways to call the function (if applicable), and a longerdiscussion of the arguments.Value: A description of the class of the value returned by the function.See also: Links to other relevant functions. In most of the R editors, you canclick these links to read the Help files for these functions.Examples: Worked examples of real R code that you can paste into your consoleand run.One of the most powerful ways of using R Help is to carefully study theexamples in the Examples section. The documentation authors designed theseexamples to be reproducible, which means that you can copy the whole example toyour R console and run it directly. Often, this can help you really understand thenature of the input that each function needs and the output the function gives.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!