one of a kind scene

[R] 데이터 프레임 조회 1 - df[[col1]], df[col1], df$col1 본문

R

[R] 데이터 프레임 조회 1 - df[[col1]], df[col1], df$col1

specialscene 2020. 1. 10. 01:07

① df[col1] 과 df$col1 : col1의 value들만 조회

df[col1] 과 df$col1

② df[[col1]] : col과 행이 모두 조회됨

df[[col1]]