Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9142035
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T09:43:27+00:00 2026-06-17T09:43:27+00:00

I have a very huge dataframe (about 700 columns and 4,00,000 rows). Example as

  • 0

I have a very huge dataframe (about 700 columns and 4,00,000 rows). Example as follows:

           "samp1"             "samp2"              "samp3"
"ct1"   3.45909539741409    4.16162745114877    4.28378657903742
"ct2"   2.45516883029741    2.64529479763739    2.62023669114738
"ct3"   -1.53506396613939   -1.53318358856732   -1.2235498333358
"ct4"   2.54561049516449    1.91067140586626    2.6860636959124
"ct5"   1.08270893850391    0.847112473835081   0.90241673852809
"ct6"   -1.49057768051391   -1.09321836721649   -1.11635564230449
"ct7"   -0.82888593769947   -0.533641693674542  -0.339345700770896

All the columns contain log2 values in every numeric cell (lets say “a”) and i wish to convert them all to normal values (lets say “b”), with the following formula:

b = 2^a / [(2^a) + 1]

So my resulting file should be like the above, but with all the converted values of b, instead of a.

Can anyone help me with this ?
Thanks in advance.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T09:43:28+00:00Added an answer on June 17, 2026 at 9:43 am

    Create some data

    a <- matrix(runif(21), ncol=3,
                dimnames=list(paste0("ct", 1:7), paste0("samp", 1:3)))
    
    a
             samp1     samp2      samp3
    ct1 0.36856468 0.1969006 0.21410103
    ct2 0.80894310 0.4402108 0.96686681
    ct3 0.52169299 0.1410873 0.35899306
    ct4 0.75243588 0.5432110 0.85099247
    ct5 0.77734048 0.5657070 0.33521023
    ct6 0.73011232 0.1539275 0.08615577
    ct7 0.08505216 0.4905622 0.13415698
    

    Transform:

    b <- 2^a / ((2^a) + 1)
    
    b
            samp1     samp2     samp3
    ct1 0.5635223 0.5340674 0.5370329
    ct2 0.6366183 0.5756963 0.6615437
    ct3 0.5894301 0.5244291 0.5618897
    ct4 0.6275099 0.5930347 0.6433337
    ct5 0.6315359 0.5967925 0.5578276
    ct6 0.6238860 0.5266483 0.5149252
    ct7 0.5147341 0.5841982 0.5232309
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a very huge amount of images (about 20K) that I don't want
I have a very huge WAV file, about 100MB in size. I would like
I have a very huge file in which I need to obtain every nth
I have very simple OpenGL ES example similar to Hehe's example : http://nehe.gamedev.net/tutorial/ios_lesson_02__first_triangle/50001/ As
I have this very huge XML file of size 2.8GB. This is Polish Wikipedia's
I have a file containing a very very huge matrix, size in millions x
I have been very excited about MongoDb and have been testing it lately. I
I have an very, very huge application in WPF with a Ribbon in it.
I have very huge solr index. I want to tag all documents with terms
I have a program that takes a very huge input file and makes a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.