similar to: vectorize an expression

Displaying 20 results from an estimated 2000 matches similar to: "vectorize an expression"

2002 Aug 25
1
windows focus and setting active device
Dear R users, I am using R 5.1 on Windows 2000. Is there a system call or somesuch way of identifying the graphic window which currently has focus and using that information to make it the active device for futher plotting etc. I have done a quick seaqrch in R the archives using 'focus active device' but came up with nothing useful. Any information would be most welcome. Thanks in
2002 Oct 24
1
Rjava failing to initialize in Windows 2000
Dear Any, I am trying to initialise Rjava with the objective of running ORCA within R. I am running R1.5.1 on Windows2000 and get the same problem with Sun Java run time jre-1.2.2_013 Java j2re-1.4.1_01 Microsoft Java Virtual Machine Build 3805 .JavaInit() is failing at : .C("s_start_VM", as.character(classPath), as.character(classPath),
2002 Mar 21
1
RGui error on Windows 2000
The following might be of benefit to those who find themselves in a similar predicament with an apparently corrupted R in Windows 2000. The problem was traced back to a corrupted register in my user profile in Windows 2000 apparently caused by a DLL in Visual Basic installation not self registering correctly. The fix was to copy a new uncorrupted register from the default user. Though some of
2003 Nov 27
2
Getting rid of loops?
I wrote a function to calculate cosine distances between rows of a matrix. It uses two loops and is slow. Any suggestions to speed this up? Thanks in advance. theta.dist <- function(x){ res <- matrix(NA, nrow(x), nrow(x)) for (i in 1:nrow(x)){ for(j in 1:nrow(x)){ if (i > j) res[i, j] <- res[j, i] else { v1 <- x[i,] v2 <- x[j,]
2002 Jan 25
2
selecting clusters of points
All: Are there any functions out there for selecting all the points in a region of a plot. I envision something like the identify() function except one could circle a cloud of points (and perhaps a vector would be returned of the same length as the points plotted indicating logical membership in the circled cloud). Perhaps someone has done something with the locator() function that would
2002 May 21
1
windows common dialog for color selection in R
Dear R users, I run R on windows 2000 and windows 98 I am seeking opinion, or better still a code snippet, on what might be the quickest, not necessarily the best or preferred way, of making the Windows color selection common dialog available in R. Would it be an executable called with system() or shell() or perhaps a tcltk module or have I missed something obvious? I don't believe that I
2001 Jun 25
1
Linking R to GIS
Dear All, Has anyone worked with linking R to both ArcView and MapInfo GIS systems? My desire is to capture object selection from GIS and pass to R and to return spatially based statistical model results from R to GIS. If both could simultaneously access the same data file this would be a bonus. My inclination is to put together some routines based on ODBC linking but thought I would seek like
2003 Jun 03
2
winMenuAdd misbehaving?
Microsoft Windows R users, I am operating Windows 2000 (build2195) with R1.7. It may be pertinent that I am using a dual head screen with the initial RGui filing the entire area of both screens. When starting R I use the .First() function to add menu items to the RGui interface using winMenuAdd() and winMenuAddItem(). The menus do not display until the RGui window is physically manipulated in
2002 Mar 19
0
RGui error
R on windows users, I've noted a similar problem reported before [Rd] Rgui.exe crash on Windows 2000 (PR#912) but could not find the solution. I have been running R1.4.1 in windows 2000 since the day it was released with plenty of RAM for my purposes. In two of my .Rdata files I run TclTk as a menuing system to invoke a series of functions for plotting statistics etc. On occasions,
2007 Nov 07
2
Adding submenus to existing consol GUI menu
If possible I would like to add two sub-menus to the R Console under Windows. For example, I would like to add: winMenuAddItem("File", "Load CSV...", "loadCSV()") winMenuAddItem("File", "Save CSV...", "saveCSV()") and have them appear under the initial 'File' item rather than add a new 'File' menu item. I seem to
2001 Nov 13
4
Floating windows in TCLTK
Dear anybody dealing with TCLTK on R I'm trying, without any success, to get a simple TCLTK window to remain floating on top of the RGui and RConsol windows when the later have focus. I cannot find reference in the TCKTK documentation and fear that I'm missing something quite fundamental. My objective is to make a simple button populated menu to invoke R functions. I wish the TCLTK menu
2011 Nov 23
2
bizarre seq() behavior?
Is there any rational explanation for the bizarre seq() behavior below? > seq(2,8.1, lenght.out=3) [1] 2 3 4 5 6 7 8 > help(seq) > seq(2,8,length.out=3) [1] 2 5 8 > seq(2,8.1,length.out=3) [1] 2.00 5.05 8.10 Except maybe that it is early in the morning :) Best regards, Ryszard Ryszard Czerminski AstraZeneca Pharmaceuticals LP 35 Gatehouse Drive Waltham, MA 02451 USA 781-839-4304
2012 Jan 10
2
strange Sys.Date() side effect
Any ideas what is the problem with this code? > N <- 2; c(Sys.Date(), sprintf('N = %d', N)) [1] "2012-01-10" NA Warning message: In as.POSIXlt.Date(x) : NAs introduced by coercion Best regards, Ryszard Ryszard Czerminski AstraZeneca Pharmaceuticals LP 35 Gatehouse Drive Waltham, MA 02451 USA 781-839-4304 ryszard.czerminski@astrazeneca.com
2005 Feb 01
1
Hugh image created from modest data
Dear R users, I am running R2.1 on windows XP SP2. I have a problem that I fear I am providing insufficient information to resolve. But if anyone can suggest directions to understand the problem I would be most grateful. I import modest datasets which create a list of data frames (primary data object) amounting to 15.9Mb when measured internally by object.size() . The sizes of the list
2012 Jan 12
3
strsplit() does not split on "."?
Any ideas what is wrong? > strsplit("a.b", ".") # generates empty strings with split="." [[1]] [1] "" "" "" > strsplit("a b", " ") # seems to work fine with split=" ", and other characters... [[1]] [1] "a" "b" > > R.Version() $platform [1]
2010 Sep 27
1
smooth contour lines
Is there an easy way to control smoothness of the contour lines? In the plot I am working on due to the undersampling the contour lines I am getting are jugged, but it is clear "by eye" these should be basically straight lines. In maps package I found smooth.map function, but maybe there is a more generic way of accomplishing the same thing. Ideally there would be an option to control
2012 Jan 25
1
Error in predict.randomForest ... subscript out of bounds with NULL name in X
RF trains fine with X, but fails on prediction > library(randomForest) > chirps <- c(20,16.0,19.8,18.4,17.1,15.5,14.7,17.1,15.4,16.2,15,17.2,16,17,14.1) > temp <- c(88.6,71.6,93.3,84.3,80.6,75.2,69.7,82,69.4,83.3,78.6,82.6,80.6,83.5,76 .3) > X <- cbind(1,chirps) > rf <- randomForest(X, temp) > yp <- predict(rf, X) Error in predict.randomForest(rf, X) : subscript
2011 Jan 20
1
randomForest: too many elements specified?
I getting "Error in matrix(0, n, n) : too many elements specified" while building randomForest model, which looks like memory allocation error. Software versions are: randomForest 4.5-25, R version 2.7.1 Dataset is big (~90K rows, ~200 columns), but this is on a big machine ( ~120G RAM) and I call randomForest like this: randomForest(x,y) i.e. in supervised mode and not requesting
2010 Aug 17
11
EVERYONE USING DOVECOT PLEASE SIGN: Thanks, Administrators of Dovecot!
With the release of dovecot 2.0, the community of the Dovecot mailling list, and us at Shelton Computers, would sincerely like to thank the developers of Dovecot. For, if it were not for you, we would be stuck with Courier and would not have the impressive features of Sieve, as opposed to the unmanageable scripts, by end users, of maildrop. *Our gratitude goes to, but not limited to:* *Timo
2005 Mar 03
4
Getting phpconfig to work?
No, I have apache 1.3.33 and mod_ssl 2.8.22 installed. Do I need to have apache2-mod_php installed? Rgds, Julius. > DO you have apache2-mod_php installed ? > > Which distro are you using ? > >> -----Original Message----- >> From: asterisk-users-bounces@lists.digium.com >> [mailto:asterisk-users-bounces@lists.digium.com] On Behalf Of >> Julius Kidubuka >>