Exploring regular expression functions.
You have a vector of ten facts about your boss saved as a vector called text. In order to create a new ice-breaker for your team at work, you need to remove the name of your boss, John, from each fact that you have written down. This can easily be done using regular expressions (as well as other search/replace functions). Use regular expressions to correctly replace "John" from the facts you have written about him.
แบบฝึกหัดนี้เป็นส่วนหนึ่งของหลักสูตร
Introduction to Natural Language Processing in R
แบบฝึกหัดเชิงโต้ตอบแบบลงมือทำ
ลองทำแบบฝึกหัดนี้โดยเติมโค้ดตัวอย่างนี้ให้สมบูรณ์
# Print off the text for every time you used your boss's name, John
___(___, x = text, value = ___)