Quantcast
Channel: Active questions tagged r - Stack Overflow
Viewing all articles
Browse latest Browse all 201839

Extract title from multiple lines

$
0
0

I have multiple files each one has a different title, I want to extract the title name from each file. Here is an example of one file

[1] "<START""ID=\"CMP-001\"""NO=\"1\">"                         
[4] "<NAME>Plasma-derived""vaccine""(PDV)"                             
[7] "versus""placebo""by"                                
[10] "intramuscular""route</NAME>""<DIC"                     
[13] "CHI2=\"3.6385\"""CI_END=\"0.6042\"""CI_START=\"0.3425\""   
[16] "CI_STUDY=\"95\"""CI_TOTAL=\"95\"""DF=\"3.0\""                        
[19] "TOTAL_1=\"0.6648\"""TOTAL_2=\"0.50487622\"""BLE=\"YES\"" 
.
.
.
 [789] "TOTAL_2=\"39\"""WEIGHT=\"300.0\"""Z=\"1.5443\">"    
 [792] "<NAME>Local""adverse""events" 
 [795] "after""each""injection"
 [798] "of""vaccine</NAME>""<GROUP_LABEL_1>PDV</GROUP_LABEL_1>"
 [801] "</GROUP_LABEL_2>""<GRAPH_LABEL_1>""PDV</GRAPH_LABEL_1>"

the extracted expected title is

Plasma-derived vaccine (PDV) versus placebo by intramuscular route

Note, each file has a different title's length.


Viewing all articles
Browse latest Browse all 201839

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>