How to extract particular values from a factor store as column value in dataframe
问题 I have a data frame with the following columns : df <- A B C heart_rate ['53.0', '1'] 94 heart_rate ['54.0', '2'] 1 heart_rate ['54.0', '1'] 9 heart_rate ['55.0', '0'] 1 heart_rate ['55.0', '1'] 7 How to read the df1 which just stores one value for cases where we have y= 1 for B[x,y].Which means : Output desired dataframe df1 df1 A B C heart_rate 53.0 94 heart_rate 54.0 9 heart_rate 55.0 7 structure(list(source = structure(c(1L, 1L, 1L), .Label = "heart_rate", class = "factor"), values =