The two functions CmToPts()
and PtsToCm()
convert centimeters to points and vice versa. 1 cm corresponds to 28.35 points.
The units as defined by the International System of Units (SI) (m, g, s, A, K, mol, cd, Hz, rad, sr, N, Pa, J, W, C, V, F, Ohm, S, Wb, T, H, lm, lx, Bq, Gy, Sv, kat, l) can be used to convert between different prefixes. The following non SI-units can be chosen for conversion between different systems. NA
will be returned if a conversion can't be found.
The function is using the conversion factors stored in the dataset d.units
.
|
|
Weight and mass |
|
|
Gram |
g |
metric |
Pound mass (avoirdupois) |
lb |
Ounce mass (avoirdupois) |
oz |
Metric ton |
ton (or tn) |
|
Distance |
|
Meter |
m |
metric |
Statute mile |
mi |
Nautical mile |
nmi |
Inch |
in |
Foot |
ft |
Yard |
yd |
Angstrom |
AA |
(accepted) metric |
Astronomical unit |
au |
|
|
|
|
Time |
|
Year |
a |
Day |
d |
Hour |
h |
Minute |
min |
Second |
s |
|
Pressure |
|
Pascal |
Pa |
Atmosphere |
atm |
mm of Mercury |
mmHg |
bar |
bar |
Pound-force per quare inch |
psi |
|
|
|
Energy |
|
Joule |
J |
metric |
IT calorie |
cal |
(accepted) metric |
Electron volt |
eV (or ev) |
|
|
|
|
Power |
|
Horsepower (mechanical) |
hp |
Horsepower (metric) |
HP |
Watt |
W (or w) |
metric |
|
|
|
Temperature |
|
Degree Celsius |
C |
Degree Fahrenheit |
F |
Kelvin |
K |
metric |
|
Liquid measure |
|
Fluid ounce |
fl oz |
Gallon |
gal |
Liter |
l (or lt) |
(accepted) metric |
|
|
Additional details can be found in the d.units
data.frame.