get list of distinct values for each column

PHOTO EMBED

Fri Jun 30 2023 20:35:32 GMT+0000 (Coordinated Universal Time)

Saved by @vs #r

distinct_values <- lapply(df, unique)
content_copyCOPY