Displaying 20 results from an estimated 10000 matches similar to: "retrieving last R output"
2010 Jul 19
2
problems with plot()
I have a list of vectors of length 2, each representing a point in 2-space,
and each of which I wish to plot on the current plot.
In a loop, I assign the x and y coordinates of the current element of the
list to variables 'x' and 'y' respectively, then make a call to plot as
follows:
par(new = TRUE)
plot(x,y, xlim = c(0,1),ylim=c(0,1), xlab <- "x", ylab <-
2012 May 15
1
Odd behaviour of identical()
Consider the following code:
test <- function(n)
{
for(x in 1:n)
{
for(y in 1:n)
{
for(r in max(x-1,1):min(x+1,n))
{
for(s in max(y-1,1):min(y+1,n))
{
vec <- c(x-r,y-s)
print(c("vec = ", vec))
print(identical(vec,c(0,0)))
}
}
}
}
}
If you run test(2) you'll see a printout of the values
2010 Jul 06
2
Odd subsetting behaviour
Hello. I've observed some odd behaviour. Most likely, it is already known and
explained somewhere, but I can't find an explanation anywhere, so I would
appreciate being pointed in the right direction.
The issue with the following code is self explanatory:
> mat <- matrix(c(c(1,1,1),c(2,2,2)),nrow=3)
> mat[,c(1:3%/%2)]
[,1] [,2]
[1,] 1 1
[2,] 1 1
[3,] 1 1
2012 May 14
3
How to apply a function to a multidimensional array based on its indices
Hello. I have a 4 dimensional array and I want to fill in the slots with
values which are a function of the inputs. Through searching the forums here
I found that the function "outer" is helpful for 2x2 matrices but cannot be
applied to general multidimensional arrays. Is there anything which can
achieve, more efficiently than the following code, the job I want?
K <-
2005 Aug 13
1
retrieving large columns using RODBC
Hi,
I have a large table in Postgresql (result of an MCMC simulation, with 1
million rows) and I would like to retrive colums (correspond to variables)
using RODBC. I have a column called "index" which is used to order rows.
Unfortunately, sqlQuery can't return all the values from a column at once
(RODBC complains about lack of memory). So I am using the following code:
2006 Aug 21
1
Retrieving p-values and z values from lmer output
I can't find a way to retrieve z values and p-values from the output
from lmer in the lme4 package. How is this done?
Rick B.
2010 Sep 15
1
retrieving object names passed indirectly to a function
Hi folks,
I'm stuck with a problem that I suspect has a trivial solution...
I have a function, call it foo, that takes a number of arguments which
it uses as parameters for a simulation. For later analysis, foo stores
the names of the objects passed to it along with the simulation
results in its output (written to a database). The objects names are
accessed with deparse(substitute(argname)).
2008 Sep 15
1
Loop for running several models and retrieving outputs
Hi All:
I need to run a bunch of models one-by-one and retrieve the outputs (like
estimates, p values) accordingly. Some of models may not have outputs due to
singularity or even no observations. If this happens, assign NA to the
outputs.
For example,
#running models
fit.mod <- lm(xxxxxxxxxx) #model 1
fit.mod <- lm(xxxxxxxxxx) #model 2
.........
fit.mod <- lm(xxxxxxxxxx) #model 10
2010 Aug 13
2
Unable to retrieve residual sum of squares from nls output
Colleagues,
I am using "nls" successfully (2.11.1, OS X) but I am having difficulties retrieving part of the output - residual sum of squares. I have assigned the output to FIT:
> > FIT
> Nonlinear regression model
> model: NEWY ~ PMESOR + PAMPLITUDE * cos(2 * pi * (NEWX - POFFSET)/PERIOD)
> data: parent.frame()
> PMESOR PAMPLITUDE POFFSET
>
2010 Jun 10
3
Retrieving the 2 row of "dist" computations
Dear R Gurus,
As you probably know, dist calculates the distance between every two rows of
data. What I am interested in is the actual two rows that have the least
distance between them, rather than the numerical value of the distance
itself.
For example, If the minimum distance in the following sample run is d[14],
which is .3826119, and the rows are 4 & 6. I need to find a generic way to
2008 Apr 02
0
[LLVMdev] Retrieving local variable names.
On Apr 2, 2008, at 1:33 PM, Alireza.Moshtaghi at microchip.com wrote:
> Is this something that will happen in future? Or there is no plan for
> it?
I am not aware of any plan to add this. I suspect this won't happen
until there is a major push to improve debugging support. If you are
interested in this area, feel free to contribute! :-)
Evan
>
>
> Thanks,
> Ali
>
2010 Mar 16
2
Retrieving latitude and longitude via Google Maps API
Does anyone have any experience retrieving latitutde and longitude for
an address from the Google Maps API?
I'd like to have an R script that submits a street address, city, state,
and zip code and returns the coordinates. So far, I've been submitting
the coordinates from another program, then loading the coordinates in R
and merging them back into the data frame I want to use.
2008 Apr 02
3
[LLVMdev] Retrieving local variable names.
Is this something that will happen in future? Or there is no plan for
it?
Thanks,
Ali
-----Original Message-----
From: llvmdev-bounces at cs.uiuc.edu [mailto:llvmdev-bounces at cs.uiuc.edu]
On Behalf Of Evan Cheng
Sent: Wednesday, April 02, 2008 10:30 AM
To: LLVM Developers Mailing List
Subject: Re: [LLVMdev] Retrieving local variable names.
It's not currently available. LLVM would have to
2008 Oct 22
3
retrieving matrix elements by giving pairs of row AND column numbers?
Hi,
this is probably a very trivial question but I can't figure out the right terms to find the solution in the list archive.
I have a matrix or a data.frame or the like:
> m <- matrix(ncol=3,seq(1,9))
> m
[,1] [,2] [,3]
[1,] 1 4 7
[2,] 2 5 8
[3,] 3 6 9
and now I wonder if one can provide somehow two vectors, one containing row numbers, the other
2016 Apr 24
2
Retrieving numeric value of instruction operand
Hello Everyone,
I need some help in retrieving the numeric value of an instruction operand
from LLVM IR.
this is what the IR looks like for a simple add function that adds two i32
integers
define i32 @summ(i32 %a, i32 %b) #0 {
entry:
%add = add nsw i32 %b, %a
ret i32 %add
}
i would like to know the integer value of %a and %b.
I've tried
-i->getOpcodeName() which gives me the
2009 Oct 29
3
Trouble retrieving data (.xls) from folder on my computer.
Using gdata on windows and im having trouble to retrieve an excel file from a
folder on my computer.
This is my dummy:
R > download.file("http://people.su.se/~lundh/data/cpi_kpix.rda",
+ "cpi_kpix.rda")
R > URL <- "http://people.su.se/"
R > PATH <- "~lundh/data/"
R > FILE <- "cpi_kpix.rda"
R >
2006 Dec 06
17
[SURVEY] MIME types questions for Mongrel 1.0 RC1
I need people to answer a survey super quick for the next little release of Mongrel. Basically, nobody ever agrees on mime types, especially defaults, which is why Mongrel has none and you set your own. Sometimes people just refuse to set their own and want Mongrel to do everything for them, but if that happens then people will complain about the defaults.
Damned if I do, damned if I
2006 Jun 16
1
Is there a way of retrieving all req parameters without name
Is there a way of retrieving all the request parameters without name in
the controller.
Thanks & Regards,
Asem
--
Posted via http://www.ruby-forum.com/.
2010 Jan 20
1
Retrieving data through bbg or excel, what is faster?
Hello, I need to retrieve datas from bloomberg.
I want to retrieve those datas in the fastest way as possible. I have two
options:
writing the datas from bbg to excel and reading from r the excel sheet or
directly
read the datas from from r with a Rbbg connection. Which connection is
faster?
Thank you
--
View this message in context:
2012 Mar 29
1
Retrieving matrix column and row names by index value
Hi all,
So let's say I have a matrix, mdat and I only know the index number. How do
I retrieve the column and row names?
For example,
> mdat <- matrix(c(1,2,3, 11,12,13), nrow = 2, ncol=3, byrow=TRUE,
dimnames = list(c("row1", "row2"),
c("C.1", "C.2", "C.3")))
> mdat[4]
[1] 12
>