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

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, 25 views)
Register to download File Type: png PlotExample.png (28.6 KB, 32 views)
Page Tools
Search this Page

All times are GMT -4. The time now is 02:45 AM.

Copyright © 2017 by futures io, s.a., Av Ricardo J. Alfaro, Century Tower, Panama, +507 833-9432, info@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 2017-12-15 in 0.07 seconds with 20 queries on phoenix via your IP