R/RStudio Quick Start Guide - futures.io
futures.io futures trading

Go Back   futures.io

> Trading Wiki > Platforms, Tools and Indicators

R/RStudio Quick Start Guide

Welcome to R and RStudio!

R is an open source programming language and software environment for statistical computing and graphics.
The R language is widely used among statisticians for developing statistical software and data analysis.

RStudio is a free and open source integrated development environment for R.

Combining the two provides one of the most powerful statistical data anaylsis tools available with an easy to
use interface. I hope you find this Quick Start Guide useful and an interest in R.

  1. Download and Install R.
  2. Download and Install RStudio.

Help Command Example
  • Get help on the Get Working Directory command:

Import Your Data
  1. Export or save your data from your application in csv format, a comma separated values text file file format.
  2. Import and prepare your data:
wd <- getwd()
mydata <- read.csv("datafile.csv")

Informational Commands
    [1] "Instrument"
    [2] "Performance"
    [3] "Parameters"
    [4] "From"
    [5] "To"
    [6] "Total.Net.Profit"
    Total.Net.Profit Gross.Profit Gross.Loss
    Min. :-1525.00 Min. : 0.0 Min. :-1525.0
    1st Qu.: -72.50 1st Qu.: 0.0 1st Qu.: -115.6
    Median : 0.00 Median : 0.0 Median : 0.0
    Mean : 64.77 Mean : 168.6 Mean : -103.9
    3rd Qu.: 97.50 3rd Qu.: 130.6 3rd Qu.: 0.0
    Max. : 3075.00 Max. :3075.0 Max. : 0.0

Graphic Commands (See Attachments Below)
  • hist(Total.Net.Profit, breaks=100)
  • plot(From, Total.Net.Profit)

Calculation Commands
  • ...

Attached Images
Register to download File Type: png HistExample.png (6.6 KB, 23 views)
Register to download File Type: png PlotExample.png (28.6 KB, 28 views)
Created by  MrYou , October 28th, 2012 at 02:47 PM
0 Comments, 1,144 Views
Page Tools
Search this Page

Posting Rules
You may not create new articles
You may not edit articles
You may not protect articles

You may not post comments
You may not post attachments
You may not edit your comments

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

All times are GMT -4. The time now is 12:13 PM.

Copyright © 2016 by futures.io. All information is for educational use only and is not investment advice.
There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.

Page generated 2016-10-23 in 0.09 seconds with 20 queries on phoenix via your IP