search for: olshansky

Displaying 20 results from an estimated 55 matches for "olshansky".

2008 Jan 21
5
"nonstandard" column names
...e 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 certainly can do x[,which(colnames(x) == "CPI/RPI")] but there should be a nicer way to do this. Thank you! Moshe Olshansky.
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
2005 Sep 07
1
solving a system of nonlinear equations
What is the "classic" R function for solving a (possibly over determined) system of non-linear equations? Thank you! Moshe Olshansky e-mail: moshe.olshansky@brevanhoward.com The information transmitted is intended only for the person(s) or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance...
2007 Mar 23
6
Updating a worksheet in Excel file using RODBC
...(con, x, tablename = "[Chimaera20_3years]", append = FALSE, : [RODBC] ERROR: Could not SQLExecDirect 37000 -3553 [Microsoft][ODBC Excel Driver] Syntax error in field definition. Am I doing it wrong way or is there a problem with the Excel driver? Thank you in advance, Moshe Olshansky Chimaera Capital Group Moshe Olshansky Chimaera Capital Limited Level 4 / 349 Collins Street Melbourne, Victoria 3000 Phone: +613 8614 8400 Fax: +613 8614 8410 Email: molshansky@chimaeracapital.com Disclaimer: This message is intended only for the personal and confidential use of the designated...
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
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 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
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: > > > Hello, > > The problem seems to be that A is a matrix. The following solves the error. > > # create A and b as in your...
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
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 Jun 18
2
dist function in R is very slow
...2*mtm)} It takes less than 50 seconds for my (dense) matrix of 5,054 rows and 12,803 columns, while dist.matrix with method="euclidean" takes almost 10 minutes (which is still orders of magnitude faster than dist). From: Stefan Evert <stefanML at collocations.de> To: Moshe Olshansky <m_olshansky at yahoo.com> Cc: R-devel Mailing List <r-devel at r-project.org> Sent: Sunday, 18 June 2017, 2:33 Subject: Re: [Rd] dist function in R is very slow > On 17 Jun 2017, at 08:47, Moshe Olshansky via R-devel <r-devel at r-project.org> wrote: > > I am vis...
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}}
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 that this is >what >>you want: >> >>set.seed(1) >> >># Create a 3x3x3 array &...
2017 Aug 17
1
Problem with a regular expression.
...ing 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 this on a Linux (Ubuntu) server invoking R from the command line and the result was the same, except that I could kill the R session from another terminal window. > > > From: Rui Barradas <ruipbarradas at sapo.pt> > To: Chris Triggs <cm....
2017 Aug 17
2
Problem with a regular expression.
I tried this on a Linux (Ubuntu) server invoking R from the command line and the result was the same, except that I could kill the R session from another terminal window. From: Rui Barradas <ruipbarradas at sapo.pt> To: Chris Triggs <cm.triggs at auckland.ac.nz>; "r-devel at r-project.org" <r-devel at r-project.org> Cc: Thomas Lumley <t.lumley at
2007 Jul 19
3
help with heatmap - how to remove annoying "X" before numeric values?
Hello All, I have a simple question based on how things are labeled on my heat map; particularly, there is this annoying "X" that appears before the numeric value of all the labels of my columns. Let's say I have the following silly data, stored in "temp.txt" 1905 1910 1950 1992 2011 2020 Gnat 0.08 0.29 0.29 0.37 0.39 0.43 Snake
2007 Aug 10
0
set up a blank csv file and write time series to it row by row
Dear Friends. Greetings! I have asked the question of how to set up a blank file and write a list to it as a row for many times, with the number of lists unknown. I have received many beautiful solutions. Thanks go to Professor *Murdoch, Professor *Menne, Professor Grothendieck and Dr. Olshansky. I have organized the solutions below: ########################################## *Set up a blank table in harddrive and write to it row by row* *#Method 1* *blank = data.frame(name=character(0), wife=character(0), no.children=numeric(0))* write.csv(blank, 'file1.csv', row.names=FAL...
2007 Oct 11
2
Rearranging dataset
Hi all, I have a datasei like this : ID Date Price aa 01/01/07 12 aa 01/02/07 13 bb 01/01/07 23 bb 01/02/07 12 Now I want to write them in following format : ID Date Price ID Date Price aa 01/01/07 12 bb 01/01/07 23 aa 01/02/07 13