How to create multiple dummy variables without having to it manually for each catergory.

Welcome to the community. To me it is not clear what exactly you want. Would you please tell me about your country dataframe (how many rows, columns, column names etc.) and expected output ? You can come up with some small example (reproducible example [Video] Reproducible Examples and the `reprex` package)to show what you want. sincerely,