paste

Convert bitmap to png in Excel

爱⌒轻易说出口 提交于 2019-12-10 12:14:47
问题 I need to get screens (prt sc) and document them for a specification in Excel. However clipboard manager for paste special only include to paste as bitmap. It would have been utter benefitial to have the full list of imaage extentions support. So is there any other alternative to convert all bitmap images in Excel files to .png? I am open to VBA ideas. Specially if one press F5 could get all done. I have seen these posts in SO for C#. Also read this post talking about Excel, but really not

loop to create several matrix in R (maybe using paste)

China☆狼群 提交于 2019-12-10 10:54:00
问题 I want to create 27 matrix with 2 columns and a variable number of rows. I could just write 27 lines of code, like this: x1 = cbind(rep(1,34), rnorm(34)) x2 = cbind(rep(1,36), rnorm(36)) .... x27 = cbind(rep(1,k), rnorm(k)) But it must have a better way to do that. I thought of a loop, something like this: aux = c(34, 36, ..., k) # auxiliar variable with number of rows for each matrix for (i in 1:27) paste("x",i, sep="") = cbind(rep(1,aux[i]), rnorm(aux[i])) However, it doesn't work. I feel

Wrap long lines in Vim?

流过昼夜 提交于 2019-12-10 10:21:35
问题 I've noticed that gq does not work when I paste in a long line. For example, with a textwidth=72 and formatoptions=tcroqbnl , gq refuses to wrap this (in insert mode, I pasted the entire label contents, and then exited insert mode with ESC ): <label for="contact_reason_1">To get assistance with or to confirm a tire replacement recommendation</label> If I add a line break in (after "to", for example), it'll wrap then. The funny thing is if I join the line back together, it'll happily wrap it

After pasting a yanked line in Vim, why can't I paste it again?

为君一笑 提交于 2019-12-10 09:22:41
问题 This question was probably answered before, but I tried searching and could not find the answer anywhere. I am somewhat new to Vim and I am having the following issue. Once I yank a line and paste it, i cannot paste it again. For example, say in Word environment you would copy a text, paste it and then you can paste it again further. But in Vim, once I have pasted it and then try pasting again (p), it pastes the text I pasted the yanked line over. So for example, I yanked the line "This line

Create and Copy hyperlink with text/caption to Clipboard with c#

对着背影说爱祢 提交于 2019-12-09 04:41:33
问题 In all sorts of programs you can copy hyperlinks to clipboard and paste them into other applications. E g the ’feedback always welcome’ link at the bottom of this page can be copied and pasted into MS Word. I want to create such a link programmatically, copy it to the Clipboard and then be able to paste it somewhere else. For example a link with the text Stack that maps to stackoverflow.com . I’ve tried all sorts of things with Clipboard.SetData but nothing seems to do the trick. (I'm working

Equivalent of Paste R to Python

那年仲夏 提交于 2019-12-09 04:20:12
问题 I am a new python afficionado. For R users, there is one function : paste that helps to concatenate two or more variables in a dataframe. It's very useful. For example Suppose that I have this dataframe : categorie titre tarifMin lieu long lat img dateSortie 1 zoo, Aquar 0.0 Aquar 2.385 48.89 ilo,0 2 zoo, Aquar 4.5 Aquar 2.408 48.83 ilo,0 6 lieu Jardi 0.0 Jardi 2.320 48.86 ilo,0 7 lieu Bois 0.0 Bois 2.455 48.82 ilo,0 13 espac Canal 0.0 Canal 2.366 48.87 ilo,0 14 espac Canal -1.0 Canal 2.384

Paste Unlinked Excel Chart to Powerpoint

試著忘記壹切 提交于 2019-12-08 08:30:24
问题 I'm currently working on a project transferring 50+ groups of Excel Charts to a powerpoint presentation. I have 50+ items that I'm comparing and making 50+ identical charts. The way that I have it set up in my excel workbook is that the chart is always the same chart (ie Chart 2), but by changing a unique ID number, my chart will source from a different area of the worksheet. In the usual case, I would just copy and paste the chart as a picture. However, in my case, I also need to get rid of

how to display text on several lines with geom_text in faceting wrap

怎甘沉沦 提交于 2019-12-08 08:09:52
问题 This is my df : df <- data.frame(annee = rep(c(2003,2004), times = 1, each = 3), sps = c("a", "b", "c"), nb = 1:3) I create a column containing my labels : df$labels <- paste("nb", df$sps, "=", df$nb) Then I do my plot : ggplot(df, aes(nb)) + geom_density(aes(fill = sps, colour = sps), alpha = 0.1) + facet_wrap(~ annee) + geom_text(data=df, aes(x=8, y=2.5, label= labels), colour="black", inherit.aes=FALSE, parse=FALSE) But I have a problem with my text in each facet : I would like to have 3

comma within paste in R

人盡茶涼 提交于 2019-12-08 06:49:36
问题 I would like to paste something that has "" within. > i = 4 > paste("var", i, "option="juk"", "--opt2 12") Error: unexpected symbol in "paste("var", i, "option="juk" What the pasted phrase should look like (which included comma within) var 4 option = "juk" --opt2 12 Is there any way to solve this ? 回答1: One option would be (x <- paste("var", i, 'option="juk"', "--opt2 12")) # [1] "var 4 option=\"juk\" --opt2 12" cat(x) # var 4 option="juk" --opt2 12 来源: https://stackoverflow.com/questions

How to append column number in front of every element?

五迷三道 提交于 2019-12-08 06:40:52
问题 Here is a simple data: a <- c( "a" ,"a") b <- c("b", "b") df <- data.frame(a, b) df[] <- paste0(1:2, unlist(df[,1:2])) a b 1 1a 1b 2 2a 2b The output I am looking for is: a b 1 1a 2b 2 1a 2b Any efficient way to do this? This works, but I am sure there is a much better way. Thanks! df2[] <- paste0(col, unlist(t(df2[,1:2]))) t(df2) 回答1: Try this: df[] <- Map(paste0, seq_along(df), df) df ## a b ## 1 1a 2b ## 2 1a 2b 来源: https://stackoverflow.com/questions/52708734/how-to-append-column-number