readEViews: Read an Eviews File

Description Usage Arguments Details Value Author(s) References Examples

View source: R/eviews.R

Description

This function reads a file in Eviews format (Eviews is an econometrics package).

Usage

1
readEViews(filename, time.stamp=TRUE, as.data.frame = TRUE)

Arguments

filename

The name of the file.

time.stamp

A logical indicating whether to include a Date column in the result.

as.data.frame

If TRUE the result is a data frame; otherwise a list of variables is returned.

Details

This function is just a demonstration of how the functions in this package can be used to read a complex binary format. It has been tested on a few sample files (and works), but there is no guarantee it will work for all Eviews files (this is not helped by the fact that it is based on reverse-engineering information about the Eviews format, NOT an official description of the format.

Value

Either a data frame or a list of variables.

Author(s)

Paul Murrell

References

http://www.eviews.com/ and http://www.ecn.wfu.edu/~cottrell/eviews_format/

Examples

1
readEViews(hexViewFile("data4-1.wf1"))

Example output

   BATHS BEDRMS PRICE SQFT
1   1.75      3 199.9 1065
2   2.00      3 228.0 1254
3   2.00      3 235.0 1300
4   2.50      4 285.0 1577
5   2.00      3 239.0 1600
6   2.00      4 293.0 1750
7   2.75      4 285.0 1800
8   2.00      4 365.0 1870
9   2.50      4 295.0 1935
10  2.00      4 290.0 1948
11  3.00      4 385.0 2254
12  2.50      3 505.0 2600
13  3.00      4 425.0 2800
14  3.00      4 415.0 3000
Warning messages:
1: In readEViews(hexViewFile("data4-1.wf1")) :
  Skipping boilerplate variable

2: In readEViews(hexViewFile("data4-1.wf1")) :
  Skipping boilerplate variable

hexView documentation built on May 2, 2019, 7:02 a.m.