Displaying 20 results from an estimated 20000 matches similar to: "use of quotation marks"
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]
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|
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(";", "\\\",\"",
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)
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
2008 May 05
3
downloading packages at local disk
Hi again R users. I was reviewing the manual of R about how to install
packages using the GUI and it's corresponding menu packages. My
question is how to download a specific set of packages in order to
install them in a computer that doesn't have internet access. Is there
a web page where I can search those packages? Basically I'm trying to
copy in a flash drive the packages MASS, BOOT
2006 Apr 25
1
Add qoutation marks and combine values in a vector
I wish to place quotation marks around each element of the following
list;
X1
1 Label 1
2 Label 2
3 Label 3
4 Label 4
and combine the values in the following format for use in another
function;
c("Label 1","Label 2","Label 3","Label 4")
Many thanks,
Jerry
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
2008 Dec 23
1
quotation problem/dataframe names as function input argument.
Dear R friends:
Can someone help me with the following problem? Many thanks in advance.
# Problem Description:
# I want to write functions which take a (character) vector of dataframe
names as input argument.
# For example, I want to extract the number of observations from a number of
dataframes.
# I tried the following:
nobs.fun <- function (dframe.vec)
{
nobs.vec <-
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
2009 Jul 09
1
FW: Quotation Request - OpenSSH
Dear Sir,
We would lik to subscribe the support for OpenSSH for a tender project.
Please kindly advise the annual subscription plan (with details of SLA) &
annual fee.
For the price, is it determined by number of server? or number of CPU? or
number of core?
Shall we get quotation/support from you? or please advise the reseller
contact.
Since the tender will be closed next week, may we
2004 Nov 26
2
E&M Digium card quotation
i need a quotation for a E&M Digium card for my asterisk PBX
where i can find it???
thank you in advance
Rodney Acosta Coya.
2006 Jan 25
0
benchmarker and quotation marks
Hello, just getting around to tuning and the benchmarker script.
I understand, from the rails book, that the command used is:
script/benchmarker 10 "Product.search(''version_control'')"
Maybe I''m misunderstanding it but what if there are some nested " or ''
required inside the command, such as:
script/benchmarket 10 "Question.find(:all,
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
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.
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
2006 Jul 16
1
Generating valid R code using R
Hi,
I'm trying to generate valid R code using R. Parts of the task is to
read a sequence of characters from file and escape them such that they
can be put in quotation marks to form a valid R code string. Example:
Let the input file be (four rows containing ASCII 0-255 characters):
abcdef<tab>ghijk\nlmno
second row\t\a\\
fourth and so on...
<EOF>
Now, find escapeString() such
2006 Jul 16
1
Generating valid R code using R
Hi,
I'm trying to generate valid R code using R. Parts of the task is to
read a sequence of characters from file and escape them such that they
can be put in quotation marks to form a valid R code string. Example:
Let the input file be (four rows containing ASCII 0-255 characters):
abcdef<tab>ghijk\nlmno
second row\t\a\\
fourth and so on...
<EOF>
Now, find escapeString() such