Skip to main content

Questions tagged [cut]

A Unix shell command that breaks input into fields, which can be selected for output, based on a delimiter.

0 votes
2 answers
33 views

Mutate/cut to bin grouped data by grouped break points

I have two data-frames, each with the same groups. The first data frame consists of the base data, the second an independent set of break points for each group. I want to use those break points to ...
Jaken's user avatar
  • 93
0 votes
1 answer
35 views

gdstk Boolean too slow but works fast in Klayout?

I am trying to cut out several holes in a rectangle. When I do this in Klayout using "Subtract others from first", the result is computed almost instantly. However, when I try to do it using ...
Shrinivas Ganti's user avatar
1 vote
1 answer
45 views

Using cut command with criterion from a bash variable [duplicate]

I would like to use the cut command to extract some columns of a csv file. However, instead of having my criterion hard-coded, I would like to take them from a bash variable. Without a variable, my ...
Pat. ANDRIA's user avatar
  • 2,402
-2 votes
4 answers
55 views

Using AWK with multiple delimiters

I'm trying to get the first part of Column $1 with the entire Column $2,$3 and $5 but unfortunately I'm getting a different output Input: 2023-08-01 05:30:01,Lakers,CA,LA,US 2023-10-05 16:40:23,Denver ...
Driven's user avatar
  • 159
-2 votes
1 answer
52 views

Output text from file after certain string [duplicate]

I am looking for a methode to return all text from after a certain phrase in the file. So I have text file, lets say it called README, which contains the text below. I need a command to only output ...
Kaspar's user avatar
  • 103
0 votes
0 answers
88 views

Unity Built-in shader, cutout + transparent

Is it possible to have a shader which uses both, cutout and transparency? I need a classic built-in shader that uses cutout. But I also need the "full-opaque" parts to be transparently ...
WILEz's user avatar
  • 21
1 vote
1 answer
175 views

Get 3rd column and put it in another file for all CSV files with Powershell

I have a folder, with subfolders full of csv files. For each file I would like to get only the third column and save it in another file. Example: filedata1.csv aa,bb,cc cat,horse,"dog, bird" ...
Edoardo Endrizzi's user avatar
1 vote
1 answer
27 views

How can I apply a sorted value counts to bins [cut() function]

I had posted this question but was advised to restructure the question to make it clearer. First, this is a portion of the data that I am working with: Country Continent ...
Brian Cox's user avatar
0 votes
1 answer
31 views

How can I sort by a column while binning another

I am trying to cut float values of each country while grouping them by continent. I had posted this previously but I got a little farther so I am going to put where I am at now. I wrote the ...
Brian Cox's user avatar
0 votes
0 answers
18 views

Problem in R cut function for Posixct objects since R 4.3.xx

The problem is very simple. Since the last update of R (version 4.3.xx), the basic function cut applied to Posixct objects had a bug when reaching midnight... Here is a basic reproducible example: tmp=...
Fabrice Vinatier's user avatar
0 votes
3 answers
54 views

R How To Set Up Cut Function

set.seed(1) DATA = data.frame(X = sample(c(0:100), 1000, replace = TRUE)) DATA$CUT = with(DATA, cut(X, breaks = c(10,20,30,40,50,60,70,80,90), right = FALSE)) I wish to get groups: 0-9, 10-19, 20-29,....
bvowe's user avatar
  • 3,344
-2 votes
1 answer
55 views

Make backup (removal) logic in bash

I'm trying to apply a complex logic for removing old backups. Ideally, I'd like to only have backups up to 3 weeks (up to 3 weeklies, 7 dailies +-). I'd like to rely on the filename for dating the ...
Haui's user avatar
  • 36
-2 votes
3 answers
126 views

How do I check if there are duplicate values across files at a specific position

I have about 2000 files in a directory on a Linux server. In each file, the positions x-y have invoice numbers. Which is the best way to check if there are duplicates across these files and print the ...
Jayadevan's user avatar
  • 1,334
0 votes
0 answers
97 views

How to rename my bins created with dplyr mutate cut

I want to name my bins 1:10 rather than them being called the interval of values within that bin. df <- df %>% mutate(decile = cut(metric, breaks=10)) print(unique(df$decile)) 10 Levels: (0.0821,...
Sanna's user avatar
  • 21
0 votes
0 answers
13 views

Excel VBA to cut and paste rows below headers based on text in another cell

I am trying to write VBA code to select a row then cut it based on text string "CBL" in col I and paste it under the corresponding header, CABLE RACK AND IRONWORK MATERIAL, selecting row 22 (...
SSM's user avatar
  • 1

15 30 50 per page
1
2 3 4 5
113