In the R cli I am able to do the following on a character column in a data frame:
> data.frame$column.name [data.frame$column.name == \"true\"] <- 1 &g
@chappers solution (in the comments) works as.integer(as.logical(data.frame$column.name))
as.integer(as.logical(data.frame$column.name))