How To Create A Dataframe In R With Different Number Of Rows In A Matrix