Re: [R] Table with different digit number

2010-09-29 Thread Nicola Sturaro Sommacal (Quantide srl)
Thank you very much for your solution but it works only in a dataframe object. If I am using an ftable object, it doesn't run. I use, as a workaround, to fill with blank spaces the left of each number, so when I print the table, it appears aligned to right. But, obviously, this doesn't work for

[R] Table with different digit number

2010-09-28 Thread Nicola Sturaro Sommacal (Quantide srl)
Hi! I have a table representing both absolute and relative frequency, for example (code to get example data under the signature): ItalyGermany absolute100 105 relative 40.51 41.18 How can I print a different number of decimal digits? I try to

Re: [R] Table with different digit number

2010-09-28 Thread Gabriela Cendoya
Try round(df,2) for two decimal digits Gabriela 2010/9/28, Nicola Sturaro Sommacal (Quantide srl) mailingl...@sturaro.net: Hi! I have a table representing both absolute and relative frequency, for example (code to get example data under the signature): ItalyGermany

Re: [R] Table with different digit number

2010-09-28 Thread Henrique Dallazuanna
Try this: df[1,] - as.character(df[1,]) On Tue, Sep 28, 2010 at 8:48 AM, Nicola Sturaro Sommacal (Quantide srl) mailingl...@sturaro.net wrote: Hi! I have a table representing both absolute and relative frequency, for example (code to get example data under the signature):