There is a csv data file that is populated with lots of raw data as follows:
data.frame( id=1:4, data=c( "it a programming language", "this data is JUNK", "refer www.google.com", "check for more information") )
I need to process this data and check the ALL CAPS sequence for each row and populate a new column with a 0/1 entry.
The output file is as follows:
id data all_caps 1 it a programming language 0 2 this data is JUNK 1 3 refer www.google.com 0 4 check for more information 0
How to achieve this with R? I searched for this for a while, unable to find any fruitful results for processing each row.
source share