Showing posts with label R. Show all posts
Showing posts with label R. Show all posts

Wednesday, June 25, 2014

Data analysis using R - R programming Tutorial ( Part 7 )

Workspace

The workspace is where all the objects you create during a session are
located.
When you close R you will be prompted to “Save workspace image?” If you
say yes, the next time you open R from the same working directory the
workspace will be restored. That is all of the objects you created during your
last session will still be available. Also see save.image().

Monday, June 23, 2014

Data analysis using R - R programming Tutorial ( Part 6 )

Package Documentation

To get an overview of an installed package and its contents,
help(package=package name)
Some packages include a vignette, a file with additional documentation and
examples. To get a list of all vignettes from all installed packages,
vignette()

Friday, June 20, 2014

Data analysis using R - R programming Tutorial ( Part 5 )

Documentation

R function documentation contains:
- A general description of the function
- A list and description of the function’s formal arguments and default
settings
- Details about the function
- A list and description of values returned by the function
- References
- An executable example





Sometimes the documentation is very complete and other times it is vague.
It is more of a quick reference and not intended for instruction.
Better educational resources are the R manuals, contributed manuals, and
FAQs available on the R website.
There are also mailing lists. You can search archived posts or post new
questions. Posting is not for the faint of heart. If you post, be sure to have
a thoughtful question and read the posting guide.

Thursday, June 5, 2014

Data analysis using R - R programming Tutorial ( Part 5 ) - R Documentation



Documentation
R function documentation contains:
- A general description of the function
- A list and description of the function’s formal arguments and default
settings
- Details about the function
-A list and description of values returned by the function
- References
- An executable example
Sometimes the documentation is very complete and other times it is vague.
It is more of a quick reference and not intended for instruction.

Tuesday, May 27, 2014

Data analysis using R - R programming Tutorial ( Part 4 )

 

Script Editor

The script editor is used for writing programs in R.
To start a new script, click File>New Script
The easiest way to run code is keyboard shortcuts
I To run part of a program, highlight the lines you want and hit Ctrl+R
I To run an entire program, select all the code then run, Ctrl+A then
Ctrl+R

Thursday, May 22, 2014

Data analysis using R - R programming Tutorial ( Part 3 )

Objects and Functions

What we normally do is create objects and then perform functions on those objects
(functions are also considered objects, more on this later).



Monday, May 12, 2014

Data analysis using R - R programming Tutorial ( Part 2 )

Calculator
Enter a math expression and the result is outputted to the console.



Binary Operators
+
-
*
/
^
%%

Data analysis using R - R programming Tutorial ( Part 1 )

Getting Started with R

What is R?
R is a high-level computer language and environment for statistics and
graphics
I Performs a variety of simple and advanced statistical methods
I Produces high quality graphics
I R is a computer language so we can write new functions that extends