hello, help me please, the function reshape does not work for me, i like format my data frame to matrix , the lines are the transactionid and the columns are the productid, here is my code
library(tidyverse)
library(readxl)
library(knitr)
library(ggplot2)
library(lubridate)
library(arules)
library(arulesViz)
library(plyr)
retail <- read_excel('retail.xlsx')
2 colums transactionid , productid
retail_mat_prep <- reshape(data = retail,
idvar = "transactionid",
timevar = "productid",
direction = "wide")
dim(retail_mat_prep)
thank you