R Dataset / Package wooldridge / airfare

On this R-data statistics page, you will find information about the airfare data set which pertains to airfare. The airfare data set is found in the wooldridge R package. You can load the airfare data set in R by issuing the following command at the console data("airfare"). This will load the data into a variable called airfare. If R says the airfare data set is not found, you can try installing the package by issuing this command install.packages("wooldridge") and then attempt to reload the data with the library() command. If you need to download R, you can go to the R project website. You can download a CSV (comma separated values) version of the airfare R data set. The size of this file is about 600,246 bytes.

airfare

Description

Data loads lazily. Type data(airfare) into the console.

Usage

data(airfare)

Format

A data.frame with 4596 rows and 14 variables:

  • year. 1997, 1998, 1999, 2000

  • id. route identifier

  • dist. distance, in miles

  • passen. avg. passengers per day

  • fare. avg. one-way fare, $

  • bmktshr. fraction market, biggest carrier

  • ldist. log(distance)

  • y98. =1 if year == 1998

  • y99. =1 if year == 1999

  • y00. =1 if year == 2000

  • lfare. log(fare)

  • ldistsq. ldist^2

  • concen. = bmktshr

  • lpassen. log(passen)

Source

https://www.cengage.com/cgi-wadsworth/course_products_wp.pl?fid=M20b&product_isbn_issn=9781111531041

Examples

 str(airfare)

Dataset imported from https://www.r-project.org.

Attachments: csv, json

<iframe src="https://pmagunia.com/iframe/r-dataset-package-wooldridge-airfare.html" width="100%" height="100%" style="border:0px"></iframe>