generics.midas: generic functions for midas

Description Usage Arguments Value Examples

Description

data.frame, names, print, summary, head, and tail generic functions used for object of class 'midas'

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
## S3 method for class 'midas'
as.data.frame(x, ...)
## S3 method for class 'midas'
names(x)
## S3 method for class 'midas'
print(x, ..., n = 5)
## S3 method for class 'midas'
summary(object,...)
## S3 method for class 'midas'
head(x, ..., n = 5)
## S3 method for class 'midas'
tail(x, ..., n = 5)	

Arguments

x, object

midas object

...

additional arguments to default s3 methods

n

numeric. number of rows to print, or to show when using head or tail

Value

traffic data (dataframe) is extracted using as.data.frame() get or set column names of the traffic data (data frame) using names() print the date and sample of the 'midas' taffic data using print() get a summary of the traffic data (dataframe) using summary() print the first n rows of the traffic data (dataframe) using head() print the last n rows of the traffic data (dataframe) using tail()

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## Not run: 
#md is a one .csv data set you've downloaded
m <- as.data.frame(x = md)
head(m)
#summary of midasO.ex data frame
summary(object = md)
#head of midasO.ex data frame
head(x = md)

## End(Not run)

arwasayegh/mdep documentation built on May 20, 2019, 1:27 p.m.