11.07.2015 Views

Introductory Slides for R - Statistics

Introductory Slides for R - Statistics

Introductory Slides for R - Statistics

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.

Custom FunctionsR can be extended by writing your own function.It is my way of building up an analysis or plot construction in stepwise fashionwithout having to retype all commands.> squareError: object "square" not found> fix(square) #here we edit the function object square & save it.> squarefunction (x){x square(1:5)[1] 1 4 9 16 25Note the difference in calling square with and without arguments.24

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

Saved successfully!

Ooh no, something went wrong!