Questions tagged [split]
Use this tag for questions about separating an item (e.g. a string) into parts, often by a delimiter or regular expression.
split
24,486
questions
0
votes
1
answer
17
views
How to validate multivariate linear model using split half analysis or cross validation? [closed]
I created a multivariate linear model and am wondering how I can validate the model? The samples are environmental samples and due to a few limitations I am not able to validate by collecting more ...
0
votes
0
answers
10
views
ArcGIS Pro SPLIT BY that also joins the data of the split feature to the target feature
Layers:
I have two features layers in ArcGIS Pro:
a zoning base feature layer that is the target layer
a zoning overlay feature layer that will be used to split the base layer
Goal: to essentially ...
-1
votes
0
answers
42
views
Why am I getting " Invalid argument type (Record). Expecting a Text value instead."? [closed]
I'm reading from a txt file a list of names and docs (one group - name and doc - per row).
The value is stored in FileContents variable.
Then I start a "for each" loop in from FileContents ...
0
votes
1
answer
62
views
split pandas datafram based on given row string
I have a text file with a data set of the form
Line 1
Line 2
!
1.01499999 0.504999995 6.19969398E-7 5.38933136E-7 1.35450875E-6
1.74000001 0.220000029 7.92876381E-6 4.1831604E-6 6.61433387E-6
2....
-4
votes
1
answer
67
views
Java String split by empty lines including empty lines at the end [closed]
I have seen many questions and answers online, but it seems that I cannot find the case that I have.
String s = "a\nb\n\nc\n\n\n\n";
String[] split = s.split("\\R");
//is the same ...
0
votes
1
answer
54
views
terra::split | R session aborts when splitting polygon fatal error
When trying to split a polygon R runs into a fatal error and aborts. This happens when using R Studio and R on itself. I wrote the code on an earlier version of R on a different machine (also a mac), ...
2
votes
2
answers
20
views
Split a string in JavaScript when last number arise
I want to split the string "111A1A.11111.SL.111FUND II GP_KY.zip" when last number is arise.
string="111A1A.11111.SL.111FUND II GP_KY.zip";
output="FUND II GP_KY.zip";
I ...
0
votes
2
answers
76
views
rust `split` split before the pattern match
I'm trying to split up a String retaining each pattern match but with the matched part retained as the beginning of the next sub-string rather than the terminator of the last.
Current implementation:
...
4
votes
3
answers
154
views
Word splitting bash parameter on whitespace respecting and retaining quotes
Given the bash parameter
foo='ab "cd" "e f" x="1 2" '
I wish to produce an array equivalent to
foo_transformed=( ab '"cd"' '"e f"' 'x="1 2&...
1
vote
1
answer
55
views
Pyspark SQL not splitting column
I was trying to split my column using pyspark sql based on the values that are stored in another column, but it doesn't seem to work for some special characters.
Here is my code:
df = spark....
-1
votes
1
answer
32
views
Split a video with ffmpeg, without reencoding, at timestamps given in a txt file
Let's say we have a video input.mp4, and a file split.csv containing:
start;end;name
00:00:27.132;00:07:42:422;"Part A.mp4"
00:07:48.400;00:17:17.921;"Part B.mp4"
(or I could ...
1
vote
1
answer
45
views
Splitting up a variable range of time into multiple cells
I need to split up a range of time from a variable input in excel, for example
Start
End
11:00:00
13:00:00
I would like to have the input split up in segments of 30 minute intervals (input is only ...
0
votes
1
answer
52
views
Parsing a string with text within it
I'm trying to read in and parse a CSV output file from PostgreSQL, but there are some oddities in the data. The data contains vehicle details. One problem is with old Land Rovers which have models ...
0
votes
1
answer
49
views
How can a number range and value be extracted from this complicated string using Python?
I have a complicated string that includes a kilometer range and a fee for users that fall into that range. Ideally, I would like to transform the string into something that I could use to easily ...
0
votes
1
answer
31
views
Split out numbers in a column
I'm trying to split out the two numbers in the cell into separate columns
I've tried "text to columns", using the delimitator "space" but it removes the second number in each of ...