Report question

Question: Using gsub to extract character string before white space in R