The support and confidence terms are used in implementing Market basket analysis. These helps in identifying the joint purchasing and associations between products.
Support represents the popularity of that product of all the product transactions. Support of the product is calculated as the ratio of the number of transactions includes that product and the total number of transactions.
Support of the product = (Number of transactions includes that product)/ (Total number of transactions)
Confidence can be interpreted as the likelihood of purchasing both the products A and B. Confidence is calculated as the number of transactions that include both A and B divided by the number of transactions includes only product A.
Confidence (A=>B) = (Number of transactions includes both A and B)/ (Number of transactions includes only product A)
If you wish to learn Data mining and predictive analytics using R, I suggest these Data Scientist by Intellipaat.
Also, watch this video on Data Mining: