Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR R

convert ratio to numeric in r

sapply(strsplit(ratio, ":"), function(x) as.numeric(x[1])/as.numeric(x[2]))
#[1] 0.4925373 0.5873016 0.7241379 0.8181818 0.8518519
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #convert #ratio #numeric
ADD COMMENT
Topic
Name
9+4 =