I am trying to use purrr::pmap() to go through a list of .txt files that I will left merge with a data frame. To do this, I need to pick out the values needed from these files and put them in a data frame. So far I have made it up to isolating the value's but I am not sure how to get them into the data frame. I am trying to make one data frame with the provided data whose columns are separated by the "\t". Thank you kindly for all the help.
I am sure there is a much cleaner approach than I have so far, sorry for the clunky logic.
readr::read_lines('https://gitlab.com/Bryanrt-geophys/Thesis_GitHub/-/raw/Thesis/data/raw/slv/1_test_T2_V5_A18_3D/NS.SLV', skip_empty_rows = TRUE) %>% glue::trim() %>% stringr::str_trim() %>% stringi::stri_remove_empty() -> y # this may be unecessary if the first element can be assigned as the names of the two columns of the desired data frame y[-1] %>% str_split(pattern = "\\t")