Displaying 20 results from an estimated 6000 matches similar to: "data.frame query"
2010 Dec 23
5
Writing a single output file
Dear R helpers!
Let me first wish all of you "Merry Christmas and Very Happy New year 2011"
"Christmas day is a day of Joy and Charity,
May God make you rich in both" - Phillips Brooks
## ----------------------------------------------------------------------------------------------------------------------------
I have a process which generates number of outputs. The R code
2008 Mar 07
3
Error
Hello!
I need some help, because I don't know how this error means: Error:
variables ?Output1?, ?Output2?, ?Output3?, ?Output4?, ?Output5? were
specified with different types from the fit
Execution halted
Can you help me?
Thank You
2012 Oct 11
2
Repeating a series of commands
I'm trying to figure out how to repeat a series of commands in R and have the
outputs added to a dataframe after each iteration.
My code starts this way...
a<-read.csv("File1.csv")
b<-read.csv("File2.csv")
2011 Jun 29
3
[LLVMdev] specint2000 as external tests
Hi Duncan,
Do you have sources also in
the $LLVM_SRC_ROOT/projects/test-suite/External/SPEC/CINT2000/164.gzip?
The following is content of above directory in my case. I have copied the
CINT2000 sources in this directory manually.
$ls -1 $LLVM_SRC_ROOT/projects/test-suite/External/SPEC/CINT2000/164.gzip
164.gzip.reference_output
164.gzip.reference_output.small
compile_info
compile_parms
2007 Jun 19
1
A question about plots and lists in functions
R-helpers:
I tried googling and couldn't find anything.
I have a function I am sourcing into R that does some calculations to
generate a simulated dataset. I currently have a a list set up to store
the outputs from the function and a plot of one of them (a set of
ordered pairs) like this:
foo<-function(x,y,z){
## do some work here ##
list(x=x,y=y,z=z,output1=output1,output2=output2,
2008 Feb 13
4
rolling sum (like in Rmetrics package)
Hello, I'm new to R and would like to know how to create a vector of "rolling
sums". (I have seen the Rmetrics package and the rollMean function and I
would like to do the same thing except Sum instead of Mean.) I imagine
someone has done this, I just can't find it anywhere.
Example:
x <- somevector #where x is 'n' entries long
#what I would like to do is:
x1
2012 May 20
2
Remus network buffering problem
Hi all,
I have a following problem:
- Remus network buffering doesn''t work. It seems to be because of no vif is
reported by the function server.xend.domain on line 29 of
/usr/local/lib/python2.7/dist-packages/xen/remus/vm.py (seen using pdb) :
27 if domid:
28 try:
29 self.dominfo = server.xend.domain(domid, ''all'')
>
2012 Feb 10
4
qemu-xen qdisk performance
Hello,
I''ve recently setup a Linux Dom0 with a 3.0.17 kernel and Xen 4.1.2,
and since the 3.x series doesn''t have blktap support I''m using qdisk
to attach raw images. I''ve been playing with small images, something
like 1GB, and everything seemed fine, speed was not fantastic but it
was ok. Today I''ve set up a bigger machine, with a 20GB raw hdd and
the
2011 Jun 29
2
[LLVMdev] specint2000 as external tests
Hi All,
I am trying to configure llvm so with test-suite enabled. I have downloaded
the test-suite. Spec 2000 benchmarks sources are plugged in speccpu2000 at
$LLVM_SRC_ROOT/projects/test-suite-externals/speccpu2000/benchspec
e.g.: 164.gzip dir
is $LLVM_SRC_ROOT/projects/test-suite-externals/speccpu2000/benchspec/164.gzip
My configure command is:
../configure --disable-optimized
2011 Jun 29
0
[LLVMdev] specint2000 as external tests
Hi Daya,
> checking for spec2000 benchmark sources... no, not found in
> $LLVM_SRC_ROOT/projects/test-suite-externals/speccpu2000/benchspec
I have 164.gzip at
$LLVM_SRC_ROOT/projects/test-suite/External/SPEC/CINT2000/164.gzip
and it seems to work.
Ciao, Duncan.
2008 Jan 29
2
Using Predict and GLM
Dear R Help,
I read through the archives pretty extensively before sending this
email, as it seemed there were several threads on using predict with
GLM. However, while my issue is similar to previous posts (cannot
get it to predict using new data), none of the suggested fixes are
working.
The important bits of my code:
set.seed(644)
n0=200 #number of observations
2012 Apr 03
3
regression for poisson distributed data
Hello all,
I would like to get parameter estimates for different models. For one of
them I give the code in example. I am estimating the parameters (i,j and
k) with the nls function, which sees the error distribution as normal, I
would however like to do the same as nls with the assumption that the
errors are poisson distributed.
Is there a way to do this with R? Are there packages designed
2009 Dec 16
1
WinBUGS - R2WinBUGS problem
Appologies for cross-posting
Dear R users,
I am using R2WinBUGS to call WinBUGS from R. After loading data, model, and initial values I call this command
res <- bugs(data = dfile, inits = list(ifile), parameters.to.save = c("beta"), model.file = mfile, working.directory = tdir, n.thin = nthin, n.chains = 1, n.iter = niterations*nthin, n.burnin = 0, DIC = F, debug = T,
2012 Apr 19
1
non-numeric argument in mle2
Hi all,
I have some problems with the mle2 function
> RogersIIbinom <- function(N0,attackR3_B,Th3_B)
{N0-lambertW(attackR3_B*Th3_B*N0*exp(-attackR3_B*(24-Th3_B*N0)))/(attackR3_B*Th3_B)}
> RogersII_B <-
mle2(FR~dbinom(size=N0,prob=RogersIIbinom(N0,attackR3_B,Th3_B)/N0),start=list(attackR3_B=1.5,Th3_B=0.04),method="Nelder-Mead",data=dat)
Error in dbinom(x, size, prob, log)
2006 Jul 03
2
help a newbie with a loop
Hi,
I am new in R and stumbled on a problem my (more experienced) friends
can not help with with. Why isnt this code working?
The function is working, also with the loop and the graph appears,
only when I build another loop around it (for different values of p) ,
R stays in a loop?
Can't it take more then 2 loops in one program?
powerb<-function(x,sp2,a,b,b1,m)
{
2019 Mar 13
2
llvm combines "ADD frameindex, constant" to OR
Hi all,
I've been working on a backend of our architecture and noticed llvm performs
following combining although one of operands is FrameIndex.
Combining: t114: i64 = add FrameIndex:i64<0>, Constant:i64<56>
Creating new node: t121: i64 = or FrameIndex:i64<0>, Constant:i64<56>
... into: t121: i64 = or FrameIndex:i64<0>, Constant:i64<56>
This
2010 Aug 10
4
Function to Define a Function
I am trying to define a general R function that has a function as the output that depends on the user's input arguments (this may make more sense by looking at the toy example below). My real use for this type of code is to allow a user to choose from many parameterizations of the same general model.
My "issue" is that when I compile a package with this type of code in it I get a
2012 Apr 18
1
error estimating parameters with mle2
Hi all,
When I try to estimate the functional response of the Rogers type I
equation (for the mle2 you need the package bbmle):
> RogersIbinom <- function(N0,attackR2_B,u_B) {attackR2_B+u_B*N0}
> RogersI_B <-
mle2(FR~dbinom(size=N0,prob=RogersIbinom(N0,attackR2_B,u_B)/N0),start=list(attackR2_B=4.5,u_B=0.16),method="Nelder-Mead",data=data5)
I get following error message
2008 Oct 29
2
Help using tapply with multiple variables
Dear list,
I have the function (as a simple example, which is actually part of a
larger function)
pres.test<-function(N0=N0, N1=N1)
{
dt<-5
r<-log(N1/N0)/dt
r
}
which calculates the annual growth rates in a population
Where N0 is the population classified into age intervals, say 5
years, at time=1995, and N1 is the population by 5 year age classes
at time=2000.
2002 Aug 07
2
indexing matrices with dimnames?
I've got a covariance matrix that I'd like to index using the
dimnames:
> vcov1
n0 x0 s n1 n2
n0 82.43824759 1.839505e-02 -4.975196e-01 2.882394e+03 -2.615986e-01
x0 0.01839505 6.134010e-03 -7.695922e-04 -6.373946e+01 6.086321e-03
s -0.49751964 -7.695922e-04 9.638943e-03 3.406594e+02 -3.173671e-02
n1 2882.39407745