similar to: Add qoutation marks and combine values in a vector

Displaying 20 results from an estimated 6000 matches similar to: "Add qoutation marks and combine values in a vector"

2009 Nov 11
3
how to use # in a rd doc in url address
I am writing a rd doc, and need to use "#" in a url adress. This would make: \url{http://www.xxxx.org/myfolder/#myanchor} Of course, I suppose this will not work because # is a special character starting a comment line in the rd dialect. I did not found a similar example in "Writing R exentions". I am not sure bout using \dQuote{a quotation}), and use \sQuote and \dQuote
2013 Apr 09
4
quotes in cat() within function
Hello all, Sorry if this question has been answered in the past, but I could not find an answer. I am trying to print quotes within a cat output. The arguments are: file= "Data labels" directory= "/home/mylaptop/" The function returns: cat("The file", file, "is located in directory", directory, sep=" ") The output R prints is The file Data
2008 Jun 27
1
use of quotation marks
Dear R Users. I just discovered today a problem in the use of quotation marks when I'm doing some programs in R. I'm using windows vista environment. The programs that I wrote in the University, made in Windows XP machines run perfectly, but when I run those in my laptop with VISTA, there are many errors. Those errors are due to the type of quotation marks. In the university the quotation
2013 Nov 17
4
quotation marks and scan
Dear R People: I'm sure that this is a very simple problem, but I have been wresting with it for some time. I have the following file that has the following one line: CRS("+init=epsg:28992") Fair enough. I scan it into R and get the following: > u [1] "CRS(\"+init=epsg:28992\")" > gsub(pattern='\"',replacement='"',x=u) [1]
2011 Feb 06
1
Psych can't load LaTeX entities file
Hi there, I wanted to use RedCloth with my RubyOnRails 3 application, but it seems that RoR uses 1.9.2''s Psych by default as the YAML parser if available, and Psych fails to load the LaTeX entities file: ==================================================================== #ruby -v: ruby 1.9.2p136 (2010-12-25 revision 30365) [x86_64-linux] irb(main):001:0> Dir.pwd =>
2010 Sep 12
4
using read.table, removing extra quotation mark from a text field? (e.g. ""cat" )
I am using read.table to import a text file within R.   There are several "errors" in my text file.  An "extra" quotation mark has inadvertently been included within a few text fields.   e.g. for a pipe (|) delimited text file, I have something similar to this:   1|7|30| "dog" 2|6|25| ""cat" 3|4|20|"" 4|5| 56| "mouse" 5|3|56|
2017 Oct 13
1
Quotation marks hinder for loop
Dear mailing list members, My question is maybe very basic, but I could not find the solution. I would like to do the following things 1) colnames(V1)[2] <- par$V2[1] colnames(V2)[2] <- par$V2[2] colnames(V3)[2] <- par$V2[3] ... colnames(V37)[2] <- par$V2[37] 2) V1 <- V1[,-1] V2 <- V2[,-1] V3 <- V3[,-1] ... V37 <- V37[,-1] 3) ms <- merge(V1,V2) ms <- merge(ms,V3)
2005 Jul 12
1
write.foreign, SPSS on Mac OS X
Hi all, I have jut installed the foreign package (v 0.8-8) on my OS X machine, and have a bit of a problem writing out a data frame in SPSS format. Specifically, the code file (the .sps format file) seems to write 3 unprintable hex values instead of double quotes. For example, in the following output ... VALUE LABELS / immDel 1 ###1### 2 ###2### 3 ###3### ... emacs tells me that
2005 Apr 30
3
How to extract function arguments literally
Dear all, One of my friends asked me if it is possible to extract actual R function arguments literally (precisely, as strings). The reason is simple. He feels sometimes awkward to attach quotation marks :-). What he actually wants is to pass R command arguments to XLisp subroutines (He has been an enthusiastic XLisp user for a long time and still tends to use R as a wrapper to XLisp). Is it
2012 Jun 06
3
Removing Double Quotations After Using Cbind
Hi, I am trying to process genomics data and the presence of both characters and integers in an array is giving issues. The following is an example: > a<-array(c(2,2,"X",1:3,2:4),dim=c(3,3)) > b<-cbind(a[,1],a[,2]) With the output being: [,1] [,2] [1,] "2" "1" [2,] "2" "2" [3,] "X" "3" Is there any
2006 Aug 17
6
what did I do to my app? (Superclass mismatch?)
It was working before (as far as I can tell), but I freezed_edge and now... The first time I load this page, it works fine, the second time I get the superclass mismatch, the third time (and any subsequent times ) i get undefined method. I think this means my class is getting loaded twice? my model looks like this: class Quotation < ActiveRecord::Base has_many :price_breaks has_many
2012 Jan 24
1
gsub semicolon with double quotation mark
Hi, I would like to substitute a semicolon with two double quotation marks and a comma inbetween. It suppose to look like that: I have: FBpp0070086;FBpp0099643;FBpp0112915 I would like to have: "FBpp0070086","FBpp0099643","FBpp0112915" I tried with various numbers of backslashes, but noe have worked. for example: gsub(";", "\\\",\"",
2007 Nov 26
1
pass lm( ) a char vector as the variables to be included
Dear Everyone in list: I am writing some codes to automate the process of fitting linear models where the names of variables of models are produced and stored in character vectors. But I have problems to pass the vectors to the lm( ) because I don't know how to strip the quotation marks automatically. Here are the codes of the example of lm( ): ## Annette Dobson (1990) "An Introduction
2010 Dec 14
2
How to left or right truncate a character string?
Hi R-helpers, I have a character string, for example: "lm(y ~ X2 + X3 + X4)" from which I would like to strip off the leading and trailing quotation marks resulting in this: lm(y ~ X2 + X3 + X4) I have tried using gsub() but I can't figure out how to specify the quotation mark using a regular expression. Alternatively, I would like a function that lets me delete the leading
2019 Mar 21
1
imap ---- LIST "" * The returned mailbox does not display quotes
dovecot version v2.2.29 v2.2.36 v2.3.5 LIST "" * The returned mailbox does not display quotes dovecot version v2.1.17 LIST "" * The returned mailbox shows quotation marks Why is the quotation mark removed in the new version? Is there any configuration option in the new version to add quotes? Because I see a lot of big public mailboxes with quotation marks.
2006 Sep 04
3
opening files in directory
Hi there I want to be able to take all the files in a given directory, read them in one at a time, calculate a distance matrix for them (the files are data matrices) and then print them out to separate files. This is the code I thought I would be able to use (all files are in directory data_files) for(i in 1:length(files)) + { + x<-read.table("data_files/files[[i]]") +
2008 Feb 22
3
Simultaneously summarizing many models
Dear R users, Let?s say I have 10 models, each named m1,m2,m3..., and I would like to summarize them automatically and simultaneously - e.g., to extract parameter estimates later on from all models; how can I do that? I have tried: x=1:10 #this creates some example data y=rnorm(10) m1=lm(x~y) m2=lm(x~1) sum.lms=function(x)summary(paste("m",x,sep="")) sum.lms(1:2) but
2004 Mar 18
2
character -> list
Hi I have a matrix of type "character" (strangly) and am trying to apply the function "aggregate" to it, but unfortunately without success. It seems to me that aggregate would work, if I only could get rid of the quotation marks around each item. So for a very simple example which looks as my actual data look (of course here I put the quotation marks on purpose, but I have
2008 Dec 08
2
I need to run windows program with command line parameters?
In Windows; to have Firefox pass psyn links to the Curse client I use this command: Code: "C:\Program Files\Curse\CurseClient.exe" -url "%1" but when I try to get Linux's Firefox to pass the psyn link to the Curse client running in wine, wine of course assumes that -url and the quotation marks are for it and not the actual Windows command it's meant to run. How do I
2009 Mar 27
1
Sweave-output causes error-message in pdflatex
Dear list, Latex/Sweave has trouble processing Sveave-output coming from the summary-command of a linear Model. >summary(lmRub) The output line causing the trouble looks in R like this Signif. codes: 0 ?***? 0.001 ?**? 0.01 ?*? 0.05 ?.? 0.1 ? ? 1 In my Sweaved Tex-file that line looks like this Signif. codes: 0 ?***? 0.001 ?**? 0.01 ?*? 0.05 ?.? 0.1 ? ? 1? (actually in the editor the