ProductRevenue <- c(70,120,280,30,410) Months <- c("Mar","Apr","May","Jun","Jul") prodinfor <- data.frame(Months,ProductRevenue) prodinfor2. 檢視columnName
colnames(prodinfor)3. 檢視RowName
row.names(prodinfor)4. 修改一個欄位
colnames(prodinfor)[1] <- "M" colnames(prodinfor)5. 修改兩個欄位
colnames(prodinfor) <- c("Month" , "ProdRev") colnames(prodinfor)
沒有留言:
張貼留言