options(...)
digits -- controls the number of digits when printing numeric values.
> school.relfreq
school
A B C D E F G
0.18518519 0.11111111 0.11111111 0.18518519 0.12962963 0.07407407 0.12962963
H
0.07407407
> old <- options(digits = 1)
> school.relfreq
school
A B C D E F G H
0.19 0.11 0.11 0.19 0.13 0.07 0.13 0.07
> options(old)
> school.relfreq
school
A B C D E F G
0.18518519 0.11111111 0.11111111 0.18518519 0.12962963 0.07407407 0.12962963
H
0.07407407
ATTENTION: old settings must be saved and gave back after calculation!