获取和清理数据
任务
setwd("/Users/pkasu/getdata/UCI HAR 数据集") features = read.table('./features.txt',header=FALSE); activityType = read.table('./activity_labels.txt',header=FALSE); subjectTrain = read.table('./train/subject_train.txt',header=FALSE); xTrain = read.table('./train/x_train.txt',header=FALSE);
yTrain = read.table('./train/y_train.txt',header=FALSE); colnames(activityType) = c('activityId','act
评论0
最新资源