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. ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.