R Dataset / Package reshape2 / tips

On this R-data statistics page, you will find information about the tips data set which pertains to Tipping data. The tips data set is found in the reshape2 R package. You can load the tips data set in R by issuing the following command at the console data("tips"). This will load the data into a variable called tips. If R says the tips data set is not found, you can try installing the package by issuing this command install.packages("reshape2") 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 tips R data set. The size of this file is about 9,729 bytes.

Tipping data

Description

One waiter recorded information about each tip he received over a period of a few months working in one restaurant. He collected several variables:

Usage

tips

Format

A data frame with 244 rows and 7 variables

Details

  • tip in dollars,

  • bill in dollars,

  • sex of the bill payer,

  • whether there were smokers in the party,

  • day of the week,

  • time of day,

  • size of the party.

In all he recorded 244 tips. The data was reported in a collection of case studies for business statistics (Bryant & Smith 1995).

References

Bryant, P. G. and Smith, M (1995) Practical Data Analysis: Case Studies in Business Statistics. Homewood, IL: Richard D. Irwin Publishing:

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

Attachments: csv, json

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