Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR R

convert boolean to int R

# Convert boolean to integer
as.integer(TRUE)    # return 1
as.integer(FALSE)   # return 0
 
PREVIOUS NEXT
Tagged: #convert #boolean #int #R
ADD COMMENT
Topic
Name
3+2 =