How to remove from a series of list the same column

mały_statystyczny

My apologise for the banality of the question.

I have a series of list elemnts - all embedded within the same object - where I would like to remove always the same object:

>[13]>
$P3FCz
# A tibble: 5 x 9
  model effect   group    term            estimate std.error statistic           df p.value
  <chr> <chr>    <chr>    <chr>              <dbl>     <dbl>     <dbl>        <dbl>   <dbl>
1 1     fixed    NA       (Intercept)      -1.59       0.898   -1.77    0.000000154    1.00
2 1     fixed    NA       CONDNEG-NOC       0.196      1.27     0.155   0.000000154    1.00
3 1     fixed    NA       CONDNEU-NOC       0.113      1.27     0.0890  0.000000154    1.00
4 1     ran_pars COND     sd__(Intercept)   0.0822    NA       NA      NA             NA   
5 1     ran_pars Residual sd__Observation   4.47      NA       NA      NA             NA   

$P3Cz
# A tibble: 5 x 9
  model effect   group    term            estimate std.error statistic    df p.value
  <chr> <chr>    <chr>    <chr>              <dbl>     <dbl>     <dbl> <dbl>   <dbl>
1 10    fixed    NA       (Intercept)       1.12       0.739    1.52    72.0   0.132
2 10    fixed    NA       CONDNEG-NOC       0.372      1.04     0.356   72.0   0.723
3 10    fixed    NA       CONDNEU-NOC      -0.0441     1.04    -0.0422  72.0   0.966
4 10    ran_pars COND     sd__(Intercept)   0.190     NA       NA       NA    NA    
5 10    ran_pars Residual sd__Observation   3.57      NA       NA       NA    NA

... and so on for other 12 elemnts

whose the column I would like to get rid of, is model. Is there anyone who could suggest how to delete it from this object list, which I've created through this command lines:

models_list <- out_long %>%
  group_by(signals) %>%
  do(fit = lmerTest::lmer(value ~ COND + (1|COND), data = .)) 

statistics <- purrr::map_dfr(models_list$fit, broom.mixed::tidy, .id = "model") %>% 
  group_split(model) %>%  
  setNames(sort(unique(out_long$signals))) 

Thanks in advance for your support

Onyambu

set the parameter .keep to FALSE as shown below:

purrr::map_dfr(models_list$fit, broom.mixed::tidy, .id = "model") %>% 
  group_split(model, .keep = FALSE) %>%  
  setNames(sort(unique(out_long$signals))) 

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

How to remove same list from matrix by python

How to remove empty list from column?

How to append values from series with the same length into an array in a Dataframe column?

How to remove NaN from a Pandas Series where the dtype is a list?

How to remove element from list while iterating the same list in golang

How to remove the empty list in the Series, and at the same time change the non-empty list into a string form?

How to update a column from another column in the same table in a list of rows?

How to remove same word from another column in ms-excel?

Remove words from a dataframe column in a series

How do I remove a value from a list, and remove a value in the same position from another list

How to remove duplicates with the same 'title' field from object list in Python?

How do I remove the same row from a multidime list

How to check and remove '/' and '-' from a list of words at the same time

How to remove multiple object from the list at the same time

How to remove the value from the array and the list at the same time?

How to remove same entry from list after print in python

How do I iterate and remove elements from a list at the same time?

Remove whitespace from list of strings in a pandas series

Spark 2.2.0: How to remove Specific Duplicates from a Dataset of a list column

How to remove strings present in a list from a column in pandas

how to remove duplicate from a list of a column in a dataframe in python

How to remove specific strings from a list in pyspark dataframe column

How to remove NAs from a certain column in data frames in a list?

How to How to take one element from list, compare it with another from the same series?

How to check if elements from each list in a column of liste are all the same?

change value of column from list to pandas series

How to remove items from a list on the SAME INDEX of duplicates i removed from another list

How to make a new column containing a time series from numerical values in other columns in the same row

Remove the same character from strings in column