python (65.1k questions)
javascript (44.2k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (12.9k questions)
Concatenate columns in R, but only keep separator if value exists
Does anyone know of a method in R to concatenate n columns but only keep the separator if there is a value in that row? If you run the example below:
df <- data.frame(
name1 = c(&...
John Conor
Votes: 0
Answers: 1
How do I add elements horizontally instead of vertically in PySimpleGUI?
I'm trying to get my GUI to have 2 "parts" (one left and one right), and naturally, adding elements to the layout just expands it vertically, so I tried doing a "left_part" layout ...
Faindirnomainzein
Votes: 0
Answers: 1
Split string without delimeters
I have df which contains a column with metro lines. The problem is that L9N and L10N appear sometimes in the same row and I want to split them into two different rows. I have been trying many things b...
Berta_94
Votes: 0
Answers: 3
JAVA - Parsing CSV File - Change delimiter
I have a problem and wanted to ask if someone can help me. I have a Java application that processes CSV files. The files have a semi-colon as a "delimiter". Now instead of semicolons I would...
Michael2704
Votes: 0
Answers: 2