Hmisc describe output
Similar to the psych package, the Hmisc package creates customized output. The str() function will show the customized class type as well as the names of the elements stored within the Hmisc::describe() list output.
Since the output is a list, the $ selector operator can be used to extract specific elements from the Hmisc::describe() output object.
The abaloneKeep dataset, dplyr and Hmisc packages have been loaded for you.
Latihan ini adalah bagian dari kursus
R For SAS Users
Petunjuk latihan
- Save the output as
abhmiscfromHmisc::describe()for abalone whole weight, shucked weight, and shell weight. - Display the structure of
abhmisc. - Display the
shuckedWeightelement from theabhmiscoutput object. - Display the
extremeselement from theshuckedWeightelement from theabhmiscoutput object.
Latihan interaktif praktis
Cobalah latihan ini dengan menyelesaikan kode contoh berikut.
# Save output from Hmisc::describe(), view class of output
abhmisc <- ___ %>%
___ %>%
___
# Get structure of abhmisc
___
# View shuckedWeight statistics from abhmisc
___
# View shuckedWeight extremes from abhmisc
___