I’m trying to write code to do the following, I’m completely new to Julia and coding in general so really struggling.
I have a data frame of columns and rows, I need to add a new column (EVID) to the df and conditionally fill based on the values in a different column (AMT). The conditional rule is “if AMT is missing then EVID is equal to 0. If AMT is not missing then EVID is equal to 1”
I think what I’m stumbling on is doing two things at once, i.e. inserting a new column (EVID) and then conditionally filling it based on the contents of a different column.