How can I tidy up the following data frame
data.frame(a = c(1,2), values = c("[1.1, 1.2, 1.3]", "[2.1, 2.2]"))
a values
1 [1.1, 1.2, 1.3]
2 [2.1, 2.2]
The result should be
data.frame(a = c(1,1,1,2,2), values = c(1.1, 1.2, 1.3, 2.1, 2.2))
a values
1 1.1
1 1.2
1 1.3
2 2.1
2 2.2