Search results

  1. T

    Adding a new column in R data frame with values conditional on another column

    I tried this code and it returned an error : "Unknown or uninitialised column:". I had to make the column first to fix this error. In my case, I created a column named "Hour" and assigning the expected values first. Then follow through Solution 1 and append these values accordingly to what's in...