Tidy Tuesday: What Can IKEA Product Names Tell Us About Places?

Exploring price differences in product categories by country and the relationship between place type and product categories.
Exploratory
TidyTuesday
Author

Alex Wainwright

Published

November 29, 2026

Code
# Libraries -----------------------------------------------
library(data.table)
library(flextable)
library(forcats)
library(ggplot2)
library(patchwork)
library(rvest)
library(stringr)

# Ikea Data -----------------------------------------------
ikea_places <- fread('https://raw.githubusercontent.com/rfordatascience/tidytuesday/main/data/2026/2026-10-27/ikea_places.csv')
ikea_seating <- fread(
  'https://raw.githubusercontent.com/rfordatascience/tidytuesday/main/data/2026/2026-10-27/ikea_seating.csv',
  colClasses = list(character = "item_no"))

# Country Code --------------------------------------------
country_code <- read_html("https://www.iban.com/country-codes") |>
  html_element("#myTable") |>
  html_table() |>
  as.data.table()
Code
ikea_seating[, `:=` (
  category = str_to_title(category),
  name     = fcoalesce(name, product_name),
  country  = toupper(country)
)]

ikea_seating <- unique(ikea_seating, by = c("name", "item_no", "country"))  # Duplicated rows caused by item being assigned to both Armchairs and Sofas

ikea_seating[country_code, on = c("country" = "Alpha-2 code"), country_name := i.Country]

Max-Min Price Ratios

Code
price_ratios <- ikea_seating[, .(
  n                 = .N,
  price_ratio       = max(price_usd) / min(price_usd), 
  cheapest_country  = country_name[which.min(price_usd)],
  expensive_country = country_name[which.max(price_usd)]),
  by = .(name, category, item_no)]

price_ratio_bxplt <- price_ratios[n > 1] |>
  ggplot(aes(x = category, y = log10(price_ratio))) +
  geom_boxplot(aes(group = category, colour = category, fill = category), alpha = 0.40) +
  scale_y_continuous(sec.axis = ~10^.) +
  theme_bw() +
  theme(
    legend.position = "none"
  ) +
  scale_colour_manual(values = c("Armchairs" = "#0057AD", "Sofas" = "#FFDA1A")) +
  scale_fill_manual(values = c("Armchairs" = "#0057AD", "Sofas" = "#FFDA1A")) +
  labs(
    colour = "Product Category",
    fill = "Product Category",
    x = NULL,
    y = "Max/Min price ratio (log10 Scale)"
  )

price_ratio_dens <- price_ratios[n > 1] |>
  ggplot(aes(x = log10(price_ratio))) +
  geom_density(aes(colour = category, fill = category), alpha = 0.40) +
  theme_bw() +
  theme(
    legend.position = "right"
  ) +
  scale_colour_manual(values = c("Armchairs" = "#0057AD", "Sofas" = "#FFDA1A")) +
  scale_fill_manual(values = c("Armchairs" = "#0057AD", "Sofas" = "#FFDA1A")) +
  scale_x_continuous(sec.axis = ~10^.) +
  labs(
    colour = "Product Category",
    fill = "Product Category",
    x = "Max/Min price ratio (log10 Scale)",
    y = "Density"
  )

price_ratio_bxplt + price_ratio_dens
Figure 1: Distribution of the ratio of maximum to minimum price (USD) across countries, by product category. Products sold in a single country are excluded.

To compare countries, the ratio of maximum to minimum prices (USD) was calculated per item. Products sold in only one country were omitted from the analysis (N = 699). Figure 1 shows armchairs to have a greater variation between maximum and minimum prices across countries compared to sofas. Although sofas are sold in fewer countries, which would tend to reduce their ratio, so part of this difference may reflect coverage. On average, the highest price for an armchair was 1.97 (SD = 0.71, Median = 1.86) times the least expensive price; for sofas this was found to be 1.66 (SD = 0.58, Median = 1.55).

Table 1 presents the five highest max-min ratios in each category. For sofas, the largest gaps were between Thailand and Mexico (up to 7.4 times the price), Japan and Egypt, Thailand and Finland, and Thailand and Israel. For armchairs, prices in Morocco, Egypt, and Mexico were 4.5 to 5.2 times those in the Philippines or Thailand.

Code
price_ratios[order(-price_ratio), head(.SD, 5), by = category
             ][, .(category, cheapest_country, expensive_country, name, item_no, n, price_ratio)] |>
  flextable() |>
  set_header_labels(values = c("Category", "Cheapest", "Expensive", "Name", "Item #", "N", "Max-Min Ratio")) |>
  merge_at(i = 1:5, j = 1) |>
  merge_at(i = 6:10, j = 1) |>
  hline(i = 5, j = 1:7) |>
  align_nottext_col(align = "center") |>
  colformat_double(digits = 2)
Table 1: Top five highest max-min ratios by category

Category

Cheapest

Expensive

Name

Item #

N

Max-Min Ratio

Sofas

Thailand

Mexico

SLATORP

19577596

9

7.41

Thailand

Mexico

SLATORP

50594367

9

6.87

Japan

Egypt

HEMLINGBY

50435321

10

5.99

Thailand

Finland

SMEDSTORP

49418600

3

4.45

Thailand

Israel

SLATORP

99577601

16

4.23

Armchairs

Philippines (the)

Morocco

LINNEBÄCK

70487229

19

5.19

Thailand

Mexico

IKEA PS 2026

00620359

29

4.74

Philippines (the)

Morocco

FRÖSET

80425641

34

4.69

Philippines (the)

Morocco

STRANDMON

70392542

48

4.56

Philippines (the)

Egypt

SOTENÄS

10581913

48

4.53

Product Categories and Place Types

We test the null hypothesis that product category (armchair or sofa) is independent of the type of place a product is named after. Products with no matching entry in the places data were dropped by the inner merge, and place types are lumped into Other to prevent sparse cells. Each row now represents a product-place, with some products contributing eight rows, whilst others contribute a single row. This is due to product names being associated with several place types.

Code
product_cat <- unique(ikea_seating[, .(category, product_name)])
product_cat <- merge(product_cat, ikea_places[, .(name, place_type)], by.x = "product_name", by.y = "name")

product_cat[, `:=` (
  place_type = fct_lump_min(str_to_title(gsub("_", " ", place_type)), min = 10))]

place_type_tbl <- xtabs(~ place_type + category, data = product_cat)

Proportions within categories show that hamlets are the most common place type (Armchairs: 46.4%; Sofas: 44.6%). Isolated dwellings are equally represented by both armchairs (20.9%) and sofa (20.7%). Village is slightly more represented by armchairs (10%) than sofas (6.5%). Other shows greater representation by sofas (28.3%) than armchairs (22.7%).

Code
as.data.table(round(prop.table(place_type_tbl, margin = 2), 3)) |>
  dcast(place_type ~ category, value.var = "N") |>
  flextable() |>
  align_nottext_col(align = "center") |>
  set_header_labels(values = c("Place Type", "Armchairs", "Sofas"))
Table 2: Place type proportions by product category

Place Type

Armchairs

Sofas

Hamlet

0.464

0.446

Isolated Dwelling

0.209

0.207

Other

0.227

0.283

Village

0.100

0.065

We found no evidence that product category is associated with place type, \(\chi^2(3) = 1.365, p = .714, V = .08\). That is, category was not a useful predictor of place type in this sample. The problem is that the chi-square test assumes that the observations are independent. This assumption is not fully met, because products with several associated places contribute multiple rows, so the results should be read as indicative.

Overall, it has been shown that armchair prices are more variable than sofa prices across countries, and that there is little evidence of an association between product category and the distribution of associated place types.