Questions tagged [rows]

A row is a single data item in a database, spreadsheet, table, grid or list. When using this tag, please also add additional tags to clarify your specific environment/language/use case.

A row is a single data item. In the context of a database or similar data structure, it's also known as a or and will have a well-defined structure. In the context of a dataset in data science, each row represents an observation.

Rows can also be added to a less structured data source, such as a , , grid or .

4419 questions
1
vote
3 answers

How to simply select specific number of specific rows in a matrix in R

Followings are my data, num<- c(6,8,7,5,9,6,7) x<- matrix(c(rep(1:7,num),rnorm(sum(num))), nrow=sum(num), ncol=2) colnames(x)<-c("subject","value") x subject value [1,] 1 0.35182560 [2,] 1 0.35933614 [3,] …
lightsnail
  • 788
  • 5
  • 20
1
vote
2 answers

Move selected row from DataGridView to another in Visual C#

I created a form with two Datagridviews. One of these DataGridViews is filled with data from a Database and it is the source. The second DataGridView should be filled with the selected rows from the source Datagridview after I use a Button. The…
Georg Gutsche
  • 452
  • 4
  • 9
  • 17
1
vote
0 answers

How to get total price if the user has checked multiple checkboxes?

The title might not seem clear but this is my problem. A user can check either 1 or 2 checkboxes. When the checkbox is checked, it asks for the quantity. What if the user clicks both checkboxes, how can I get the total price? The checkbox values…
Isabella
  • 455
  • 1
  • 10
  • 23
1
vote
1 answer

Convert the row of a matrix into a vector

I have my matrix "A" wich the user define its size, for example, the user define a size 3x5 for the matrix A: [1 2 3 4 5] A= [2 4 6 8 3] [2 4 5 7 8] I need to convert the rows into new vectors like this: A1=[1 2 3 4 5] A2=[2 4 6 8 3] A3=[2 4…
1
vote
1 answer

C# How to change my code?

Write the desired word is displayed in the text box. I want to have multiple rows...but, by this code I get only one row selected.. and I want to output to the screen rows.. Rather than painted, I want to display only the rows that specified (match…
Simkyujin
  • 115
  • 2
  • 2
  • 8
1
vote
2 answers

How to work with lists and rows in a .txt file

I am working out of a text file (call it user.txt for now) and would like to be able to skip the first item [0] in each row, use the following numbers in an equation [3:4], and then spit out my equated answer from that specific row and add it to the…
Phil
  • 33
  • 2
1
vote
0 answers

Adding sub-rows dHtmlx but no show

i'm newbie for using dhtmlx, i tried to create table with sub-rows but i got nothing. this is my table using dhtmlx: and this is my current code: mygrid3 = new dhtmlXGridObject('gridbox3');…
1
vote
1 answer

Gather multiple/all columns using tidyr

I have the same problem as here but can't get my head around that! My dataframe: > str(scotland_weather) 'data.frame': 106 obs. of 24 variables: $ Jan : num 294 292 276 252 246 ... $ Year.1 : int 1993 1928 2008 2015 1974 1975 2005 2007…
Shery
  • 1,808
  • 5
  • 27
  • 51
1
vote
1 answer

What does {:d} mean? Strings Python 3.4.3

I'm practicing for my finals, doing a task where I'm to assign a number to a spot in a row/column system. The suggested method of solving is this: def readOneNumber(): row = int(input("Row (1-9): ")) col = int(input("Column (1-9): ")) …
Mats
  • 165
  • 1
  • 3
  • 14
1
vote
1 answer

How get n rows from information_Schema from each of databases (MySQL)

I'm not DBA or...But I am just very interested in writing query like to learn the trick of it..Now I'm asking myself this question: How can I get n rows from information_Schema from each of databases? (Without knowing the number of databases) For…
Milad
  • 25
  • 5
1
vote
2 answers

Div's in a rows using Ext Js

I have a scenario like to display the records coming from a database query in 5columns in a row using Ext-Js (NOT by using GRID's) For example: if the query returns 10 records to we need to have 2 rows with 5columns in each row. The following is the…
Kiran Kumar
  • 181
  • 1
  • 4
  • 13
1
vote
1 answer

access database in visual basic rows delete

i have this code to delete rows from a button: Dim dt As New DataTable Dim ds As New DataSet ds.Tables.Add(dt) Dim da As New OleDbDataAdapter con.Open() da = New OleDbDataAdapter("Select * from orders", con) …
andyong
  • 25
  • 4
1
vote
0 answers

Operations over Rows or Column

I have an operation I am running in R, and want to know if there is any set of rules that can help me determine if I want the operation to be performed over rows or columns, given that transposing a matrix is a matter of programming preference…
RegressForward
  • 280
  • 1
  • 15
1
vote
1 answer

CodeIgniter model unable to return specific records

I am using CodeIgniter and I'm unable to get the where() selection method to work when using the results() method to fetch all the rows from a table. Here's my model: public function get_all_entries($id) { // Select row to be fetched …
Achraf Almouloudi
  • 756
  • 10
  • 27
1
vote
1 answer

Find mean of the grouped rows of pandas dataframe

I am at very basic level of python. here i am stuck with a problem, can someone help me out? i have a large pandas dataframe, i want to find rows and do mean, if the first column of each row has some similar value (ex: someinteger seperated by '_'…
Tony
  • 85
  • 7