Question Details

No question body available.

Tags

r matrix vector

Answers (3)

Accepted Answer Available
Accepted Answer
February 13, 2026 Score: 9 Rep: 209,501 Quality: Expert Completeness: 50%

The basic embed function is pretty close, we can create a wrapper around it

vembed
February 13, 2026 Score: 6 Rep: 34,518 Quality: Medium Completeness: 70%
v   [2,]   NA   NA   NA    1    3
#>  [3,]   NA   NA    1    3    7
#>  [4,]   NA    1    3    7    2
#>  [5,]    1    3    7    2    5
#>  [6,]    3    7    2    5   NA
#>  [7,]    7    2    5   NA   NA
#>  [8,]    2    5   NA   NA   NA
#>  [9,]    5   NA   NA   NA   NA

Created on 2026-02-13 with reprex v2.1.1

February 13, 2026 Score: 5 Rep: 106,042 Quality: Medium Completeness: 50%

You can try

> v m `[