-1

I am getting the mean, max and min of a column a by factors b

tapply(df$a,df$b,summary)

However, I want to have the numbers in Scientific format. e.g. 4.42e+03

How can I do it?

maximusyoda
  • 595
  • 3
  • 8
  • 17

1 Answers1

0
format(tapply(mtcars$mpg,mtcars$cyl,summary),scientific=TRUE)
keegan
  • 2,892
  • 1
  • 17
  • 20