An example of the "Examination.Text"
> head(SF$"Examination.Text")
[1] "Boarding 22_12_2017 - 30_12_2017. Tail can get sore. Own bed."
[4] "Reason: Follow Up History: see previous re lame left hind walking well on hind leg now Examination: joint filling and swelling soft tissue left hock much reduced still significant boney changes both hocks and carpi Assessment: djd consider cartilage modifyers Plan: zydax 0.15 ml scut continue c metacam sid 3 days then stop see weekly x 4 inj"
Some words I would include are "lame" | "fracture" | "joint" etc. To determine which clinic visits are associated with the disease presentation I'm interested in i.e. "affected".
I've tried creating words<-list["lame","fracture"] but no luck. I'm also trying to use or symbol as only one word needs to be found in the examination text to classify as "affected"
> words<-list["lame","fracture"]
Error in list["lame", "fracture"] :
object of type 'builtin' is not subsettable