Type: | Package |
Title: | Data on Cars in Qatar |
Version: | 1.0.0 |
Date: | 2025-10-09 |
Description: | Fuel economy, size, performance, and price data for cars in Qatar in 2025. Mirrors many of the columns in mtcars, but uses (1) non-US-centric makes and models, (2) 2025 prices, and (3) metric measurements, making it more appropriate for use as an example dataset outside the United States. |
License: | CC BY 4.0 |
Encoding: | UTF-8 |
LazyData: | true |
RoxygenNote: | 7.3.3.9000 |
Depends: | R (≥ 4.1.0) |
URL: | https://profmusgrave.github.io/qatarcars/, https://github.com/profmusgrave/qatarcars |
BugReports: | https://github.com/profmusgrave/qatarcars/issues |
Suggests: | altdoc, downlit, dplyr, ggplot2, scales, testthat (≥ 3.0.0), tibble, xml2 |
Config/testthat/edition: | 3 |
NeedsCompilation: | no |
Packaged: | 2025-10-09 14:58:27 UTC; andrew |
Author: | Paul Musgrave |
Maintainer: | Paul Musgrave <rpm47@georgetown.edu> |
Repository: | CRAN |
Date/Publication: | 2025-10-16 12:00:02 UTC |
qatarcars: Data on Cars in Qatar
Description
Fuel economy, size, performance, and price data for cars in Qatar in 2025. Mirrors many of the columns in mtcars, but uses (1) non-US-centric makes and models, (2) 2025 prices, and (3) metric measurements, making it more appropriate for use as an example dataset outside the United States.
Author(s)
Maintainer: Paul Musgrave rpm47@georgetown.edu (ORCID) [copyright holder]
Authors:
Andrew Heiss andrew@andrewheiss.com (ORCID)
See Also
Useful links:
Report bugs at https://github.com/profmusgrave/qatarcars/issues
Fuel economy, size, performance, and price data for cars in Qatar
Description
Includes prices and other specifications taken from YallaMotors Qatar between January to August 2025
Usage
qatarcars
Format
A tibble with 99 rows and 15 variables:
- origin
a factor denoting car country of origin
- make
a factor denoting car make
- model
a factor denoting car model
- length
a number denoting car length (meters)
- width
a number denoting car width (meters)
- height
a number denoting car height (meters)
- seating
a number denoting number of seats in car
- trunk
a number denoting volume of trunk (liters)
- economy
a number denoting car fuel economy (L/100km)
- horsepower
a number denoting car horsepower
- price
a number denoting car price (2025 Qatari riyals (QAR))
- mass
a number denoting car mass (kilograms)
- performance
a number denoting car performance (Time 0-100 km/h (seconds))
- type
a factor denoting car type
- enginetype
a factor denoting car engine type
Source
https://github.com/profmusgrave/qatarcars
https://open.substack.com/pub/musgrave/p/introducing-the-qatar-cars-dataset
Yalla Motors Qatar
Examples
str(qatarcars)
head(qatarcars)
summary(qatarcars)
table(qatarcars$origin)
aggregate(price ~ enginetype, qatarcars, mean)
barplot(table(factor(
qatarcars$seating,
levels = min(qatarcars$seating):max(qatarcars$seating)
)))
plot(economy ~ mass, qatarcars)
plot(price ~ performance, qatarcars, log = "y")
if (require("dplyr") && require("ggplot2")) {
glimpse(qatarcars)
qatarcars |>
count(origin)
qatarcars |>
group_by(enginetype) |>
summarize(avg_price = mean(price))
ggplot(qatarcars, aes(x = seating)) +
geom_bar()
ggplot(qatarcars, aes(x = mass, y = economy)) +
geom_point()
ggplot(qatarcars, aes(x = performance, y = price)) +
geom_point() +
scale_y_log10()
}