This is not a super-standard format, but here you can convert your data. First, I would use stringsAsFactors=F with your read.table to make sure everything is a character variable, not a factor. Alternatively, you can do as.character() in these columns.
First I separate the values ββin sums with a comma, then I combine the values ββwith a column of names
md <- do.call(rbind, Map(cbind, test.frame$name, strsplit(test.frame$amounts, ",")))
Then I insert everything back and send it to read.table to convert the variable
read.table(text=apply(md,1,paste, collapse="\t"), sep="\t", col.names=names(test.frame))
Alternatively, you can simply make data.frame from the md matrix and do the class conversions yourself
data.frame(names=md[,1], amount=as.numeric(md[,2]))
source share