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

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)
#> Selecting by n
#> # A tibble: 3 x 2 #> first_name n #> <chr> <int> #> 1 Jackson 13 #> 2 Jacob 11 #> 3 Joseph 11