A function to add columns with names that has a prefix
Hi community,
I want to write a function to add columns that have names that has a given prefix, and give values to the columns based on given conditions. This is the script that I have, but it errors out "Unresolved Column". I double checked everything and don't know where went wrong...
Much appreciated for the help!
add_extra_columns = Function({dt, prefix},
{Default Local},
dt << New
...