Hello,
When we input dataframe from R, header = TRUE & hearder = FALSE is frequently used.
The meaning is below.
header = TRUE
Row] Fill in the data with first row as variables.
header = FALSE
행] Fill in the data without first row as variables, and first raw will be data.
It's pretty simply, right?
After use the "header = FALSE", we can fill in variable names by default.
colnames(dataset) <- c("variable1","variable2","variable3","variable4","variable5")
# From first column and row, variable names from 1 to 5 will be filled in.
End with insignificant kwowledge.
'R > R_Usage [Eng.]' 카테고리의 다른 글
Heatmap visualization in Rstudio _ high resoultion figure (0) | 2022.11.08 |
---|---|
ANOSIM, Statistical analysis with Rstudio (0) | 2022.11.07 |
Rstudio_ working directory default setting (0) | 2022.11.07 |
Microbiome beta-diversity 3D plot in R (mds, pcoa) (0) | 2022.11.03 |
Computer Task Automation with R program. "KeyboardSimulator" (0) | 2022.11.02 |