Continuation Line error in R -
this feels simple question, can't find answer anywhere i've searched. i'm new r , when try break code across several lines ctrl+shift+enter, don't '+' should start line in console, , error message when try run it. sample code is:
for (j in 1:length(codes)) { currcountry <- subset(currregion, country.code == codes[j]) currcountry <- currcountry[order(currcountry$variable, decreasing=false),] lines(1960:2009, currcountry$value, col="#00200070", lwd=0.8) }
i following error: error: unexpected input in "for (j in 1:length(codes)) {‚"
if copy same code online tutorial i'm doing, works fine, each line starts '+'. can this?
Comments
Post a Comment