Re: [R] Different decimal places in a matrix

2010-07-29 Thread Ted Harding
On 29-Jul-10 09:25:37, Ted Harding wrote: > On 29-Jul-10 09:08:22, Nicola Sturaro Sommacal wrote: >> Hi! >> I have a ftable object in which some row contains integers and >> some other contains a percentage that I would like to show with >> two digits after the dot. >> >> I tried something like >>

Re: [R] Different decimal places in a matrix

2010-07-29 Thread Ted Harding
On 29-Jul-10 09:08:22, Nicola Sturaro Sommacal wrote: > Hi! > I have a ftable object in which some row contains integers and > some other contains a percentage that I would like to show with > two digits after the dot. > > I tried something like > ftblP[index,] = as.character(round(ftblP[index,],2

[R] Different decimal places in a matrix

2010-07-29 Thread Nicola Sturaro Sommacal
Hi! I have a ftable object in which some row contains integers and some other contains a percentage that I would like to show with two digits after the dot. I tried something like ftblP[index,] = as.character(round(ftblP[index, ], 2)) where the index vector contains the number of the rows contain