I have the following code defined into four equations. Could I in some way simplify this, so that it will only be a oneliner? The code looks as follow:
New_df