split R in three parts