Questions tagged [paste]

The paste tag is to be used for issues relating to the paste portion of copy/paste operations.

Cut and paste and copy and paste offer user-interface paradigms for transferring text, data, files or objects from a source to a destination. The paste operation performs the copy to destination, whereas the source is often a clipboard. Often, hotkeys are employed to provide the paste functionality.

2546 questions
0
votes
1 answer

Vue/Javascript - Unable to clear input after paste event

I have a project where users need to paste something into an input field. Inside this event I need to use the pasted data and the clear the input field. But I cannot seem to get it empty. I have tried clearing the v-model element binded to the…
Stephen
  • 913
  • 3
  • 24
  • 50
0
votes
1 answer

How to force browser to paste url and not page title in Edge

I need users to copy-paste urls from external sites in a editable div of my web page ("contentEditable="true") In Edge, when the user pastes the url, it automatically pastes the page title instead of the url. I would like to force the browser to…
Paul Noon
  • 656
  • 1
  • 8
  • 25
0
votes
2 answers

Combining vector elements with paste

I have two vectors: old <- c("a", "b", "c") new <- c("1", "2", "3") I want to combine them, so that the elements of the new vector var_names are 'a' = '1', 'b' = '2', 'c' = '3'. I tried something like this: for (i in length(new)){ var_names[i]…
Tom
  • 2,173
  • 1
  • 17
  • 44
0
votes
2 answers

Paste hundreds of file with specific pattern name in bash/awk/c

I have 500 files and I want to merge them by adding columns. My first file 3 4 1 5 My second file 7 1 4 2 Output should look like 3 7 4 1 1 4 5 2 But I have 500 files (sum_1.txt, sum_501.txt until sum_249501.txt), so I must have 500 column, so…
Jakub
  • 679
  • 5
  • 16
0
votes
0 answers

Paste without leading zero of one variable being dropped?

I have a dataset (popdata) with 2 variables (STATE and COUNTY, for the state fips code and county fips code) that I needed to transform into a new variable (county_fips_code) that matches the formatting of the county fips code in another dataframe…
valeriek
  • 31
  • 1
  • 1
  • 2
0
votes
1 answer

How To Copy/Paste Partial Row

The following macro does everything it is designed for, EXCEPT the copy/paste portion. I am at a loss what correction/s to make. The macro searches each sheet, specific column (either F or G), seeking any value greater than ZERO. If found, it should…
Jerry
  • 100
  • 2
  • 9
0
votes
2 answers

Is there a way to copy and paste data while simultaneously increasing a number in that data each time?

Basically I have in my program - team[0].game[2] = loadvar[1]; team[0].game[3] = loadvar[2]; team[0].game[4] = loadvar[3]; team[0].game[5] = loadvar[4]; team[0].game[6] = loadvar[5]; team[0].game[7] = loadvar[6]; …
Troy Cox
  • 5
  • 1
0
votes
1 answer

how to merge columns in a for loop?

I have a small problem, when trying to combine columns using paste, I combine the first column and the last result of the for loop. Tell me how to combine all the results of the for loop, and not just the last one? if(i==1 | j==2){ …
0
votes
0 answers

Excel: Copy to another sheet and past under the existing value

First of all I am learning VBA new, thats why the code is very simple I think. I made a macro with this logic: Step 1 :go on Sheet "table1" and copy cell "C1" & "E2" Step 2: Then go "table2" and Past cells in "A1" & "B1" Step 3: Delet in "table1"…
Kerem
  • 9
  • 3
0
votes
1 answer

Use paste within for loop

I'm trying to use paste in a for loop in R to create new expressions for a ggplot. I currently have: x_axis_label <- list() for (i in seq_len(4)) { x_axis_label[[i]] <- expression(paste("10"^as.character(i))) } but this…
AW27
  • 481
  • 3
  • 15
0
votes
2 answers

Cannot paste text in xfce4-terminal

After updating my distribution with Xfce 4.14, I am unable to copy and paste some characters into xfce4-terminal. For example, I can paste "test" but not "test α". This is highly frustrating. I would prefer if the unknown character was replaced with…
YSN
  • 2,504
  • 1
  • 14
  • 12
0
votes
1 answer

How to paste as values with VBA after Autofiltering and using .End

I am using the following code to autofilter the data on one sheet and paste specific columns onto another sheet. The issue I have is that the data on the wsData sheet in columns AG and AJ is formula, but I need it to be pasted as values. How do I…
Dan Kidney
  • 143
  • 1
  • 11
0
votes
2 answers

Is there a way make a parameter of a function be put in quotes in one life of code and not the other?

I'm not showing my actual code because it has many running parts, so let me just showcase what I am running into. I have this function: paste <- function(d) { print(paste0(d,"_test", sep ="")) } What I wanted returned would be if I did…
vpatel
  • 43
  • 4
0
votes
2 answers

Can you paste an image as a link to another page

I want to be able to paste a link to users directing them to my home page but instead of it being just a link I want to paste and share the logo pic so when users click on the logo pic they are taken to my home page - I'm just trying to make my…
robert
  • 21
  • 5
0
votes
1 answer

copy/paste row with event 1 row down and create new event on top of former row with event. The events themselves are text

I hope you will be able to help me. I need to do the following in Excel: a. Newest event comes on top and the former event moves 1 row down (below), and; b. After newest event has been copied and pasted to 1 row down, the first row is clear of any…
Stanley
  • 1
  • 1
1 2 3
99
100