You can either convert a data frame into a transaction data type or read the data source as transactions.
1. Read from data source directly
read.transactions("C:\\Users\\xxxxxx\\Downloads\\Diabetes.csv",sep = ",")
2. Convert to a transaction
df_transaction = as(df_variable,"transactions")