If you don't want to hardcode your ROC calculations then the 'pROC' package might be a good place to start. They have some example code on their website https://web.expasy.org/pROC/, and on the development GitHub https://github.com/xrobin/pROC.
From: UF R Users List <[log in to unmask]> On Behalf Of Kerrigan, Maria R
Sent: Thursday, April 5, 2018 3:02 PM
To: [log in to unmask]
Subject: ROC analysis
Hi UF R community!
I use R studio and am trying to run some ROC curves. Does anyone have any useful resources for designing/running ROC in R Studio from an imported dataset?
This list strives to be beginner friendly. However, we still ask that you
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.