request for nested data frame

I request for the nested data frame to be able to store matrix in a column.

Following code will create a column "tensor" whose type of element is <list [3 x 3]> (not matrix).

To apply set of matrices the same operations, It will be easy to manupulate if nested data frame can store matrix. (And also map function to return matrix will be necessary.)

data <- data %>% 
         sxx, syx, szx, sxy, syy, szy, sxz, syz, szz)
data %>% 
  group_by(nodeid) %>% 
  nest(.key = "tensor") %>% 
  mutate(tensor = map(tensor, ~ matrix(., nrow = 3)))

This GitHub issue contains relevant discussion, I think:


This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.