Warning: package 'ggplot2' was built under R version 4.5.3
library(dplyr)
Attaching package: 'dplyr'
The following objects are masked from 'package:stats':
filter, lag
The following objects are masked from 'package:base':
intersect, setdiff, setequal, union
library(readr)library(maps)
Warning: package 'maps' was built under R version 4.5.3
ggplot2 → Visualization dplyr → Data manipulation readr → Data loading maps → Optional visualization
Dataset
Retail transaction dataset Quantity → Number of items Unit Price → Price per item Country → Customer location
Load Dataset
df <-read_csv("data.csv") # CHANGE THIS FILE NAME
Rows: 541909 Columns: 8
── Column specification ────────────────────────────────────────────────────────
Delimiter: ","
chr (5): InvoiceNo, StockCode, Description, InvoiceDate, Country
dbl (3): Quantity, UnitPrice, CustomerID
ℹ Use `spec()` to retrieve the full column specification for this data.
ℹ Specify the column types or set `show_col_types = FALSE` to quiet this message.