similar to: escape character to get " printed in output

Displaying 20 results from an estimated 80000 matches similar to: "escape character to get " printed in output"

2005 Oct 25
8
Can anyone please tell me how to strip the white spaces from a character vector?
for example: > a$tic[1:10] [1] "AIR " "ABCB " "ABXA " "ACMR " "ADCT " "ADEX " [7] "ABM " "AFCE " "AG " "ATG " Can anyone please tell me how to strip the white spaces from a$tic? Thanks, Roger [[alternative HTML version deleted]]
2007 Feb 22
3
How to print a double quote
Can anyone tell me how to get R to include a double quote in the middle of a character string? For example, the following code is close: > fnd<-"Open fnd 'test'" > cat(fnd) Open fnd 'test'> > But instead of Open fnd 'test' I need: Open fnd "test". Difference seems minor, but I am writing batch files for another
2005 Aug 19
3
using paste and "\" to create a valid filename
Sometimes even the easy stuff is difficult (for me)... I want to get input from different places to paste together an excel filename (so you know I'm using windows) that I can open with RODBC. I know about using double "\" since its an escape character, but I get either 2 or none, I can't get just one "\" where I need it. See example code below. I am using R 2.1.0,
2012 Jul 07
11
Splitting a character vector.
I am lousy at simple regex and I have not found a solution to a simple problem. I have a vector with some character values that I want to split. Sample data dd1 <- c( "XXY (mat harry)","XXY (jim bob)", "CAMP (joe blow)", "ALP (max jack)") Desired result dd2 <- data.frame( xx = c("XXY", "XXY", "CAMP",
2009 Jan 02
2
Reading file from remote location or network drive.
Hello, I'm trying to pull data from a network drive on a windows machine. The location is read into a string <rem> and then used later with a data input command. > rem<- "\\192.192.192.3\Shared\iris1.csv" Warning messages: 1: '\S' is an unrecognized escape in a character string 2: '\i' is an unrecognized escape in a character string 3: unrecognized
2007 May 24
1
how to change font size in HTML output
I have not been able to figure out how to change the font size for R2HTML::HTML output. Or for output from prettyR::htmlize. If anyone can give me a couple hints that would be great. Thanks, Roger J. Bos ********************************************************************** * This message is for the named person's use only. It may contain confidential, proprietary or legally
2006 Aug 06
2
Escape character for --exclude?
Hi-- Ok. I?ve now run into the next thing I can?t find in man, and this time, I googled as well: --exclude /afs/\* I thought you could just say: --exclude /afs/* or even --exclude /afs/ To exclude the entire afs directory. Can you explain what the purpose of the \ and * are here? Thanks again :) All My Best, Jeffrey on 8/6/06 5:00 AM, rsync-request@lists.samba.org at
2010 Mar 05
2
"\." vs "\\."
Hola a tod@s, ¿alguien me podría clarificar la diferencia entre "\." y "\\." en el siguiente caso? (He mirado ?regex, ?cat, ?Quotes y FAQ 7.37 y no lo acabo de ver) > a<-"hola.me.llamo.pepe" > a [1] "hola.me.llamo.pepe" > strsplit(a,"\.") [[1]] [1] "" "" "" "" "" ""
2010 Aug 26
3
Help with ddply to eliminate a for..loop
I created a small example to show something that I do a lot of. "scale" data by month and return a data.frame with the output. "id" represents repeated observations over "time" and I want to scale the "slope" variable. The "out" variable shows the output I want. My for..loop does the job but is probably very slow versus other methods. ddply
2007 Mar 01
2
FTP download from ftp.sec.gov
All, I have managed to download files from web sites and ftp sites using R, so just for fun I tried to do so from the SEC's ftp site using the following code: ftp <- "ftp://anonymous:test at ftp.sec.gov/edgar/full-index/company.idx" download.file(url=ftp, destfile="test.txt") And it does not work. R says it cannot open the URL. If I paste the ftp part into IE it
2005 Jan 21
6
how to use do.call("rbind", get(list(mlist)))
I have around 200 data frames I want to rbind in a vectorized way. The object names are: m302 m303 ... m500 So I tried: mlist <- paste("m",302:500,sep="") dat <- do.call("rbind", get(list(mlist))) and I get "Error in get(x, envir, mode, inherits) : invalid first argument" I know "rbind" is valid because dat <- rbind(m302, m303,
2007 May 24
1
Is it possible to print a data.frame without the row names?
Is it possible to print a data.frame without the row names? I checked ?data.frame, ?print, ?format and didn't see anything that helped. In the example below, I would just like to show the two columns of data and not the row.names 1:10. > a<-data.frame(1:10, 21:30) > a X1.10 X21.30 1 1 21 2 2 22 3 3 23 4 4 24 5 5 25 6 6 26 7
2008 Aug 16
1
How to remove white spaces
All, I am storing a string of email addresses in a table and when I retrieve them using a RODBC statement such as: test = sqlQuery(xf, "select specialist from roger_sector_specialist")$specialist 'test' is of mode list and includes a bunch of white space. As a work-around I convert 'test' to a character string, split it based on a white space, then take the first
2010 Jan 17
2
How to escape characters in Dialplan
Hello, I'm using Asterisk 1.6.2.0 and I like to use escape characters with SendText, because I can just delete the message from my phone (Thomson Speedtouch ST2030) display by sending a return-char (\n). But \n is not escaped: I tried already: exten => 222, n, SendText(\n) exten => 222, n, SendText("\n") exten => 222, n, SendText('\n') exten => 222, n,
2020 Mar 27
3
Escape character
Hi, I'm trying to understand how to use the escape character '^]' with the below command: virt-install --name=try06 --graphic none --pxe --network bridge=virbr0 --console pty,target_type=serial "Starting install... Connected to domain try06 Escape character is ^]" When I try to do '^]', it does not escape. The '--console' option makes no difference. In
2020 Mar 27
3
Re: Escape character
On Fri, Mar 27, 2020 at 01:45:21PM +0100, Ján Tomko wrote: > On a Friday in 2020, john doe wrote: > > Hi, > > > > I'm trying to understand how to use the escape character '^]' with the > > below command: > > > > virt-install --name=try06 --graphic none --pxe --network bridge=virbr0 > > --console pty,target_type=serial > > > >
2012 Mar 02
2
Why do my regular expressions require a double escape \\ to get a literal??
Hi, I was recently misfortunate enough to have to use regular expressions to sort out some data in R. I'm working on a data file which contains taxonomical data of bacteria in hierarchical order. A sample of this file can be generated using: tax.data <- read.table(header=F, con <- textConnection(' G9SS7BA01D15EC Bacteria(100) Cyanobacteria(84) unclassified G9SS7BA01C9UIR
2020 Mar 27
2
Re: Escape character
On a Friday in 2020, Erik Skultety wrote: >On Fri, Mar 27, 2020 at 01:48:58PM +0000, Daniel P. Berrangé wrote: >> On Fri, Mar 27, 2020 at 01:45:21PM +0100, Ján Tomko wrote: >> > On a Friday in 2020, john doe wrote: >> > > Hi, >> > > >> > > I'm trying to understand how to use the escape character '^]' with the >> > >
2009 Aug 17
1
regex problems with the escape character
Hi R-users and R-experts, I am having a hard time in figuring out how to tackle regex questions where the "backslash" character is an integral part of the string. Let me explain how I?came across?this problem : I wanted to clearly see all the components in the windows environmental path variable. This is a long string.?For easy readability, I wanted to split up this string so that each
2006 Oct 03
4
how ot replace the diagonal of a matrix
Dear useRs, Trying to replace the diagonal of a matrix is not working for me. I want a matrix with .6 on the diag and .4 elsewhere. The following code looks like it should work--when I lookk at mps and idx they look how I want them too--but it only replaces the first element, not each element on the diagonal. mps <- matrix(rep(.4, 3*3), nrow=n, byrow=TRUE) idx <- diag(3) mps idx mps[idx]