All Questions
304 questions
0
votes
0
answers
24
views
How to color rows in Matrix Table based on cells value
I have created a table in Grafana using a SQL query & Grouping to Matrix
A/B
Col1
Col2
Col3
Row1
1.ab
2.ab
1.ab
Row2
3.nc
3.nc
3.nc
Row 1 has different values but Row 2 doesn't. How can I ...
0
votes
0
answers
68
views
Which of the Elementary Column Operations will not change the solution of SLE
Which of the elementary column transformations, (except for interchanging the columns), will not change the solution of the system of linear equations?
I found a definiton:
Definition 2.2.1 An ...
0
votes
1
answer
177
views
How to run two-way ANOVA when continuously getting ValueError: must have at least one row in constraint matrix
When I try to run the ANOVA, I get a "ValueError: must have at least one row in constraint matrix" message. See an example table below and the code that I am trying to run. You can ignore ...
1
vote
1
answer
188
views
Dyalog APL, sort rows in a matrix
I would like to sort numbers within each row of a matrix, for example,
3 3 rho 2 3 1 4 5 7 1 9 8
should become
3 3 rho 1 2 3 4 5 7 1 8 9.
I am new to Dyalog APL, and know
how to generate, via grade
...
2
votes
2
answers
96
views
How to sort a matrix`s row based on another similar (not equivalent) matrix?
I have two matrices with equal dimension in R. First columns are same. And they elements are such that they have same element but their position according to row and column are different. I am stating ...
0
votes
1
answer
329
views
How to create a matrix with huge number of rows
I want to create a big dataframe or a matrix.
the dimension of it is: col is 49 and row is 35886996700
When I am trying to create a matrix its giving me an error:
data <- data.frame(matrix(NA, # ...
1
vote
1
answer
158
views
Why doesn't Sympy's row_del() method work (example from geeksforgeeeks website)?
TL;DR There is an inconsistency when using Sympy's [Matrix].row_del() method and websites seem to be reporting its use wrongly.
Note from the following link from the geeksforgeeks website for an ...
0
votes
1
answer
50
views
question regarding changing tile of rows and columns of a big matrix
I have a complex names of big matrix. I'm supposed to replace the name by splitting the name of each column which are separated by "_".
sample of name
d__Bacteria.p__Firmicutes.c__Clostridia....
1
vote
2
answers
45
views
Replace rows in an MxN matrix with numbers from 1 to N
Im interested in replacing all of my rows in an MxN matrix with values from 1 to N.
For example:
[[4,6,8,9,3],[5,1,2,5,6],[1,9,4,5,7],[3,8,8,2,5],[1,4,2,2,7]]
To:
[[1,2,3,4,5],[1,2,3,4,5],[1,2,3,4,5],[...
0
votes
1
answer
30
views
How to get rid of array appending python
Hi have an a vector that looks like:
[array([ -99.21898 , -200.566483, 0.58519 ]), array([-1.00395332e+02, -2.05700867e+02, 6.47600000e-02]), array([-9.99833530e+01, -2.00824783e+02, 6.77800000e-...
1
vote
0
answers
87
views
Making index i to row and index j to column and index k = 0 or k = 1 depending on following
I have a 3D matrix as following:
a = [[[0, 1, 2, 3, 4, 5], [1, 2, 3, 4, 5, 6], [2, 3, 2, 3, 4, 5], [3, 2, 3, 4, 3, 4], [4, 3, 4, 5, 4, 3], [5, 4, 5, 6, 5, 4]]]
When I loop over the matrix I want the ...
0
votes
1
answer
63
views
Changing the position of a 2D array in a matrix in C language
here is the question :
have a two 2D array
int matrix1[4][5]={ {8,5,2,4,3}, {9,6,4,0,4}, {0,1,2,3,4}, {9,9,9,9,9}};
Without changing the elements in the row in the matrix1 The sum of the rows will ...
0
votes
0
answers
35
views
Loop for dynamic rows in R
I don't know If my question is well thought out. I'll try to explain as best as I can. I'm trying to create this model originaly made in Excel into R. The function basically is a sum of products ...
0
votes
1
answer
1k
views
Additional row with empty header in matrix in power bi
The problem is probably trivial but unfortunately I can't figure it out. Here are two basics tables:
I tried to create the matrix based on the selected ID (from the Table2) with values from Table1. I ...
1
vote
1
answer
73
views
Adding rows with changing variable values in R
I have the following extract of my dataset about the occupancy of a football match:
example <- data.frame(Date <- c("2019-03-21", "2019-03-30", "2019-04-07",
...