-
-
Save rvndbalaji/6616a0d072653308848031ec123cc34f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
library(psych) | |
roomtrain = read.table('datatraining.txt',header = TRUE,sep = ',',stringsAsFactors = FALSE) | |
roomtest1= read.table('datatest.txt',header = TRUE,sep = ',',stringsAsFactors = FALSE) | |
roomtest2= read.table('datatest2.txt',header = TRUE,sep = ',',stringsAsFactors = FALSE) | |
#Combine all three | |
room = rbind(roomtrain,roomtest1,roomtest2) | |
#Remove date and convert occupancy to factor | |
room = room[-1] | |
room$Occupancy = factor(room$Occupancy) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment