我不斷收到此錯誤,但不能解決我的來源有什麼問題。錯誤來源:意想不到的符號
Error in source("/Users/oscarbaker/Documents/Dissertation/R/Moisture_Monthly.Rd") :
/Users/oscarbaker/Documents/Dissertation/R/Moisture_Monthly.Rd:41:1: unexpected symbol
40:
41: matplot
^
這是我的大部分來源:
Moisture_Names = c("DIM","MONTH","YEAR","Hour","Mins","DOY","TMN_2","TMN_5","TMN_10","TMN_30","TMN_50","TMN_65","TMS_2","TMS_5","TMS_10","TMS_20","TMS_40","TMS_60","TMW_2","TMW_5","TMW_10","TMW_20","TMW_40","TMW_60","TMW_80","TMW_100","TPN_8","TPN_20","TPN_40","TPN_65","CS616S_L8","CS616S_L20","CS616S_L40","CS616S_L68","CS616S_Q8","CS616S_Q20","CS616S_Q40","CS616S_Q68")
file2012 <- read.csv("/Users/oscarbaker/Documents/Dissertation/Datasets/Soil_Moisture_12.csv", header=T", sep=",", col.names=Moisture_Names)
file2013 <- read.csv("/Users/oscarbaker/Documents/Dissertation/Datasets/Soil_Moisture_13.csv", header="T", sep=",", col.names=Moisture_Names)
#Jan
matplot(Jan2012$DOY,Jan2012$TMN_2, type="l", lty="1", col="1", xlim=c(0,32), ylim=c(0,70), xlab="Day Number", ylab="Moisture Content")
points(Jan2012$DOY,Jan2012$TMN_5, type="l", lty="2", col="1")
必須有一個錯誤在那裏的地方,但我不能看到它
如果沒有看到源文件的第40和41行,這很難回答。 –
這很可能是由文件中的語法錯誤引起的(缺少關閉:圓括號,大括號,括號,引號等)。 –
第41行是#Jan – user3249039