strsplit and lapply
===

I have a string in a text that has the following form:
"12,34,77", with the quotation marks.

I need to get the values of each of those numeric data in a list, so I used lapply and strsplit in the following form:


control2=lapply(strsplit(data$values,","),as.numeric)

but I get the error: "non character argument"

what am I doing wrong?
Thanks

