在R,尋找一個功能中另一行的值計算一行值(完全串)的發生 例如:數據表DFř計數行字符串值的出現在另一行字符串
df$SerachingFor df$Target df$SearchTermOccurrencesInTarget (required field)
Machine rowing machine rowing has two values 1
handy tools handy tools, we have many handy tools 2
plans home plans, garden plans, DIY plans 3
hospital home ideas 0
感謝您的時間
喔,好像有人不喜歡我的問題,但在stri_count_regex下面的答案試圖爲錯誤(字符串,圖案,opts_regex =屬性(模式得到一個錯誤,:在正規表達式模式 語法錯誤( U_REGEX_RULE_SYNTAX) – prav