similar to: Eval() or parse() do not work inside function

Displaying 20 results from an estimated 11000 matches similar to: "Eval() or parse() do not work inside function"

2005 Apr 20
7
A question about function behavior
Hello, I have been trying to figure this one out, but don't seem to go anywhere. I have a function like this: a = function(t) { max(0,t+1) } very simple, but if I pass a vector of n values to this function I expect n evaluations of max and instead I get only one value (the largest value of them all..). Is there anyway to do this without invoking a for loop? thanks, Jorge
2011 Apr 20
0
IT Manager Position
Hello, Please see the link below for an IT Manager. Experience with R and environmental datasets can overcome lack of traditional IT experience. http://tbe.taleo.net/NA8/ats/careers/requisition.jsp?org=CONSERVATION&cws=1& rid=149 --------------------------------------- Eric H. Fegraus Director of Information Systems Tropical Ecology, Assessment & Monitoring Network Conservation
2005 Apr 20
1
overlaying a contour line in a levelplot
Hello there, I am creating a series of images using levelplot but I also want to overlay a contour for a particular value as reference. Here is the levelplot command for the image: print(levelplot(d~x+y,data=t,cuts=20,scales=list(draw=F),xlab=NULL,ylab= NULL,col.regions=heat.colors(100)[100:1]),split=c(1,1,1,1),more=T) and then to add the contour plot (I only want a contour at level 5):
2010 Oct 01
6
Interpreting the example given by Frank Harrell in the predict.lrm {Design} help
Dear list, I am relatively new to ordinal models and have been working through the example given by Frank Harrell in the predict.lrm {Design} help All of this makes sense to me, except for the responses, i,e how do i interpret them? i would be extremely grateful if someone could explain the results? First i establish the date and model - > y <- factor(sample(1:3, 400, TRUE), 1:3,
2002 May 30
1
neighbor.grid and spatial.weights
Anyobody knows if functions neighbor.grid and spatial.weights (from module spatial) have any 'equivalents' in R ? Thanks. JA -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the
2003 Aug 11
2
Changing default browser in options()
I usually startup R from within several directories (usually where the programs or data of interest are). I like to use a small web browser called dillo to browse help files. However, by default R looks for mozilla, so I have to type every single R session: > options(browser='dillo') Is there anyway I can change this globally? thanks, J.
2004 Jun 07
2
IAX Won't Pass Caller ID
Hi, We have to servers set up in two different networks. We are able to connect calls via IAX and they work perfectly. We do not see caller ID from clients on either side. Our Grandstream phones say Eri and our XTen phones say Asterisk. We did a debug and I am pasting the output from both servers below. We tried setCallerId in several different ways. We see the value get passed to the
2004 May 23
1
IAX2 REACHABLE/UNREACHABLE
All, I have an issue with IAX that I can't comprehend. Approximately every eight minutes my servers go unreachable. They stay unreachable for exactly 10ms. I have two servers running IAX and it happens on both servers simultaneously. I have searched the archives and see similar issues, but not the exact same one. I am on the current CVS stable version of *. Also, during IAX calls,
2011 Jan 21
3
confidence interval
Hi, I have a circular shaped set of point on the plane (X,Y) centered in zero. The distribution is more dense close to zero and less dense far from zero. I need to find the radius of a circle centered in zero that contains 65% of the points in the sample. Is there any R directive that can do this? I wanna start with 2D set of points, but the real case scenario is with a 5D set of points.
2011 Nov 11
1
Formula variable help
I have an R script with the following applicable lines: xshort <- window(s, start=st, end=ed) . . . xshort <- ts(xshort, frequency=1, start=1) . . . m1 <- m2 <- m3 <- m4 <- m5 <- m6 <- NULL m1 <- tslm(xshort ~ trend) I get an error: Error in get(dataname) : object 'xshort' not found When I do traceback() I get: 3: get(dataname) 2: tslm(xshort ~
2008 May 22
1
Plotting a Quadratic...
I have an equation describing the best-fit model for a set of points (just 2 axes) that is in the form: y=b+mx+px^2 Where b is the intercept, m is the slope describing a linear term, and p is a slope of the quadratic term. I would like to plot this equation on a curve (I know the equation is y=(.1766x^2)+(.171x)+.101) on the original scatterplot. Any easy way to plot this equation and
2011 Sep 20
1
Data
Hey everybody, i am using the rugarch-package and its great! I have a pretty easy problem, but i just dont get it, so thanks if you can help me. Normally i use: / data(DATANAME) spec = ugarchspec() fit = ugarchfit(data = x[,1], spec = spec) fit slotNames(fit) names(fit at fit) coef(fit) infocriteria(fit) likelihood(fit) nyblom(fit) signbias(fit) head(as.data.frame(fit)) head(sigma(fit))
2018 Apr 17
2
iterative read - write
Hi all, I would like to set up an iterative read & write sequence to avoid reading and writing each file one at a time. Hundreds of data sets to re-calculate.? The code I have works well individually, but would like to set up an iterative read, calculate and write changing the input and output file names each iteration. I? think I have read that there is an R? feature using
2000 May 02
2
Variable names in model formula
At 10:37 PM 5/1/00 -0400, E. S. Venkatraman wrote: >I have the following problem. I have survival data (time, status) along >with several covariates (X1, X2,..., Xn). I want to fit a Cox model for >each of the covariate (univariately) and obtain the fitted probability of >survival at a fixed time point t0 and covariate value Xi0. I tried to do >this in a for loop where the index
2009 Oct 08
3
error message - unexpected input
I have been using R the past couple of years to run models on data we are collecting. I recently got a new computer and updated to a new version of R (2.60 -> 2.90). Since the update, I cannot get my syntax to run. I have tried copying the file it is looking for into many different directories to try and run it. In the last version, I found that it was easiest if the file was copied into the R
2008 Jul 29
4
Graphics function question
Hello I have created a graph using the following commands: <<< startBReP3O1T <- diffs$BReP3O1T - diffs$diff_BReP3O1T endBReP3O1T <- diffs$BReP3O1T x <- seq(47,89, length = 10) ymin <- min(min(startBReP3O1T), min(endBReP3O1T)) ymax <- max(max(startBReP3O1T), max(endBReP3O1T)) y <- seq(ymin, ymax, length = 10) plot(x,y, type = 'n', xlab = 'Age', ylab =
2017 Dec 04
3
Dynamic reference, right-hand side of function
Hi R-users! Being new to R, and a fairly advanced Stata-user, I guess part of my problem is that my mindset (and probably my language as well) is wrong. Anyway, I have what I guess is a rather simple problem, that I now without success spent days trying to solve. I have a bunch of datasets imported from Stata that is labelled aa_2000 aa_2001 aa_2002, etc. Each dataset is imported as a matrix, and
2013 Mar 07
3
rbind a list of matrices
I have a large list of matrices and a vector that identifies the desired matrices that I would like to rbind. However, I am stuck on how to get this to work. I have written some code below to illustrate my problem: # 3 simple matrices a<-matrix(1:9,3,3) b<-matrix(10:18,3,3) c<-matrix(19:27,3,3) #this is the type of list of matrices I am dealing with
2017 Dec 04
3
Dynamic reference, right-hand side of function
Hi! Thanks for the replies! I understand people more accustomed to R doesn't like looping much, and that thinking about loops is something I do since I worked with Stata a lot. The syntax from Peter Dalgaard was really clever, and I learned a lot from it, even though it didn't solve my problem (I guess it wasn't very well explained). My problem was basically that I have a data matrix
1999 Apr 15
2
Excel 'save as HTML' problem with Samba 2.0
Hello, Eversince I upgraded Samba to 2.0 version I've gotten so many calls from the users regarding Excel 'save as HTML' problem. What seems to be happening is that the users cannot save their Excel spreadsheet as html file when they were able to with the previous Samba version we had installed (Samba 1.9.18p10). According to MS 'knowledge database', this is a known MS Excel