title: R: Text separation into new columns ie mutate in R
body: <p>I have a very large dataset (189k) with &gt;250 variables where the variables have been inserted using web-based tick boxes. Some variables have then been combined into single lines such as medical comorbidities:</p>
  <p>Chronic Pulmonary Disease|Congestive Cardiac Failure|Hypertension|Diabetes|Obesity (BMI&gt;35)|Ischaemic Heart Disease</p>
  <p>This variable has ~1500 combinations of medical conditions like the above line. I want to mutate into separate columns for example Col 1: Hypertension (Yes/No), Col 2: Diabetes (Yes/No) ... so that the presence or absence of a pre-existing condition can be used as predictive variables.</p>
  <p>Is there a way to code this in R?</p>