I have a dataframe where I want to create a new column based on values of two other columns. Dummy dataframe

```
freqg <- data.frame(mat=c(1,2),flank=c(1,2,3,4))

```

This seems rather simple 

```
freqg$condition[freqg$mat==1 & freqg$flank==1] <- "LK"
freqg$condition[freqg$mat==1 & freqg$flank==2] <- "FQ"

```

but the combinations of the values in two columns are large and I also need to replicate this for many other dataframes. Can the combinations can be customized encoded in single line of code?