answer to your second question:
> paste("$", format(1234567.77, big.mark=','), sep='')
[1] "$1,234,568"
>
you will have to go through each column you want and explicitly do it:
> x
Region Population Income Illiteracy Life ExpMurder HS
GradFrost Area
1 Northeast 549
You have to explicitly ask that they not be printed:
> x <- aggregate(state.x77, list(Region = state.region), mean)
> x
Region Population Income Illiteracy Life ExpMurder HS
GradFrost Area
1 Northeast 5495.111 4570.222 1.00 71.26444 4.72 53.96667
132.7778
Hi,
1) I have noticed that when I use the aggregate function it outputs numbers
in the results. for example:
aggregate by product
group.1 Aggregate
1ProductA 1000400.00
2ProductB 23232323.00
3Missing 232323.00
is there a way to suppress the numbers infront of ag
3 matches
Mail list logo