[R] [External] how to do inverse log of every value in every column in data frame

Richard M. Heiberger rmh @end|ng |rom temp|e@edu
Thu Oct 14 19:16:41 CEST 2021


> tmp <- data.frame(a=1:3,b=4:6)
> exp(tmp)
          a         b
1  2.718282  54.59815
2  7.389056 148.41316
3 20.085537 403.42879
> 2.718281828^tmp
          a         b
1  2.718282  54.59815
2  7.389056 148.41316
3 20.085537 403.42879


> On Oct 14, 2021, at 13:10, Ana Marija <sokovic.anamarija using gmail.com> wrote:
> 
>> 2.718281828^



More information about the R-help mailing list