[R] Superscripts and rounding

ehux emily.huxter at ec.gc.ca
Tue Jul 28 23:48:24 CEST 2009


I receive the error message below - but i agree with you it should work?????
In fact i don't care if it rounds it can just cut the number at 4 decimal
places.

Error: unexpected symbol in:
"  sub = sprintf('Seasonal station with natural streamflow - Lat: %s Lon: %s
Gross Area %s km\UB2 - Effective Area %s km\UB2,
+ round( [['metadata"
> + round( [['metadata']][['longitude']], digits = 4),
Error: unexpected '[[' in "+ round( [["
> + round( [['metadata']][['grossarea']], digits = 4),
Error: unexpected '[[' in "+ round( [["
> + round( [['metadata']][['effectivearea']] digits = 4),
Error: unexpected '[[' in "+ round( [["
> + )
Error: unexpected ')' in "+ )"
> ,
Error: unexpected ',' in ","
>   cex.sub = 1, font.sub = 3, col.sub = "black"
Error: unexpected ',' in "  cex.sub = 1,"
>   ))
Error: unexpected ')' in "  )"

-- 
View this message in context: http://www.nabble.com/Superscripts-and-rounding-tp24682319p24708484.html
Sent from the R help mailing list archive at Nabble.com.




More information about the R-help mailing list