How can I vectorize this code in R?
data <- data.frame(A = rep(5, 5), B = rep(0, 5))
data$abstract <- c("no abstract available", "A", "A", "B", "no abstract available")
for (row in (1:nrow(data))){
data [row,"abstract"] <- gsub("no abstract available"," ",data[row,"abstract"])
}