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

Simulating the time-series 

Of course, you have been collecting data from cryptocurrency markets since you implemented your own version of the object-oriented system we developed in the last chapter, haven't you? I'm just kidding. If you have, it's probably not enough data for what we will do in this chapter, so here's a small piece of code that will simulate two time-series for Bitcoin and Litecoin price in US Dollars. The data structure is similar to the one used in the previous chapter, making the code we develop here useful for that system also.

We won't go too deep into how the function works since it should be clear for you at this point, except to point out that we're using the time_to_timestamp.TimeStamp() function we developed in ...

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