Apply a function across multiple columns with the across function