lego_sales: Sales of Lego sets (simulated)

lego_salesR Documentation

Sales of Lego sets (simulated)

Description

Simulated data based on real prices for Lego sales in 2018 in the United States. Names and hobbies have been randomly generated

Usage

lego_sales

Format

A tibble with 620 rows and 14 variables:

first_name

First name of customer

last_name

Last name of customer

age

Age of customer

phone_number

Phone number of customer

set_id

Set ID of lego set purchased

number

Item number of lego set purchased

theme

Theme of lego set purchased

subtheme

Sub theme of lego set purchased

year

Year of purchase

name

Name of lego set purchased

pieces

Number of pieces of legos in set purchased

us_price

Price of set purchase in US Dollars

image_url

Image URL of lego set purchased

quantity

Quantity of lego set(s) purchased

Examples


library(dplyr)

lego_sales |>
  count(first_name, sort = TRUE) |>
  top_n(3)


rstudio-education/dsbox documentation built on Oct. 22, 2023, 12:20 a.m.