How to control number of decimal digits in write.table() output?
问题 When working with data (e.g., in data.frame) the user can control displaying digits by using options(digits=3) and listing the data.frame like this. ttf.all When the user needs to paste the data in Excell like this write.table(ttf.all, 'clipboard', sep='\t',row.names=F) The digits parameter is ignored and numbers are not rounded. See nice output > ttf.all year V1.x.x V1.y.x ratio1 V1.x.y V1.y.y ratioR V1.x.x V1.y.x ratioAL V1.x.y V1.y.y ratioRL 1 2006 227 645 35.2 67 645 10.4 150 645 23.3 53