Hi everyone:
It is probably something simple but I can't find anything related to this. 
Could someone show me how to format the sum of x. the result is 10000 but I 
need comma formatted like this: 10,000. Since I am going to be using this 
number to be added to another calculation, I want to be able to remove the 
comma from the 10,000 value. Thanks

x <- c(2000,3000,5000)
this is the sum of x: \Sexpr{sum(x)}

Felipe D. Carrillo  
Supervisory Fishery Biologist  
Department of the Interior  
US Fish & Wildlife Service  
California, USA

______________________________________________
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.

Reply via email to