read.time: read.time

Description Usage Arguments Details Value Examples

Description

Returns the state of the orderbook at the specified time.

Usage

1
read.time(object, n)

Arguments

object

Object of class orderbook

n

A character in the form "HH:MM:SS".

Details

Sets the state of the orderbook to the specified time. Can be used to move backwards or forwards in time.

Value

Return an object of class orderbook

Examples

1
2
3
4
5
6
library(orderbook)
filename <- system.file("extdata", "sample.txt",
                        package = "orderbook")

ob <- orderbook(file = filename)
ob <- read.time(ob, "9:30:00")

Example output

Loading required package: lattice
Loading required package: hash
hash-2.2.6.1 provided by Decision Patterns

Loading required package: grid

orderbook documentation built on May 2, 2019, 6:11 p.m.