Final version

Adding the conversion to a data.frame before the write.table instruction