sales<-read.csv("Y:/Documents/STAT/attachments/RestaurantSales.txt",header=T)
attach(sales)
Time<-as.numeric
fMonth<-as.factor
model1<-lm(Sales~Time+I(Time^2)+I(Time^3)+I(Time^4)+fMonth);summary(model1)
Error in Time^2 : non-numeric argument to binary operator
Please help me get rid of the error in the last line