-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
  • 575
  • 3
  • 6
  • 17

1 Answers1

0
format(tapply(mtcars$mpg,mtcars$cyl,summary),scientific=TRUE)
keegan
  • 2,692
  • 14
  • 18