Skip to content

further manipulating x's columns during non-equi join returns NA (nomenclature issue?) #2569

Description

@l-jaye

Hello! Please see this stack overflow post, where the issue is described. Thanks again for the help!

Activity

  1. arunsrinivasan commented on Jan 16, 2018

    @arunsrinivasan
    Member

    @l-jaye, thank you. Will take a look.

  2. MarkusBonsch commented on Feb 14, 2018

    @MarkusBonsch
    Contributor

    This is very much related to the unexpected column structure of data.table joins. frame is not x.frame, but i.frame.stop in this case. See also #2602

    set.seed(5)
    dat = data.table ( time.group = c (rep ("base", 42), rep ("4h", 42)), 
                       well = c (rep ("A1", 20), rep ("B1", 22), rep ("A1", 19), rep ("B1", 23)),
                       frame = c(1:20, 1:22, 1:19, 1:23),
                       signal = runif (84, 0, 1) )
    
    pts = data.table (time.group = c (rep ("base", 2), rep ("4h", 2)),
                      well = rep (c ("A1", "B1"), 2),
                      frame.start = c (3, 4, 3, 6),
                      frame.stop = c (17, 18, 12, 19) )
    
    dat[pts, on = .(time.group, well, frame >= frame.start, frame <= frame.stop),
        .(x.frame, i.frame.start, i.frame.stop),
        by = .EACHI]
    
    # frame x.frame i.frame.start i.frame.stop
    # 1:     3       3             3           17
    # 2:     3       4             3           17
    # 3:     3       5             3           17
    # 4:     3       6             3           17
    # 5:     3       7             3           17
    # 6:     3       8             3           17
    # 7:     3       9             3           17
    # 8:     3      10             3           17
    # 9:     3      11             3           17
    # 10:     3      12             3           17
    # 11:     3      13             3           17
    # 12:     3      14             3           17
    # 13:     3      15             3           17
    # 14:     3      16             3           17
    # 15:     3      17             3           17
    # 16:     4       4             4           18
    # 17:     4       5             4           18
    # 18:     4       6             4           18
    # 19:     4       7             4           18
    # 20:     4       8             4           18
    # 21:     4       9             4           18
    # 22:     4      10             4           18
    # 23:     4      11             4           18
    # 24:     4      12             4           18
    # 25:     4      13             4           18
    # 26:     4      14             4           18
    # 27:     4      15             4           18
    # 28:     4      16             4           18
    # 29:     4      17             4           18
    # 30:     4      18             4           18
    # 31:     3       3             3           12
    # 32:     3       4             3           12
    # 33:     3       5             3           12
    # 34:     3       6             3           12
    # 35:     3       7             3           12
    # 36:     3       8             3           12
    # 37:     3       9             3           12
    # 38:     3      10             3           12
    # 39:     3      11             3           12
    # 40:     3      12             3           12
    # 41:     6       6             6           19
    # 42:     6       7             6           19
    # 43:     6       8             6           19
    # 44:     6       9             6           19
    # 45:     6      10             6           19
    # 46:     6      11             6           19
    # 47:     6      12             6           19
    # 48:     6      13             6           19
    # 49:     6      14             6           19
    # 50:     6      15             6           19
    # 51:     6      16             6           19
    # 52:     6      17             6           19
    # 53:     6      18             6           19
    # 54:     6      19             6           19
    # frame x.frame i.frame.start i.frame.stop
    
    
  3. ethanbsmith commented on Mar 5, 2018

    @ethanbsmith
    Contributor

    probably related if not a duplicate of #1700

  4. added this to the milestone on Apr 10, 2018
  5. modified the milestones: v1.11.0, on Apr 29, 2018
  6. modified the milestones: 1.12.0, 1.12.2 on Jan 11, 2019
  7. modified the milestones: 1.12.2, 1.12.4 on Jan 24, 2019
  8. modified the milestones: 1.12.4, 1.13.0 on Sep 19, 2019
  9. modified the milestones: 1.12.7, 1.12.9 on Dec 8, 2019
  10. modified the milestones: 1.13.1, 1.13.3 on Oct 17, 2020
  11. modified the milestones: 1.14.3, on Jul 19, 2022
  12. modified the milestones: , 1.15.1 on Oct 29, 2023
  13. modified the milestones: 1.16.0, 1.17.0 on Jul 11, 2024
  14. modified the milestones: 1.17.0, 1.18.0 on Jan 30, 2025
  15. modified the milestones: 1.18.0, 1.19.0 on Nov 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugnon-equi joinsrolling, overlapping, non-equi joins

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions