Error in levels for seqdef in R
问题 I've seen this error everytime I try to run seqdef on my data that has already been converted to STS format using seqformat. A sample of my dataframe looks like head(df.new, 10) user_id orderdate cart to 1 8 1 produce 30 2 8 31 produce 60 3 8 61 produce 70 4 8 71 produce 92 5 10 1 produce 30 6 10 31 produce 42 7 10 43 meat seafood 56 8 10 57 deli 77 9 17 1 beverages 3 10 17 4 beverages 8 It has a total of 14000 rows of orders and there are some orders which occur on the same day for each user