Hmisc describe 출력
psych 패키지와 마찬가지로 Hmisc 패키지도 맞춤형 출력을 만들어 줍니다. str() 함수는 Hmisc::describe() 리스트 출력에 저장된 원소 이름과 함께 해당 맞춤형 클래스 유형을 보여줘요.
출력은 리스트이므로 $ 선택자 연산자를 사용해 Hmisc::describe() 출력 객체에서 특정 원소를 추출할 수 있어요.
abaloneKeep 데이터셋과 dplyr, Hmisc 패키지는 미리 로드되어 있어요.
이 연습은 강의의 일부입니다
SAS 사용자를 위한 R
연습 안내
- 전복의 whole weight, shucked weight, shell weight에 대해
Hmisc::describe()를 실행하고, 출력을abhmisc로 저장하세요. abhmisc의 구조를 표시하세요.abhmisc출력 객체에서shuckedWeight원소를 표시하세요.abhmisc출력 객체의shuckedWeight원소에서extremes원소를 표시하세요.
실습형 인터랙티브 연습
이 예제를 이 샘플 코드를 완성하여 풀어보세요.
# Save output from Hmisc::describe(), view class of output
abhmisc <- ___ %>%
___ %>%
___
# Get structure of abhmisc
___
# View shuckedWeight statistics from abhmisc
___
# View shuckedWeight extremes from abhmisc
___