Re: [R] Help with format()

2011-08-19 Thread David Winsemius
On Aug 19, 2011, at 10:23 AM, Michael Karol wrote: R Users: Can anyone please help me with the following: I'm unclear as to how to get format to do what I want. I've tried the following and get unexpected results. Input. val<-321.6 format(val, digits=1) format(val, digits=2) format(va

[R] Help with format()

2011-08-19 Thread Michael Karol
R Users: Can anyone please help me with the following: I'm unclear as to how to get format to do what I want. I've tried the following and get unexpected results. Input. val<-321.6 format(val, digits=1) format(val, digits=2) format(val, digits=3) format(val, digits=4) format(val, digi