Find_Replace_in_Question: Find and replace text in a batch of questions

Find_Replace_in_QuestionR Documentation

Find and replace text in a batch of questions

Description

This allows you to batch find and replace text that is in an unlimited number of questions

Usage

Find_Replace_in_Question(Questions, Find_Text, Replace_Text, Fixed = TRUE)

Arguments

Questions

data.table specifying the qid and target language (if you are looking/replacing for a different language than the base language)

Find_Text

string of what the find

Replace_Text

string of what to replace

Fixed

this gets passed on to gsub- if it's TRUE (the default) then it will search for the exact string you enter. If it is FALSE, then you can use regex.

Examples

## Not run: 
Find_Replace_in_Question(data.table(qid = 123435, language = "en"), Find_Text = "Hello", Replace_Text = "Goodbye")

## End(Not run)


bpresentati/surveyR documentation built on March 19, 2022, 3:40 a.m.