similar to: understanding recursive functions

Displaying 20 results from an estimated 3000 matches similar to: "understanding recursive functions"

2008 Dec 18
2
understanding lexical scope
I am trying to understand the concept of lexical scope in "An Introduction to R" by the R Core development team. I'd appreciate it if someone would explain why the following example does not work: q <- function(y) {x + y}; w <- function(x){q(x)}; w(2); According to the discussion of Scope on page 46, it seems to me that R will interpret the free variable x in q as the
2009 Feb 02
1
executing R batch files
The following command, issued from the DOS command prompt (running Windows XP), produces the intended result of a .csv file created by program.R: ?c:\program files\R\R-2.8.0\bin\Rterm.exe? --save < "c:\TEMP\program.R" However, when I create a file called Rbatch.bat that contains exactly the line above, and try to execute it (by double clicking or via the Shell command in an Excel
2009 Feb 11
1
Hollander's test of bivariate symmetry
Does anyone know if any R package has a function that will conduct Hollander's test of bivariate symmetry? (Hollander, Biometrika, 1971) Either the exact test or an asymptotic version would be sufficient for my purposes. Thanks. Joe Boyer Statistical Sciences Renaissance Bldg 510, 3233-D Mail Stop RN0320 8-275-3661 cell: (610) 209-8531 [[alternative HTML version deleted]]
2009 Jan 14
1
referring to calls in functions
The first program generates an error message and does not execute the regression of y on x. x<-1:10; y<-rnorm(10) + x; prac <- function( model, wghts ){ lm(model, weights = wghts) } prac(model = y~x, wghts = rep(1, 10)) But the next program works: x<-1:10; y<-rnorm(10) + x; prac <- function( y, x, wghts ){ lm(y~x,
2009 Feb 06
0
RExcel waiting for OLE action
When I run a macro that uses RExcel, I get a dialog box that says "Microsoft Excel is waiting for another application to complete an OLE action." There is no error in the RExcel commands in the macro, of that I am sure. The box appears to be related to the inclusion of RunRFile commands. The macro will run through the second RunRFile command, but will not execute the
2011 Jan 19
2
how to get old packages to work on R 2.12.1
I just installed R 2.12.1, and when I went to run a few old programs with it, nothing worked. I got a ton of error messages saying such and such package was built before R 2.10.0 and needed to be reinstalled. These were not just warning messages, but error messages that prevent the programs from running when they were running just fine with R 2.10.1 For some of those packages, such as deSolve, I
2004 Aug 06
3
ices cvs crashing
Well, hi folks: I am still having this problem with ices crashing regularly. I have upgraded to todays cvs for ices and icecast hoping that would take care of it but no such luck. I am not sure just what is going on. It seems to happen fairly often which is not exactly making my listeners happy. I will include the relevant portion of the ices.log below. I would appreciate any suggestions
2011 May 20
2
Variability plot in R
Is there a package in R that can do a variability plot? A variability plot is a kind of categorized dot plot. (If there is a lot of data in each category, box plots are used rather than dot plots.) Usually, the categories are factor level combinations. All the dot plots appear in the same window; below the x-axis a hierarchy of factors shows which dot plot corresponds to which factor-level
2001 Sep 27
4
ssh2 key passphrase problems in 2.9.9 on Linux
I've just compiled and installed openssh-2.9.9p2 (compiled against openssl-0.9.6b using gcc-3.0.0) on a Slackware 7-based Linux machine (kernel 2.4.6ac2). The previously installed version was 2.9p2, compiled against openssl-0.9.6a, also with gcc-3.0.0, but with a different build of gcc-3.0.0. Everything seems to work fine except for one problem: passphrase matching for ssh2 keys
2003 Apr 29
2
Samba, Linux, and file locking
Many moons ago, Samba used to build perfectly on Linux. Ever since I upgraded from 2.2.3, though, I've had to hack the configure script to get it to build, because Samba's configure is utterly and unshakeably convinced that no file locking of any kind exists on Linux. Once so configured, it builds, tests and runs perfectly. Can anyone tell me why Samba started disbelieving in
2010 Sep 01
2
Makefile bug in nut-2.4.3
I'm just in the process of upgrading from nut-2.4.1 to 2.4.3 on a dual-Xeon box running Solaris 10 amd64 (i686-pc-solaris2.10). I configured as follows: ./configure --prefix=/opt/nut --with-gnu-ld --with-serial --without-usb --with-cgi --with-gd-includes=-I/usr/local/include --with-gd-libs="-L/usr/local/lib -R/usr/local/lib -lgd" --with-user=nut --with-group=nut
2004 Aug 06
0
ices cvs crashing
On Wednesday, 27 June 2001 at 14:08, Kirk Reiser wrote: > Well, hi folks: I am still having this problem with ices crashing > regularly. I have upgraded to todays cvs for ices and icecast hoping > that would take care of it but no such luck. I am not sure just what > is going on. It seems to happen fairly often which is not exactly > making my listeners happy. I will include
2010 Sep 09
2
HP R3000XR charge level
This is not a NUT question per se ... or at least, I don't think it is. I just replaced the battery pack in my HP R3000XR; the new batteries were shipped with 90% charge, were at about 87% when they went in, and were up to 98% charge the next day. Last weekend, the server that runs NUT went down for no apparent reason, wiping out its boot blocks, corrupting its boot archive beyond
2009 May 27
2
New NUT user with HP R3000XR problem
Greetings, I've just installed nut-2.4.1 on a Solaris 10 x86 machine to monitor a HP R3000XR UPS. SunOS babylon4 5.10 Generic_138889-08 i86pc i386 i86pc Solaris First of all, I encountered a single problem during the build. After configuring, drivers/Makefile ends up containing the following line: LIBNETSNMP_LDFLAGS = -R../lib -L/usr/sfw/lib -lnetsnmp -lgen [...] This is clearly
2019 Feb 04
2
Ayuda con calculo de variables / transponer R
Buenas tardes, tengo dudas con el siguiente ejercicio que me han propuesto en un curso, no se si alguien podria indicarme como abordarlo, soy nueva en R y agradezco mucho su ayuda Identi car cuales son las variables que están contenidas en el data.frame. A continuación, transformar ese data.frame para que cada columna represente cada una de las variables. Usar los nombres Date, District y N.
2012 Nov 09
3
Installing Java 7 on a system with Java 6
My system is 5.6, with upgrades. I installed Java 6 from the Centos repository. It doesn't seem to have Java 7. I need the development package. How can I install Java 7 development safely? I imagine I will first have to uninstall Java 6. Thanks, John -- John J. Boyer; President, Chief Software Developer Abilitiessoft, Inc. http://www.abilitiessoft.com Madison, Wisconsin USA Developing
2008 Nov 11
1
Retrieving x argument name from a trellis object in R 2.8.0
Dear all, let consider the following function: Fun1 <- function() { library(lattice) plot1 <- 1:10~1:10 pl1 <- xyplot(plot1) return(pl1$call$x) } In R 2.5.0 (or older version) we have > Fun1() plot1 but starting from R 2.5.1 until the latest R 2.8.0 we obtain instead > Fun1() NULL because pl1$call seems to be equal to xyplot() without arguments. Something like
2011 Jul 07
4
Changing Host Name
Thanks to all of you who are answering my dumb questions about my new CentOS instgallation. I modified /etc/hosts, as the hostname man page seemed to suggest, and rebooted. The hostname is still localhost. I want to change it to jjb-centos. I also want to change the domain name to abilitiessoft.com Thanks, John -- John J. Boyer; President, Chief Software Developer Abilitiessoft, Inc.
2006 Jan 25
2
how to test robustness of correlation
Hi, there: As you all know, correlation is not a very robust procedure. Sometimes correlation could be driven by a few outliers. There are a few ways to improve the robustness of correlation (pearson correlation), either by outlier removal procedure, or resampling technique. I am wondering if there is any R package or R code that have incorporated outlier removal or resampling procedure in
2011 Jun 27
3
How do I Install and activate?
I have just installed CentOS 5.6 from disk and updated it. 1. I would like to use telnet on my local network. How do I activate it? 2. How do I install Mercurial? it is not in the repository. 3. How do I install eclipse? It is also not in the repository. Thanks, John -- John J. Boyer; President, Chief Software Developer Abilitiessoft, Inc. http://www.abilitiessoft.com Madison, Wisconsin USA