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 8174041
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T22:20:58+00:00 2026-06-06T22:20:58+00:00

I have an table with 8 variables and i want to merge 2 columns

  • 0

I have an table with 8 variables and i want to merge 2 columns named Sample and NorTum and both columns Sample and NorTum should stay in the table. Someone an idea how to do this with R or SQL? The data looks as follows:

    Sample  Sample_Code Sample_Group    NorTum  Sentrix_ID  Sentrix_Position    Pool_ID Folderdate
 1  00_11242    00_11242T1  MUTYH   T1  1403371 R007_C006   GS0005703-OPA   Exp051118
 2  00_11242    00_11242T1  MUTYH   T1  1403371 R007_C012   GS0005704-OPA   Exp051118
 3  00_11242    00_11242T1  MUTYH   T1  1416198 R007_C006   GS0005701-OPA   Exp051118
 4  00_11242    00_11242T1  MUTYH   T1  1416198 R007_C012   GS0005702-OPA   Exp051118
 5  00_11242    00_11242T1  MUTYH   T1  1280307 R007_C006   GS0005703-OPA   Exp051116
 6  00_11242    00_11242T1  MUTYH   T1  1280307 R007_C012   GS0005704-OPA   Exp051116
 7  00_11242    00_24200N2  MUTYH   N   1403371 R007_C005   GS0005703-OPA   Exp051118
 8  00_11242    00_24200N2  MUTYH   N   1403371 R007_C011   GS0005704-OPA   Exp051118

I`m sorry for the bad format of the table. But the idea for example is: Sample: 00_11242 and Nortum: T1 merge to Sample_ID so that the output looks like: Sample_ID:00_11242_T1

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-06T22:20:59+00:00Added an answer on June 6, 2026 at 10:20 pm

    Assuming your dataframe is called dat

    dat$Sample_ID <- paste(dat$Sample, dat$NorTum, sep = "_")
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

(on mysql database), I want to have a table which contains different variables for
So the question is this. I have a table with n columns of data,
I have a table that has about 50 columns. To retrieve the variables from
I have three separate table variables in my Function, 1 of them is not
I have two tables (using table variables for illustration. You can run these directly
I have to call the table() function on 10 variables in R. Is there
I have 4 variables containing 4 different strings. I want to use a for-loop
I have a table of options in a database and I want to pull
I have a table with around 6 million rows and has many columns with
I have a table in SQLite I want to insert data in that table.

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.