Element-wise division of two matrices stored as lists in a tibble
0
1
I'm trying to bootstrap the element-wise ratio of two matrices using modelr:bootstrap. After running my models I obtain the following object, where "pred" and "pred_null" are two 10x10 matrices obtained at each resampling. What I want to do is two create a new columns that stores the element wise divison of pred/pred_null. If I simply try mutate(pred/pred_null) in the pipe I get the following error message: Error in mutate_impl(.data, dots) : Evaluation error: non-numeric argument to binary operator. strap boot_id pred pred_null <list> <chr> <list> <list> 1 <S3: resample> 1 <dbl [10 × 10]> <dbl [10 × 10]> 2 <S3: resample> 2 <dbl [10 × 10]> <dbl [10 × 10]>