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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T15:23:04+00:00 2026-06-14T15:23:04+00:00

I trying to combine 2 vectors using cbind, both vectors are the same size,

  • 0

I trying to combine 2 vectors using cbind, both vectors are the same size, and I am having an error while i run the code, the vectors are quite big, length = 57605.

 final=cbind (counts1,tx_by_gene)

> > Error: cannot allocate vector of size 225 Kb R(473,0xa0cb8540) malloc: *** mmap(size=233472) failed (error code=12)
> *** error: can't allocate region
> *** set a breakpoint in malloc_error_break to debug R(473,0xa0cb8540) malloc: *** mmap(size=233472) failed (error code=12)
> *** error: can't allocate region
> *** set a breakpoint in malloc_error_break to debug

Can anyone help me why am I having this error? or some other way of combining the 2 vectors?

thank you

> str(counts1) =  int [1:57605] 0 0 0 0 0 0 0 0 0 0 ... 

>str(tx_by_gene)
> Formal class 'GRangesList' [package "GenomicRanges"] with 5 slots   ..@ partitioning   :Formal class 'PartitioningByEnd' [package
> "IRanges"] with 5 slots   .. .. ..@ end            : int [1:57605] 3 5
> 12 17 27 36 42 46 58 60 ...   .. .. ..@ NAMES          : chr [1:57605]
> "ENSG00000000003" "ENSG00000000005" "ENSG00000000419"
> "ENSG00000000457" ...   .. .. ..@ elementMetadata: NULL   .. .. ..@
> elementType    : chr "integer"   .. .. ..@ metadata       : list()  
> ..@ unlistData     :Formal class 'GRanges' [package "GenomicRanges"]
> with 7 slots   .. .. ..@ seqnames       :Formal class 'Rle' [package
> "IRanges"] with 5 slots   .. .. .. .. ..@ values         : Factor w/
> 93 levels "chr1","chr2",..: 8 20 1 6 1 8 6 3 7 13 ...   .. .. .. ..
> ..@ lengths        : int [1:41694] 5 7 30 18 21 6 2 9 43 23 ...   ..
> .. .. .. ..@ elementMetadata: NULL   .. .. .. .. ..@ elementType    :
> chr "ANY"   .. .. .. .. ..@ metadata       : list()   .. .. ..@ ranges
> :Formal class 'IRanges' [package "IRanges"] with 6 slots   .. .. .. ..
> ..@ start          : int [1:191891] 99883667 99887538 99888439
> 99839799 99848621 49551404 49551404 49551404 49551433 49551482 ...  
> .. .. .. .. ..@ width          : int [1:191891] 8137 4149 6550 15084
> 3908 23684 23684 23689 10966 23577 ...   .. .. .. .. ..@ NAMES        
> : NULL   .. .. .. .. ..@ elementMetadata: NULL   .. .. .. .. ..@
> elementType    : chr "integer"   .. .. .. .. ..@ metadata       :
> list()   .. .. ..@ strand         :Formal class 'Rle' [package
> "IRanges"] with 5 slots   .. .. .. .. ..@ values         : Factor w/ 3
> levels "+","-","*": 2 1 2 1 2 1 2 1 2 1 ...   .. .. .. .. ..@ lengths 
> : int [1:28670] 3 2 12 10 9 6 16 2 13 8 ...   .. .. .. .. ..@
> elementMetadata: NULL   .. .. .. .. ..@ elementType    : chr "ANY"  
> .. .. .. .. ..@ metadata       : list()   .. .. ..@ seqlengths     :
> Named int [1:93] 249250621 243199373 198022430 191154276 180915260
> 171115067 159138663 155270560 146364022 141213431 ...   .. .. .. ..-
> attr(*, "names")= chr [1:93] "chr1" "chr2" "chr3" "chr4" ...   .. ..
> ..@ elementMetadata:Formal class 'DataFrame' [package "IRanges"] with
> 6 slots   .. .. .. .. ..@ rownames       : NULL   .. .. .. .. ..@
> nrows          : int 191891   .. .. .. .. ..@ elementMetadata: NULL  
> .. .. .. .. ..@ elementType    : chr "ANY"   .. .. .. .. ..@ metadata 
> : list()   .. .. .. .. ..@ listData       :List of 2   .. .. .. .. ..
> ..$ tx_id  : int [1:191891] 93738 93739 93740 93736 93737 175481
> 175482 175480 175483 175484 ...   .. .. .. .. .. ..$ tx_name: chr
> [1:191891] "ENST00000373020" "ENST00000496771" "ENST00000494424"
> "ENST00000373031" ...   .. .. ..@ elementType    : chr "ANY"   .. ..
> ..@ metadata       : list()   ..@ elementMetadata:Formal class
> 'DataFrame' [package "IRanges"] with 6 slots   .. .. ..@ rownames     
> : NULL   .. .. ..@ nrows          : int 57605   .. .. ..@
> elementMetadata: NULL   .. .. ..@ elementType    : chr "ANY"   .. ..
> ..@ metadata       : list()   .. .. ..@ listData       : list()   ..@
> elementType    : chr "GRanges"   ..@ metadata       : list()
  • 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-14T15:23:06+00:00Added an answer on June 14, 2026 at 3:23 pm

    The object tx_by_gene isn’t a vector. You can check using the is.vector function

    is.vector(counts1) 
    is.vector(tx_by_gene)
    

    Of course, there could be method defined so that the two objects can be combined

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Hello I am trying to combine two transparent png-24 images, both size 400width, 150height.
I'm trying to combine both the result of a semantic and a dictation request
I'm trying to combine Spring with Hibernate using Annotations and I'm getting the following
I'm trying to combine the jquery datepicker with the jqplot plugin. Basically, I'm having
I'm trying to combine 2 different regex with the same names into one and
Trying to combine an if statement using <xsl:if test=expression> where I want to have
Trying to combine two htaccess RewriteRules at the same time: 1) transform all non-www
I'm trying to combine multiple js file references using Telerik's script manager. Here is
I'm trying to combine NAudio with Reactive Extentions, and I'm having an issue getting
I am trying to combine two images into one. This is the code I

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.