title: How to split dataframes into different dataframes based on one column name values that starts with some prefix?
body: <p>How to split dataframes into different dataframes based on one column name say ## sensor_name ## values that starts with some prefix like "RI_", "AI_" in R  so that I can have two dataframes one for RI and another for AI?</p>
  
  <p>I have tried the following code but this works well when I pivot my dataframe.</p>
  
  <blockquote>
    <p>map(set_names(c("RI", "AI","FI")),~select(temp_df,starts_with(.x),starts_with("time_stamp")))</p>
  </blockquote>
  
  <p><a href="https://i.stack.imgur.com/xr9rk.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/xr9rk.png" alt="original dataframe"></a> </p>
  
  <p>I expect the output to have two different dataframes,</p>
  
  <p>RI_df:</p>
  
  <p><a href="https://i.stack.imgur.com/kintb.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/kintb.png" alt="enter image description here"></a></p>
  
  <p>AI_df:</p>
  
  <p><a href="https://i.stack.imgur.com/Wr3Ro.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Wr3Ro.png" alt="enter image description here"></a></p>
  
  <p>It would be great if anyone help me with this since I just started to work on R programming language.</p>