Updated result in complete.R from matrix to dataframe.