similar to: Passing references to data objects into R functions

Displaying 20 results from an estimated 3000 matches similar to: "Passing references to data objects into R functions"

2005 Apr 22
2
How to tell if R is running in batch mode
Hi Is there a way to programmatically tell whether R is running in batch or GUI mode? Thanks Dave _______________________________________________ David Khabie-Zeitoune Quantitative Arbitrage Brevan Howard Asset Management direct: +44 (0)20 7022 6167 mobile: +44 (0)7799 411 797 email: david.khabie-zeitoune@brevanhoward.com Almack House 28 King Street
2003 Jul 29
5
Sending emails from R under Windows
Hi Does anyone know of any R routines to send emails from R, under Windows? I thought about writing such a facility using the R(D)COM package to drive e.g. MS Outlook, but I don't want to reinvent the wheel. I have found a function Sys.mail in the library syskern, but this only works under Unix by shelling out a mail command. Thanks, David
2003 Jul 29
5
Sending emails from R under Windows
Hi Does anyone know of any R routines to send emails from R, under Windows? I thought about writing such a facility using the R(D)COM package to drive e.g. MS Outlook, but I don't want to reinvent the wheel. I have found a function Sys.mail in the library syskern, but this only works under Unix by shelling out a mail command. Thanks, David
2003 Sep 08
2
R video
Hi Does anybody know of any R packages under Windows to produce video files from a sequence of R graphs -- e.g. in .wmv or avi format? Thanks David
2003 Jun 13
1
RDCOM Client: processes not terminating
Hello I am using Duncan Lang's RDCOM Client package (available on omegahat.org) under R 1.7.0 and Windows XP Pro. Is this the right forum for questions about this package? In case it is, here is my question: Instances of COM objects do not seem to terminate as expected, but leave residual processes running. For example, if I try the simple example: E <-
2003 Jun 25
2
rw1062
hi I need 'rw1062.zip' since i can't get excel, R1070 or R1071 to work with the R (D)COM Server everything worked fine in the god rw1062 days the lapack routines can't be loaded 'unable to load shared library c:\r/moduleslapack.dll, the specified library could not be found' don't know if it's the forward slashes that anoys windows btw, the libraries are in the
2003 Jun 02
1
Help with factorized argument in solve.QP
Hi I'm having problems getting the "factorized" argument in solve.QP (part of the quadprog library) to work as expected. The helpfile states that when the factorized argument is set to TRUE, then the function requires the inverse of a square-root factor of the Hessian instead of the Hessian itself. That is, when factorized=TRUE, the Dmat argument should be a matrix R^(-1), such
2003 Jul 21
1
RODBC: problem saving a new table in an "Excel database"
Hi I am using package RODBC version 1.0-1 under R version 1.7.1 on Windows XP Pro. I am having problems writing a new table to an (Excel) database using sqlSave. I connect to an empty Excel spreadsheet using odbcConnectExcel (which, I believe, uses the Microsoft Excel Driver DSN). Then I try and save a new table to the database(spreadsheet) using SqlSave, but obtain an error message. Below is
2003 Aug 13
1
Mapping function dependencies
Hi Does anyone know of any automatic way of mapping out the dependencies of a function -- i.e. automatically listing which other functions that function calls? I tried using all.names or all.vars, but I can't get it to work on a function: e.g. > test = function(x, y) return(sin(x + y)*cos(x + y)) > all.names(expression(test)) [1] "test" I guess the problem is that all.names
2003 Jun 13
2
Layout of windows devices
Hi Is there a way to specify the location on the screen where a new graphics device opens, for example with a call to win.graph()? I'm using R 1.7.0 on Windows XP. Thank you. Regards, David
2003 Sep 11
3
Flipping a heatmap
Hi I am using the heatmap function in package mva to look at large correlation matrices visually. Is there any way to "flip" the output of heatmap plot left-right so that, if presented with a correlation matrix, it plots the unity elements in the correlation matrix along a diagonal from top left to bottom right? For example: library(mva) x = matrix(rnorm(1000), ncol=10) z = cor(x)
2003 May 29
3
Odd behavior of strptime
The example from the help page for strptime has the following oddity: > dates <- c("02/27/92", "02/27/92", "01/14/92", + "02/28/92", "02/01/92") > times <- c("23:03:20", "22:29:56", "01:03:30", + "18:21:03", "16:56:26") > x <-
2003 Jun 16
3
Constrained optimization
Greetings, R-Wizards: I'm trying to find an extremum subject to a nonlinear constraint. (Yes, I have perused the archives but have found nothing positive.) The details of the problem are these: In a paper published some years ago in Technometrics, ("Confidence bands for cumulative distribution functions of continuous random variables" Technometrics, 25, 77-86. 1983), Cheng and
2020 Mar 07
2
NUT-Server will not start at boot with Cyberpower PR1500
Hi Charles, Thanks for your response. No, I only put 192.168.1.64 as an extra option as I want to allow Slave access from another computer. Otherwise, access will normally only be from localhost. There is only one network interface on this machine. I will try it out with "LISTEN 0.0.0.0 3493" and see what happens. I must confess I usually run without a firewall as I'm only running a
2007 Mar 14
1
allocVector reference
Hi, I'm trying to write a function to return an R vector which points directly to a contiguous subset of another vector, without taking a copy. Since SEXPREC is a header followed by the data, rather than the header plus a pointer to the data, I'm not sure what I'm trying to do is possible. Is there a way of doing this? Similar in spirit to how the R assignment "x=y" does
2015 Oct 26
1
[PATCH 4/4] nouveau/debugfs: add interface for current load
On Mon, Oct 26, 2015 at 2:13 PM, Karol Herbst <nouveau at karolherbst.de> wrote: > From: Karol Herbst <git at karolherbst.de> > > --- > drm/nouveau/include/nvif/device.h | 1 + > drm/nouveau/include/nvkm/subdev/pmu.h | 10 ++++++++++ > drm/nouveau/nouveau_debugfs.c | 23 +++++++++++++++++++++++ > drm/nouveau/nvkm/subdev/pmu/base.c | 18
2006 May 04
3
SQL like manipulations on data frames
Is there a cheat-sheet anywhere that describes how to do SQL-like manipulations on a data frame? My knowledge of R is rather limited. But from my experience it seems as though one can think of data frames as being similar to tables in a database: there are rows, columns, and values. Also, one can perform similar manipulations on a data frame as one can on a table. For example:
2002 Dec 05
1
Passing options as lists
Hi, I apologize if this has previously been posted. I've just subscribed to the R-help digest. I'm writing a plotting function that uses layout() to plot several different plots on the same device. This function uses plot(), image(), and a custom function that uses text(). Each cell of the layout needs different par() parameters, so what I'd like to do is pass them as lists:
2007 Dec 19
5
assigning and saving datasets in a loop, with names changing with "i"
Dear R users, I am analysing a very large data set and I need to perform several data manipulations. The dataset is so big that the only way I can play with it without having memory problems (E.g. "cannot allocate vectors of size...") is to write a batch script to: 1. cut the data into pieces 2. save the pieces in seperate .RData files 3. Remove everything from the environment 4. load
2002 Sep 04
1
Passing dynamic sql statement to RODBC functions
Hi, Does anyone know how to pass dynamic sql statement to RODBC function "odbcQuery()" or "sqlQuery()"? eg.: under R session, I did: >library(RODBC) >channel<-odbcConnect(...) >data1<-2.5 >data2<-5.0 I want to construct the INSERT sql statement using variables "data1" and "data2" and pass this statement to odbcQuery() . Can I do this?