I have a list of 9 tibbles called CCLF_Details. Each Tibble is named CCLF1_Details-CCLF9_Details. I have columns "COLUMN_LABEL" and "COLUMN_WIDTH" in each tibble. I want to use those columns as parameters for read_fwf.
So far I've done
width <- lapply(CCLF_details, "[","COLUMN_WIDTH", drop = FALSE)
label <- lapply(CCLF_details, "[","COLUMN_WIDTH", drop = FALSE)
but when I run it through read_fwf, I get
"Error in fwf_widths(width) : (list) object cannot be coerced to type 'double'"
When inspecting "width", it states it is a list of tibbles with one column (and that column is numeric) instead of a list of numeric vectors.
How can I get the columns in a format that I can run the list as a parameter for a Map function?