Skip to Content
R Programming By Example
book

R Programming By Example

by Omar Trejo Navarro
December 2017
Beginner to intermediate
470 pages
12h 29m
English
Packt Publishing
Content preview from R Programming By Example

Activating our system with two simple functions

After you have loaded some data into the system, you will be able to execute the update-markets.R and update-assets.R files, whose contents are shown below. The first one loads the required definitions, as we did previously when creating the user data, and provides the update_markets_loop() function, which receives a parameter that specifies the number of minutes between each time the live market data is retrieved. Every 60 minutes is a good option, and it's what we use below. The function simply creates a Storage instance using the SETTINGS specification shown before, gets the existing exchanges (which is only CoinMarketCap at this point), and calls the public update_markets() method on each ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Efficient R Programming

Efficient R Programming

Colin Gillespie, Robin Lovelace
R Programming

R Programming

Jared P. Lander

Publisher Resources

ISBN: 9781788292542Supplemental Content