Open AMCalejandro opened 2 years ago
result_list = result_list[!unlist(purrr::map(result_list, is.null))]
$BLUEPRINT_monocyte A tibble: 0 x 20 … with 20 variables: molecular_trait_id , chromosome , position , ref , alt , variant , ma_samples , maf , pvalue , beta , se , type , ac , an , r2 , molecular_trait_object_id , gene_id , median_tpm , id , row_count is.null(result_list$BLUEPRINT_monocyte) [1] FALSE
is.null method does not work to check empty data tibbles
result_list = result_list[!unlist(purrr::map(result_list, is.null))]
$BLUEPRINT_monocyte A tibble: 0 x 20 … with 20 variables: molecular_trait_id, chromosome ,
position , ref , alt , variant , ma_samples ,
maf , pvalue , beta , se , type , ac ,
an , r2 , molecular_trait_object_id , gene_id ,
median_tpm , id , row_count
is.null(result_list$BLUEPRINT_monocyte)
[1] FALSE