def df_to_vars(data):
    """Extract data from dataframe into separate variables"""
    RA = data.A.values
    DA = data.DA.values
    RB = data.B.values
    DB = data.DB.values
    R = data.R.values
    return (RA, DA, RB, DB, R)