data <- iris # 使用R 內建的資料。 > data$Sepal.Length <- ifelse(data$Sepal.Length > 5, 1,2) # Sepal.Length 如果大於5 會變成1,不會就會變成2 > data$Species ...
確定! 回上一頁