Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
R とグリッド パッケージで、ユニットのユニット タイプを抽出する方法はありますか?
例えば:
x <- unit(1,'inches')
次の機能はありますか:
unittype(x) # returns 'inches'
(確かにあると思いますが、それは何ですか?)
乾杯。
私は使用する傾向がありますattr(x,"unit")が、これにもっと簡単な機能があるかどうかは正直わかりません。
attr(x,"unit")