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

Popular posts from this blog

c# - Better 64-bit byte array hash -

webrtc - Which ICE candidate am I using and why? -

php - Zend Framework / Skeleton-Application / Composer install issue -