[R] Superscripts and rounding

Polwart Calum (County Durham and Darlington NHS Foundation Trust) calum.polwart at nhs.net
Thu Jul 30 22:27:03 CEST 2009


Duh! did it again! the variables need str in front of them don't they!!

sub = sprintf('Seasonal station with natural streamflow - Lat: %s Lon: %s
Gross Area %s km\UB2 - Effective Area %s km\UB2 ',
round( str[['metadata']][['latitude']], digits=4 ),
round( str[['metadata']][['longitude']], digits = 4),
round( str[['metadata']][['grossarea']], digits = 4),
round( str[['metadata']][['effectivearea']], digits = 4))


Let me know if that works.

********************************************************************************************************************

This message may contain confidential information. If yo...{{dropped:21}}




More information about the R-help mailing list