similar to: code for functions in base package

Displaying 20 results from an estimated 1000 matches similar to: "code for functions in base package"

2003 Oct 04
3
a bug of function plot (PR#4405)
Full_Name: Ximing Zhao Version: R 1.7.1 OS: MacOs X Submission from: (NULL) (64.136.27.51) When I used function plot in R 1.7.1, I found two bugs. My whole function is this: ***************** drawexp<-function(X,x,c,b){ exp<-function28(X,x,c,b) if(max(exp)>=max(dexp(x,rate=1))){ plot(x,exp, type="l",main= paste("Exponential ,n=",length(X),"
2008 Aug 05
5
boxplot with average instead of median
I really like the ease of use with the boxplot command in R. I would rather have a boxplot that shows the average value and the standard deviation then the median value and the quartiles. Is there a way to do this? Chad Junkermeier, Graduate Student Dept. of Physics West Virginia University PO Box 6315 210 Hodges Hall Morgantown WV 26506-6315 phone: (304) 293-3442 ext. 1430 fax: (304)
2009 Mar 24
3
generalized Poisson regression
Dear sir, I want to know about R command for parameter estimation for generalized Poisson regression. yours faithfully Arafat Ud Zaman 4th year(Hons) Applied statistics University of Dhaka Mob- +8801715173176 E-mail: arafat.zaman@yahoo.com azaman1@isrt.ac.bd azaman1@quantummethod.org.bd [[alternative HTML version deleted]]
2015 Sep 10
2
[PATCH v2 1/1] extlinux: fix memory leak
devname is put on heap for all cases to avoid memory leak, and ease of use in future as well Signed-off-by: Imran Zaman <imran.zaman at intel.com> --- extlinux/main.c | 44 ++++++++++++++++++++++++++++++-------------- 1 file changed, 30 insertions(+), 14 deletions(-) diff --git a/extlinux/main.c b/extlinux/main.c index 55a1495..b7cdf92 100644 --- a/extlinux/main.c +++ b/extlinux/main.c @@
2015 Sep 17
1
[PATCH v2 1/1] extlinux: fix memory leak
On Fri, Sep 11, 2015 at 10:12 AM, Paulo Alcantara via Syslinux <syslinux at zytor.com> wrote: > On Thu, 10 Sep 2015 10:55:04 +0300 > Imran Zaman via Syslinux <syslinux at zytor.com> wrote: > >> devname is put on heap for all cases to avoid memory >> leak, and ease of use in future as well >> >> Signed-off-by: Imran Zaman <imran.zaman at intel.com>
2008 Aug 20
1
vicidial mysql problem
I installed asterisk, astguiclient, php and mysql. but when i dialled one number to another number my asterisk server give the following error: > /var/lib/asterisk/agi-bin/agi-VDAD_ALL_inbound.agi > install_driver(mysql) failed: Can't load > '/usr/lib/perl5/site_perl/5.8.8/i486-linux-thread-multi/auto/DBD/mysql/mysql.so' > for module DBD::mysql: libmysqlclient.so.15:
2002 May 03
6
problems with rexp ?
Does anyone know if R have any problems with the exponential random number generation (function rexp)? I comment it because I executed data<-sort(rexp(100)) plot(data,dexp(data)/(1-pexp(data)),type="l") and the graphic isn't constant. (Note: exponential distribution have a constant hazard failure rate). Thank you, Juan
2015 Sep 09
1
[PATCH v1 1/1] extlinux: fix file descriptors leak
file descriptors are closed when not in use Signed-off-by: Imran Zaman <imran.zaman at intel.com> --- extlinux/main.c | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/extlinux/main.c b/extlinux/main.c index 09740bd..55a1495 100644 --- a/extlinux/main.c +++ b/extlinux/main.c @@ -580,6 +580,7 @@ int ext2_fat_install_file(const char *path, int devfd, struct
2008 Mar 21
1
(no subject)
Hi, I am fairly new to R, and am stuck. I want to write an R function with argument n that returns a vector of length n with n simulated observations from the double exponential distribution with density: ??g(y) = 1/2e^-y ? For the double exponential, I want to generate y~Exp(1) and then take ?y with probability 0.5 ? Does anyone know how I can do this in R? Thanks! Fran [[alternative
2007 Mar 27
18
Textile Editor Plugin v0.1
The Textile Editor Helper (TEH) is a Javascript-based text formatting toolbar that will be added to all of your text areas that utilize the TEH feature. TEH was developed to provide a more WYSIWYG-ish option for users of our Rails CMS called slate while still letting us use Textile. ====================== = So what are the features? ====================== These are a list of the current features
2011 Sep 06
2
Generalizing call to function
Hello guys, I would like to ask for help to understand what is going on in "func2". My plan is to generalize "func1", so that are expected same results in "func2" as in "func1". Executing "func1" returns... 0.25 with absolute error < 8.4e-05 But for "func2" I get... Error in dpois(1, 0.1, 23.3065168689948, 0.000429064542600244,
2006 Jun 02
2
Problem with mle
R 2.3.0 Linux, SuSE 10.0 Hi I have two problems with mle - probably I am using it the wrong way so please let me know. I want to fit different distributions to an observed count of seeds and in the next step use AIC or BIC to identify the best distribution. But when I run the script below (which is part of my original script), I get one error message for the first call of mle: Error in
2004 Oct 27
1
Warning messages in function fitdistr (library:MASS)
Why the warning messages (2:4)? > x <- rexp(1000,0.2) > fitdistr(x,"exponential",list(rate=1)) rate 0.219824219 (0.006951308) Warning messages: 1: one-diml optimization by Nelder-Mead is unreliable: use optimize in: optim(start, mylogfn, x = x, hessian = TRUE, ...) 2: NaNs produced in: dexp(x, 1/rate, log) 3: NaNs produced in: dexp(x, 1/rate, log) 4: NaNs
2008 Oct 16
1
Suppressing error messages in a for loop
Hi, Is there any way that I can supress error messages so that they don't stop for loops running? I'm using the gstat package and have created a variogram model for the double exponential model: "dexp <- vgm( .5, "Exp", 10,.1, add.to = vgm(.5, "Exp", 100))" and fitted it using "dexp.fit <- fit.variogram(temp2, dexp, fit.method=6,
2008 Mar 15
4
Error with GTA on one box, not on another
Hello, Running GTA (the first one, freely available on Rockstar site -> http://www.rockstargames.com/classics/gta.html) on my laptop, I have no problem in fullscreen. However, on my desktop computer, where I tried to run GTA from freevo, I got the error message "Error 296.473 - Cannot find the default display mode". A strings on executable showed me that it is a message from the
2010 Apr 24
1
help please: predict error code
Hello,   I am trying to calculate predicted values derived from one dataset into a hypothetical dataset. I tried this line of code:   graphdata$fmgpredvalues <- predict(Acs250.3.4, graphdata)   and received the following error message:   ERROR: ZXend[1], drop = FALSE] %*%lmeFit$beta   I have made sure all variable names are the same between the two datasets and all factors are appropriately
2018 Apr 18
2
idmap_ad overlap with domain and sub-domain overlap
Hi Rowland, Thanks for the help and ideally I would like to get rid of the sub domain all together but that is probably not going to happen. So couple comments and please forgive any of my ignorance. For your second question, all users in the subdomain who have access to the SAMBA server do have uidNumber set and it matches the uidNumber set in MASTER. Since this is the case, would the
2015 Sep 09
1
[PATCH v1 1/1] extlinux: fix memory leak
devname is put on heap for all cases to avoid memory leak, and ease of use in future as well Signed-off-by: Imran Zaman <imran.zaman at intel.com> --- extlinux/main.c | 48 ++++++++++++++++++++++++++++++++---------------- 1 file changed, 32 insertions(+), 16 deletions(-) diff --git a/extlinux/main.c b/extlinux/main.c index 55a1495..7bb7443 100644 --- a/extlinux/main.c +++
2006 Mar 27
2
Clustering question \ dist(datmat)
Hello everybody. I am trying to cluster circular data (data points which are angles), thus i can not use the "dist" function in "mclust" to generate my distance matrix, I am using the function " Dij = 0.5*( 1 - cos(theta_i - theta_j)). The thing is "hclust" will not accept this distance matrix, i tried to put it in a data frame, but again i get an error message
2010 Sep 29
1
sample exponential r.v. by MCMC
Dear R users, I am leaning MCMC sampling, and have a problem while trying to sample exponential r.v.'s via the following code: samp <- MCMCmetrop1R(dexp, theta.init=1, rate=2, mcmc=5000, burnin=500, thin=10, verbose=500, logfun=FALSE) I tried other distribtions such as Normal, Gamma with shape>1, it works perfectly fine. Can someon