Displaying 20 results from an estimated 5000 matches similar to: "quotes in cat() within function"
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
2010 Jul 20
2
loop through files and create object
Hi R users,
I am a newbie and therefore the naive question. Sorry but I was unable
to find an answer online. I would like to read 47 data sets
(country1.raw, country2.raw, ... country47.raw) and save into a matrix
each time (data1, data2, ....data47).
for (i in 1:47){
data(?) <- read.csv(file.path("country", i, ".raw", fsep = ""), header = TRUE)
}
The read.cvs
2012 Aug 27
2
looping through numbered variables
Hello,
This is a beginner question. I am trying to loop through numbered
variables with "apply" to calculate weighted means. My data is "data",
the variables are "var1" to "var100", the weight is "weight". The
command works using
sapply(paste('data$var', 1:100, sep=''), function(x)
weighted.mean(eval(parse(text=x)), data$weight))
2011 Dec 13
2
febootstrap error ?
hi,
i am not quite sure about the below error:
[ 1320.506848] INFO: task init:1 blocked for more than 120 seconds.
[ 1320.510069] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs"
disables this message.
The below commands
guestmount,
virt-*
either hangs or taking a gazillion time to finish (not correctly).
I've attached a file with two cases
In both cases, in tmp folder
2013 Feb 05
1
lmer - BLUP prediction intervals
Dear all
I have a model that looks like this:
m1 <- lmer(Difference ~ 1+ (1|Examiner) + (1|Item), data=englisho.data)
I know it is not possible to estimate random effects but one can
obtain BLUPs of the conditional modes with
re1 <- ranef(m1, postVar=T)
And then dotplot(re1) for the examiner and item levels gives me a nice
prediction interval. But I would like to have the prediction
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
2001 Nov 08
2
Command line DB reads
Is there a way to get information on a print job from the command line? For
example:
> smb_print_query smbprn.00002.a12345
jobid = pr1000-555
filename = Notepad - sample.txt
owner = dan_thibadeau
machine = mylaptop
size = 1234 bytes
or something like that?
Thanks,
Dan Thibadeau
2007 Aug 07
1
lmer() : crossed-random-effects specification
Dear all,
I want to estimate a crossed-random-effects model (i.e., measurements,
students, schools) where students migrate between schools over time.
I'm interested in the fixed effects of "SES", "age" and their
interaction on "read" (reading achievement) while accounting for the
sample design. Based on a previous post, I'm specifying my model as:
fm1 <-
2009 Dec 04
2
two questions about ssh tunneling
if I:
ssh -fND localhost:6000 somebody at 192.168.56.5 -p PORTNUMBER
from computer "A" to computer "B" [B = 192.168.56.5] then I can set the
SOCKS proxy for e.g.: Firefox to use "localhost:6000" on computer "A".
Ok. I can surf the web through "B".
But:
- Can anyone sniff the traffic of "A"? [e.g.: computers on same subnet
as
2006 Feb 16
4
FTP Server and IPTables?
I'm having a heck of a time getting vsftpd to work properly. When Iptables are
OFF, it works fine, and when iptables is on, it dies. When I try ftp from a
command line, here's what the session looks looks like:
[root at mylaptop ~]# ftp ftp.server.com
Connected to ftp.server.com.
220 Welcome to My Company FTP
530 Please login with USER and PASS.
530 Please login with USER and PASS.
2009 Aug 25
3
Auto update
Hello, at this moment we use redhat and centos on mylaptop.
I upgraded from centos 5.2 to 5.3.
I have something strange, my auto update is not running any more, if
I start the update process manually and it is working.
If i do a clean install of centos 5.3 on a pc or laptop it is working.
My question is why is the auto update not running any more afther the
update process.
Met vriendelijke
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
2012 Aug 06
2
Straight-quotes for usage and examples sections in PDF docs?
Is there any way to ensure that quotation marks are left as straight
quotes and not converted to curly quotes in the \usage and \examples
sections when the pdf versions of the docs are created?
2016 Feb 21
5
Database left unlocked by Tcl bindings
I discovered, while trying to set up Tcl bindings for Notmuch
(https://notmuchmail.org/), which uses Xapian, that flintlock was not
being locked (I had lost updates).
I then found that opening a Xapian database for writing directly via
the Xapian Tcl bindings also silently fails to lock flintlock.
I have taken a copy of flint_lock.cc to play with, and I find that it
locks the file when called
2009 Oct 31
1
how to set default proxy?
hi
I know that I could use ssh tunneling:
ssh -fND localhost:6000 SOMEBODY at 192.168.56.5 -p PORTNUMBER
to surf the web through another machines internet connection -> I just need to set Firefox to use proxy 6000.
But:
How can I set that on the client side, to e.g.: ping through the
machine with openssh-server? Not just setting Firefox to use port 6000.
Is there any method for
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|
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.
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
2011 Mar 19
2
Spaces following quotes disappear
I have a line that includes a double quotation mark followed by 5 spaces,
and then some text, like so:
" global"
when it is converted with markdown, the spaces disappear, so it results in
"global"
Is there a way to keep these spaces in there?
Thanks for any help.
Rick
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2016 Feb 24
4
Database left unlocked by Tcl bindings
On Wed, 24 Feb 2016 03:17:35 +0000, Olly Betts <olly at survex.com> wrote:
>On Mon, Feb 22, 2016 at 12:26:27PM +0100, Eric wrote:
>> On Sun, 21 Feb 2016 22:33:22 +0000, Olly Betts <olly at survex.com> wrote:
>>> On Sun, Feb 21, 2016 at 02:15:25PM +0100, Eric J wrote:
>>>> I discovered, while trying to set up Tcl bindings for Notmuch
>>>>