Quantcast
Browsing all 445 articles
Browse latest View live

Problems running poLCA.entropy

I am trying to conduct an LCA analysis in R using the poLCA package. I am currently trying to get the entropy values for my data, but I keep getting the same message: Error in (function (..., row.names...

View Article


How do I delete rows in a data frame?

I have a data frame named "mydata" that looks like this this: A B C D 1. 5 4 4 4 2. 5 4 4 4 3. 5 4 4 4 4. 5 4 4 4 5. 5 4 4 4 6. 5 4 4 4 7. 5 4 4 4 I'd like to delete row 2,4,6. For example, like this:...

View Article


How to replace and delete different underscore in a single name row

Let's suppose I have this situationdata = data.frame('A' = c('A_A_', 'B_B_'))A_A_ where I would like to remove the final and replace the central underscore. What can I do to save the following two...

View Article

R - conditionally replace rows in data table [duplicate]

I am trying to conditionally replace row values in a data table.Please consider the following dataset excerpt:library(data.table)txt1 <- "Date Location Measurement Scenario Var Month Decade...

View Article

In MySQL, can I copy one row to insert into the same table?

insert into table select * from table where primarykey=1I just want to copy one row to insert into the same table (i.e., I want to duplicate an existing row in the table) but I want to do this without...

View Article


Time Difference between query result rows in SQLite: How To?

Consider the following reviews table contents:CustomerName ReviewDTDoe,John 2011-06-20 10:13:24Doe,John 2011-06-20 10:54:45Doe,John 2011-06-20 11:36:34Doe,Janie 2011-06-20 05:15:12The results are...

View Article

Convert rows into columns - hive

I have a table with each log entry as rows. I need to convert rows into columns for 7 days.I am trying to achieve this in hive.Input:Id date row1 mar-21 1231 mar-22 12342 mar-21 2342 mar-22 3452 mar-23...

View Article

python adding rows to gui

i have difficulties adding rows below each button where the "add row" button is located. My program somehow places the new rows at different locations other than directly below it.could you please show...

View Article


How to delete rows (NOT columns) in a csv file

I am trying to delete a particular row (NOT a column) in a csv file for a class project. When I deleted columns I put: r=row r[22], r[21]# and so onSo how do I specify that I want to delete rows? I am...

View Article


PrimeNG Table: Programmatically handle row editing (pSaveEditableRow)

I'm using a PrimeNG Table, and I would like to handle saving row editing programmatically in the case that there are any custom validation errors that need to be addressed beforehand in edit mode....

View Article

Image may be NSFW.
Clik here to view.

How to add row number or Serial no in laravel datatable

This is the bill_info table, for which i need to serialized row no like 1 2 . . . . . . . . . . . . .nThere is data list returned, how I can get serial_no custom field in datatable list view. $data =...

View Article

Image may be NSFW.
Clik here to view.

Not able to add the list into new row of CSV file?

List = ['Mean', mean]List2 = ["Variance", variance]List3 = ["SD", std]rows = zip(List, List2, List3)from csv import writerwith open(r'E:\chrome dlds\null - Sheet1.csv', "a", newline = '') as f: writer...

View Article

Oracle SQL : removing duplicates from output

FIRSTSECONDTHIRDFOURTHFIFTHSIXTHSEVENTHACE250FGHBDE250FGHBDE250FGHACE250FGHABQCGG1000TTSSPPCDWDGG1000TTSSPPCDWDGG1000TTSSPPABQCGG1000TTSSPPI have a table that contains 300k+ rows that has some parts...

View Article


How to add a new row to datagridview programmatically

if add row to DataTableDataRow row = datatable1.NewRow();row["column2"]="column2";row["column6"]="column6";datatable1.Rows.Add(row);How about DataGridView??

View Article

Checkbox select row(s) from one GridView (Table) to another back and forth

I have two gridviews each with their own table. I'm trying to make it so I can select a row(s) from GridViewA and move it to GridViewB (not copy). Then be able to move the selected row(s) from...

View Article


How to change a row background color according to the value of one cell?

I have been trying to change the background color of a row based on where the key is present in my lists.import numpy as npimport pandas as pditem_added = ["UUID1", "UUID22"]item_removed = ["UUID2",...

View Article

VBA Insert data into next blank row from different worksheets

My objective is to be able to list all of the requests of users on the Status worksheet from different user-entered worksheets (BTW, not all worksheets are required to be entered by users.) Example of...

View Article


Trouble with removing duplicate rows in R, maybe due to a problem with...

I have been trying to remove duplicate rows in a csv file through both R and Excel. However, both keep returning that there are no duplicate rows even though I can clearly see them. I have checked for...

View Article

Excel tab to new line after certain amount of columns

I am wanting to set up an excel spreadsheet for data entry with a barcode scanner.The barcode scanner sends the barcode then a tab OR an enter key depending how its programmed.Basically I want to set...

View Article

openxlsx formula is not translating correctly

I want to implement the following formula using openxlsx: =IF(COUNTIF(E3:G3,"none")=3,"N/A",AVERAGE(IF(ISNUMBER(--E3:G3),--E3:G3,""))) to each rowThis formula works perfectly in excel given the...

View Article
Browsing all 445 articles
Browse latest View live