Displaying 19 results from an estimated 19 matches similar to: "socket bug ??? (PR#2056)"
2007 Aug 16
1
Regression tree: labels in the terminal nodes
Dear everybody,
I'm a new user of R 2.4.1 and I'm searching for information on improving
the output of regression tree graphs.
In the terminal nodes I am up to now able to indicate the number of
values (n) and the mean of all values in this terminal node by the command
> text(tree, use.n=T, xpd=T)
Yet I would like to indicate automatically in the output graph of the
tree some
2016 Apr 18
2
lists and rownames
I'm doing some string manipulation on a vector of file names, and noticed
something curious. When I strsplit the vector, I get a list of
character vectors.
The list is numbered, as lists are. When I cast that list as a data
frame with 'as.data.frame()', the resulting columns have names derived
from the original filenames.
Example code is below. My question is, where are these names
2005 Oct 19
1
Socks under R
Hi
when I use
con1 <- socketConnection(...)
in R and want to send text from another application written in Delphi to
R, do I just have to send the text or do I have to implement more
control characters and so on?
Is
con1 <- socketConnection(port=6011, server=TRUE)
writeLines("plot(rnorm(100))", con1)
just sending the text in "plot(rnorm(100))" to the socket or is
2002 Jan 26
1
Trouble with contrasts
Greetings,
I have a nagging problem with contrasts and I can't seem to resolve it.
A factor exists with four levels (lib1, lib2, con1, con2) and when I
check the contrasts or set the contrasts to any of the prespecified
ones, I do not get the exact contrasts necessary to test the
theoretically relevant ones. I need orthogonal contrasts that look just
like this matrix:
con1 con2
2008 Jan 08
1
Problems with modifying data in a MySQL database
Using the package /RMySQL/ I have established a connection ('con1') to a MySQL-Database called 'mc'.
This database contains a table called 'mc_2000' which has 200000 observations on several
variables. One of these variables is called 'B5' (type 'double').
When I generate a numeric vector in R called 'B6' that has the same length as 'B5': How
2007 May 28
1
command demands double quotes
I have an application called dynaterm which I can run successfully under
wine but to achieve 110% success I need to pass this application a parameter
which must contain double quotes
E.G. C:/Program Files/dynaterm8/dynaterm.exe -connect:"con1"
So I've tried escaping the quotes and setting the launcher command to
wine "C:/Program Files/dynaterm8/dynaterm.exe
2010 Nov 07
1
using variable in rmysql query
Dear All,
I am using this query it returns id :
id <- dbGetQuery(con1,"SELECT id FROM tenants WHERE name LIKE '%consim%'")
But In my case the string "consim" is there in another variable(it is
coming from configuration file);
> str <- "consim"
I am trying to replace the string some this like, but it not working:
> id <-
2009 Jan 28
3
initial value in 'vmmin' is not finite
Dear r helpers
I run the following code for nested logit and got a message that
Error in optim(c(0, 0, 0, 0, 0.1, -2, -0.2), fr, hessian = TRUE, method = "BFGS") : initial value in 'vmmin' is not finite
What does this mean? and how can I correct it?
Thank you
June
> yogurt = read.table("yogurtnp.csv", header=F,sep=",")> attach(yogurt)>
2009 Mar 02
1
initial gradient and vmmin not finite
Dear Rhelpers
I have the problem with initial values, could you please tell me how to solve it?
Thank you
June
> p = summary(maxLik(fr,start=c(0,0,0,1,0,-25,-0.2)))
Error in maxRoutine(fn = logLik, grad = grad, hess = hess, start = start, :
NA in the initial gradient
> p = summary(maxLik(fr,start=c(0,0,0,1,0,-25,-0.2),method="BFGS"))
Error in optim(start, func, gr =
2010 Aug 13
1
decision tree finetune
My decision tree grows only with one split and based on what I see in
E-Miner it should split on more variables. How can I adjust splitting
criteria in R?
Also is there way to indicate that some variables are binary, like variable
Info_G is binary so in the results would be nice to see "2) Info_G=0"
instead of "2) Info_G<0.5".
Thank you in advance!
And thanks for Eric who
2001 Jul 30
0
Remote controlling R via sockets
Many thanks to the R core team for their work on R connections. I was delighted to discover that it is now possible to remote-control R-1.3.0 via a socket connection - something which Brian Ripley noted was not yet possible with R-1.2.0 back in January 2001 in the first R News newsletter. How? Just substitute source() for readLines() in last few lines of the example for a socket connection given
2015 Mar 03
0
Feature request: copy attributes in gzcon
The `gzcon` function both modifies and copies a connection object:
# compressed text
con1 <- url("http://www.stats.ox.ac.uk/pub/datasets/csb/ch12.dat.gz")
con2 <- gzcon(con1)
# almost indistinguishable
con1==con2
identical(summary(con2), summary(con1))
# both support gzip
readLines(con1, n = 3)
readLines(con2, n = 3)
# opening one opens both
isOpen(con2)
2016 Oct 30
0
closeAllConnections() can really mess things up
This is what I get on R 3.3.1 on Linux:
> con1 <- textConnection("foo1", open = "w")
> print(con1)
description class mode text
"foo1" "textConnection" "w" "text"
opened can read can write
"opened"
2007 Jan 15
2
Problem with pdf, png, jpeg devices and files named CON on Window s
Hi
I cannot seem to create any files that have the name "CON" before the file
extension, i.e. all of the following fail:
> pdf("CON.pdf")
Error in pdf("CON.pdf") : unable to start device pdf
> jpeg('CON.jpeg')
Error in jpeg("CON.jpeg") : unable to start device devWindows
> png('CON.png')
Error in png("CON.png") : unable
2020 Jun 29
0
A warning in gzcon but not in gzfile
Hi all,
I used `gzfile` and `gzcon` to read a compressed file but I found that
`gzcon` gave me a different result than `gzfile`. It seems like the `gzcon`
does not handle the data correctly. I have posted an example below. In the
example, a portion of a compressed file is downloaded from Google Cloud as
a raw vector, and the data is saved into a temp file. If I use ` gzfile` to
read the file, it
2012 Apr 18
0
Error in eval when using contrast and nlme
Hi everybody,
I've written a function to run an LME model on data derived from functional magnetic resonance images. When I run the function with contrasts included I get the following error
Error in eval(expr, envir, enclos) : object 'inModelFormula' not found
I think it has something do do with the way contrast evaluates arguments, but I've got no idea how to fix it. The code
2009 Dec 02
0
[Fwd: Re: Adding and Multiplying two Unevaluated Expressions]
-------- Original-Nachricht --------
Betreff: Re: [R] Adding and Multiplying two Unevaluated Expressions
Datum: Tue, 01 Dec 2009 23:49:39 +0100
Von: Benjamin M?ller <ben_mueller.bm at web.de>
An: Rolf Turner <r.turner at auckland.ac.nz>
Referenzen: <20091201144125.316310 at gmx.net>
<8E40E49F-E8FC-4FBD-8CC5-93789FFB0E53 at auckland.ac.nz>
This works fine for your
2005 Sep 26
2
constrOptim (PR#8158)
Full_Name: Haobo Ren
Version: 2.1.1
OS: Windows 2000
Submission from: (NULL) (192.11.226.116)
When running constrOptim, there is error message
Error: subscript out of bounds
2009 Jan 28
2
t.test in a loop
Hi All,
I've been having a little trouble with creating a loop that will run a a
series of t.tests for inspection,
Below is the code i've tried, and some checks i've looked at.
I've used the get(paste()) idea as i was told previously that the use of the
eval should try and be avoided.
I've run a single syntax to check that my systax is correct and works
without any problems