How can I sum vectors nested in a column of a data frame?
问题 I have a data frame where one column contains a list. I want to convert the list to numeric and sum the values into a new column. Each row has a column with a vector like this: c("47", "39", "1") The new column would contain the sum of those numbers and would look like this: List SumList c("47", "39", "1") 87 c("11", "11") 22 c("1", "2") 3 I have tried a couple different approaches, but nothing seems to produce the outcome I need. Example data frame: DF <- structure(list(list = structure(list