Questions tagged [row-removal]

Questions about removing a row from a spreadsheet programmatically, deleting a row through a matrix, removing specific or corresponding rows in a file, or removing a row from a collection. For questions specific to deleting a row in a database, use [delete-row], and for questions related to removing entries, use [delete-record].

This tag is for questions about removing a row from a spreadsheet programmatically, deleting a row through a matrix, removing specific or corresponding rows in a file, or removing a row from a collection. For questions specific to deleting a row in a database, use , and for questions related to removing entries, use .

18 questions
47
votes
12 answers

How to delete columns in a CSV file?

I have been able to create a csv with python using the input from several users on this site and I wish to express my gratitude for your posts. I am now stumped and will post my first question. My input.csv looks like…
Jeff
  • 633
  • 2
  • 7
  • 10
4
votes
1 answer

QTableView row remove

I created a table view like this: I have a create button to create new rows and as you can see I defined a button for each row to delete that row by this code: int i = 0; QPushButton *viewButton; QStandardItemModel *model; void…
HMD
  • 2,202
  • 6
  • 24
  • 37
2
votes
2 answers

ListView not updated after database is changed

I'm really frustrated because of bad programming style, and inexperience in Android. Sorry to tell you guys that. How the app works: This is a todo app for my job training. There are 6 columns. 3 of these contain information about the todo and the…
Vairon
  • 91
  • 1
  • 2
  • 11
2
votes
1 answer

Deleting UITableView rows - duplicating cells

I'm experiencing some weird behavior when trying to delete a row in a UITableView. I have two tableviews in my app, and they both have practically the same code on the tableView:commitEditingStyle:forRowAtIndexPath: method. One is working fine, the…
user2743901
  • 33
  • 1
  • 6
1
vote
2 answers

Remove any data frame rows containing a value in one column which has multiple matches in another column

Let's say I have this (simplified) data frame: C1 <- c('a','a','b','b','c','c') C2 <- c(10,10,20,21,30,30) C3 <- c(1.1,2.2,3.3,4.4,5.5,6.6) df <-…
Yuval Harris
  • 53
  • 1
  • 5
1
vote
1 answer

Julia, @view to prevent production of a new array

My old friend the 3d array called Pop, I want to remove columns (d2), across all of d3 when the value in the end of d1 == 1, so I have this code: Pop[end, :, 1] .!=1 I thought adding @view in front of this would write the changes back to Pop,…
Jim Maas
  • 1,481
  • 2
  • 16
  • 36
1
vote
0 answers

Decrease formula counter on spreadsheet

I haven't found a solution on this yet. I have a result spreadsheet from a formula on which I have to delete some rows from time to time. I am using this: function readRows() { var sheet = SpreadsheetApp.getActiveSheet(); var rows =…
wurzeldd
  • 57
  • 1
  • 5
1
vote
1 answer

Deleting a record from text file

I have got an assignment project to make a program using C++ which maintains a list of Students (their name, age, and GPA) in a text file. The program has the following functionality: Insertion of record Deletion of record Searching of…
String Name
  • 203
  • 1
  • 10
  • 21
0
votes
2 answers

Criteria is not removed after I run this code in R

I am trying to remove docked_bike from the results table with the ff: library(dplyr) a_v2 <- a_v1[!a_v1$rideable_type == "docked_bike" | a_v1$ride_length<0,] a_v2 %>% group_by(member_casual) %>% summarise(number_of_rides = n(), …
0
votes
2 answers

How to find specific rows that are present in one data frame and not another

I have 2 large data frames that are suppose to be duplicates of each other. However there is 3 extra rows in the second data frame. I need to find these 3 extra rows that are not present in the first data frame and remove them from the second data…
daisy
  • 61
  • 1
  • 6
0
votes
1 answer

How to remove rows in a data set according to if values exceed a given number in a particular column in Rstudio

I am trying to remove some outliers from my data set. I am investigating each variable in the data one at a time. I have constructed boxplots for variables but don't want to remove all the classified outliers, only the most extreme. So I am noting…
daisy
  • 61
  • 1
  • 6
0
votes
0 answers

How to delete label from if they are created in function?

I am doing app where I get different time zones by the input and then it is displayed on that window of mine, I can stack as many time zones as I would like in one window, however when I made this function I don't get any error messages, as well…
0
votes
0 answers

Matrix rows removal, works individually, loop bugging [R]

I need to standardize an oriented graph edges table. The goal is to add to a table (EdgesExport) the potential edges as a pair of nodes (in srctagged & dstagged columns), leaving the new rows void in other columns. To this end I create a matrix of…
0
votes
2 answers

Attempting to remove a row in R using variable names

I am trying to remove some rows in a for loop in R. The conditional involves comparing it to the line below it, so I can't filter within the brackets. I know that I can remove a row when a constant is specified: dataframe[-2, ]. I just want to do…
pez
  • 7
  • 6
0
votes
1 answer

Remove duplicates from a column R

I have a long column (9500 rows in excel), where I have a lot of gene ids. I want to remove the duplicates. ID BXDC2 BXDC5 BXDC5 BZRPL1 BZRPL1 …
1
2