Displaying 20 results from an estimated 1000 matches similar to: "solving a system of nonlinear equations"
2005 Apr 22
2
How to tell if R is running in batch mode
Hi
Is there a way to programmatically tell whether R is running in batch or
GUI mode?
Thanks
Dave
_______________________________________________
David Khabie-Zeitoune
Quantitative Arbitrage
Brevan Howard Asset Management
direct: +44 (0)20 7022 6167
mobile: +44 (0)7799 411 797
email: david.khabie-zeitoune@brevanhoward.com
Almack House
28 King Street
2008 Jan 21
5
"nonstandard" column names
Hi everyone,
I am sure that this question has been asked here some
time ago but I do not remember the answer and was
unable to find it in the archives...
Below is my question: suppose that I have a data.frame
x and one of it's columns name is "CPI/RPI" (without
quotation marks of course). How can I reference this
column? Neither of x$CPI/RPI or x$"CPI/RPI" work. I
2007 Jun 14
3
Responding to a posting in the digest
Is there a convenient way to respond to a particular
posting which is a part of the digest?
I mean something that will automatically quote the
original message, subject, etc.
Thank you!
Moshe Olshansky
m_olshansky at yahoo.com
2007 Mar 23
6
Updating a worksheet in Excel file using RODBC
Hello!
I have no problem reading Excel files (each worksheet in the file is a "table" which can be read - at least in my case).
What I would like to do is to read such a table, change it (just the contents, not the format) and write it back, and this I can not do. I am getting the following error messages (3 slightly different attempts):
> sqlSave(con, x, tablename =
2007 Jun 07
1
Creating an Access (.mdb) database using R
Hello!
I have a short question: Is it possible to create a
(non-existing) Access database using R (and if yes,
how)? I need to create a new database and then insert
a few tables into it.
Thank you in advance,
Moshe Olshansky
m_olshansky at yahoo.com
2017 Jun 18
2
dist function in R is very slow
Hi Stefan,
Thank you very much for pointing me to the wordspace package. It does the job a bit faster than my C code but is 100 times more convenient.
By the way, since the tcrossprod function in the Matrix package is so fast, the Euclidean distance can be computed very fast:
euc_dist <- function(m) {mtm <- Matrix::tcrossprod(m); sq <- rowSums(m*m);? sqrt(outer(sq,sq,"+") -
2007 Aug 17
1
[BioC] function to find coodinates in an array
The arr.ind in the which function does the job very nicely!!!
Thank you everyone for the suggestions!
Ana
>
>
>---- Mensaje Original ----
>De: marc_schwartz at comcast.net
>Para: m_olshansky at yahoo.com
>Asunto: Re: [BioC] [R] function to find coodinates in an array
>Fecha: Thu, 16 Aug 2007 21:53:44 -0500
>
>>If I am correctly understanding the problem, I think
2020 Mar 17
0
strange bahaviour of predict.lm
Hello,
I'm glad that it worked.
Two things:
1. Please, click reply all to keep this threaded.
2. The question should have belonged to r-help at r-project.org, not to
r-devel at r-project.org.
Rui Barradas
?s 07:10 de 17/03/20, Moshe Olshansky escreveu:
> It works, thank you!
>
> On Tuesday, 17 March 2020, 5:47:05 pm AEDT, Rui Barradas
> <ruipbarradas at sapo.pt> wrote:
2020 Mar 17
2
strange bahaviour of predict.lm
Hello,
Below is my code:
> A <- matrix(rnorm(10*3),ncol=3)
> b <- runif(10)
> reg <- lm(b ~ A)
> A1 <- matrix(rnorm(5*3),ncol=3)
> A1 <- as.data.frame(A1)
> b1 <- predict(reg,A1)
Warning message:
'newdata' had 5 rows but variables found have 10 rows
? And instead of being an array of length 5, b1 is of length 10 and is identical to reg$fitted.values
I
2007 Oct 19
2
Declaring variables in R
Please forgive me if my question is answered in Help
FAQ no. 23481739...
In language like C every variable must be declared
before it can be used.
In VBA, if a variable has not been declared it is
assumed to be of a special type (Variant).
In R (and Matlab) variables do not have to be
declared. This is convenient, but in a large program
one can make a typo which will be extremely difficult
to
2017 Aug 17
1
Problem with a regular expression.
The issue seems related to R bug report 15012:
https://bugs.r-project.org/bugzilla3/show_bug.cgi?id=15012
As mentioned in the comments there, a pull request to the TRE library has recently been made, but I don't know about its status.
Daniel
________________________________________
Von: R-devel <r-devel-bounces at r-project.org> im Auftrag von Tomas Kalibera <tomas.kalibera at
2008 Jul 10
5
rounding
Hi,
Round(0.55,1)=0.5
Round(2.55,1)=2.6
Can this be right?
Thanks,
Ed
[[alternative HTML version deleted]]
2008 Aug 24
3
Igraph library: How to calculate APSP (shortest path matrix) matrix for a subset list of nodes.
Dear R Users,
I have a network of 25000 total nodes and a list of 500 node which is a
subset of all nodes. Now I want to calculate the APSP (all pair shortest
path) matrix only for these 500 nodes.
I would appreciate any help.
Thanks in advance
Dinesh
--
Dinesh Kumar Barupal
Research Associate
Metabolomics Fiehn Lab
UCD Genome Center
451 East Health Science Drive
GBSF Builidng
University of
2009 Aug 13
3
Solutions of equation systems
Hello all!
Maybe it's a newbie question(in fact I _am_, a newbie), but I hope
you'll find the solution.
I have an equation system which has k equation and n variables (k<n).
I would like to obtain a description of the solutions (which can be the
equation of lines or a plane, or everything else) with the lesser degree
of freedom, obviously using R.
In other words, I would like to
2017 Sep 29
0
Duncan's retirement: who's taking over Rtools?
????? I concur with Moshe.? David and his team have done great thing
for R, but a lion will not become a vegetarian.? I think that any
reasonable reading of Microsoft's history will supports that
perspective.? However, this is a fairly well documented phenomenon far
beyond Microsoft.? Jean Tirole won the 2014 Nobel Memorial Prize in
Economics for establishing that, especially regarding
2007 Aug 07
5
small sample techniques
If my sample size is small is there a particular switch option that I need to use with t.test so that it calculates the t ratio correctly?
Here is a dummy example?
รก =0.05
Mean pain reduction for A =27; B =31 and SD are SDA=9 SDB=12
drgA.p<-rnorm(5,27,9);
drgB.p<-rnorm(5,31,12)
t.test(drgA.p,drgB.p) # what do I need to give as additional parameter here?
I can do it manually but
2008 Sep 26
0
Confidence interval for binomial variance
Based on simulations, I've come up with a simple function to compute
the confidence interval for the variance of the binomial variance,
where the true variance is
v = rho*(1-rho)/n
where rho = true probability of success and n = # of trials.
For x = # successes observed in n trials, p = x / n as usual.
For p < 0.25 or p > 0.75, I use the proportion-based transformed
confidence
2017 Aug 17
0
Problem with a regular expression.
The problem is in TRE library, in regcomp, while compiling the regular
expression.
This is enough to trigger in R (to do this without re-boot: ulimit -v
500000 ):
> strsplit("", "\\\\)")
To repeat in TRE, one can build TRE from sources and run
> ./src/agrep "\\\\)" README.md
Tomas
On 08/17/2017 09:45 AM, Moshe Olshansky via R-devel wrote:
> I tried
2017 Jun 17
1
dist function in R is very slow
Dear R developers,
I am visualising high dimensional genomic data and for this purpose I need to compute pairwise distances between many points in a high-dimensional space (say I have a matrix of 5,000 rows and 20,000 columns, so the result is a 5,000x5,000 matrix or it's upper diagonal).Computing such thing in R takes many hours (I am doing this on a Linux server with more than 100 GB of RAM,
2008 Jul 08
8
Sum(Random Numbers)=100
Hi R,
I need to generate 50 random numbers (preferably poisson), such that
their sum is equal to 100. How do I do this?
Thank you,
Shubha
This e-mail may contain confidential and/or privileged i...{{dropped:13}}