similar to: Apply parameters to a function from a list

Displaying 20 results from an estimated 50000 matches similar to: "Apply parameters to a function from a list"

2010 Apr 30
1
X11() device widht and height parameters limited to one screen
Hi, if I specify the width and height of a plot I want to see via > X11(width=14,height=7) > X11(width=28,height=14) > X11(width=20,height=14) > X11(width=13,height=14) > X11(width=15,height=14) any width greater than 15 is ignored as it seems the width is limited by the screen width. However, as I am using two screens (xinerama), I can easily manually resize to fit two
2014 Mar 28
2
Error: C stack usage is too close to the limit
Hi, I have been using my own C++ plugin for a while. On a new machine I now keep getting the C stack usage is too close to the limit error. I played with it and it appears to come after I printed a fixed number of text to R via Rprintf (not from the main thread). Didn't happen on the old machine. Old version was 2.14. Now on 3.0.3. Not sure whats going on. Florian [[alternative HTML
2014 May 02
1
Questions on extending Rcpp wrap and as with templates
Hi everyone, I have been trying to extend Rcpp with my own wrap and as templates. Two issues: 1) I need to explicitly call wrap. Is that expected? So for example I wrote this specialization: template<> SEXP Rcpp::wrap(std::vector<TimedOptDouble> const& entries) { std::vector<double> sec_times; std::vector<double> doubles; for(auto const& entry : entries) {
2018 Feb 10
2
makeCluster hangs
Hi all, I can't get the functionality of the package parallel to work. Specifically, makeCluster() hangs when I run it. I first noticed the problem when trying to run Rstan with multiple cores and the traced it back to the core package parallel. The following results in R hanging after the call to makeCluster. library(parallel) # Calculate the number of cores no_cores <-
2010 Mar 25
1
Sweave running R chunks for figure generation several times
Hi, following issue: Sweave is running the R code to generate figures three times under standard behaviour, twice if run with eps=FALSE, once if run with eps=FALSE,pdf=FALSE. However, ideally, I'd want it to run once to generate pds with eps=FALSE being set. How come this isn't so? Am I missing something? Basically, my R figure code is expensive to run. I can of course move the
2009 Sep 28
2
re trieve user input from an tcl/tk interface
Hello everyone, this is my first post here and I hope I signed up correctly and someone will take me by the hand and help me out. I am new to R and cannot figure out what to do here... ... I want to have an User Interface that requests input. I want to save this input to a variable to use it later on. I was able to do this with a modalDiaglog (
2010 Jun 10
1
Sweave cutting new lines
Hi, I have trouble with Sweave (I think) cutting of my newlines. As stated in the help of Sweave, I generate tex code straight from R for dynamically computed reports. If I do this in R: for (i in 0:4) {cat("\n",i,"\n")};cat("\n 3") 0 1 2 3 4 3 The output looks correct. However, Sweave for some reason seems to trim everything outside
2009 Nov 04
3
inconsistent behavior for logical vectors when using apply (" TRUE")
Hello, > X <- data.frame(letters=letters[1:3], flag=c(TRUE, FALSE, TRUE)) > X letters flag 1 a TRUE 2 b FALSE 3 c TRUE > apply(X, 1, as.list) [[1]] [[1]]$letters [1] "a" [[1]]$flag [1] " TRUE" [[2]] [[2]]$letters [1] "b" [[2]]$flag [1] "FALSE" [[3]] [[3]]$letters [1] "c" [[3]]$flag [1] " TRUE"
2018 Feb 11
1
makeCluster hangs
Dear Henrik, thank you, for the quick reply. Bizarrely enough, the problem vanished when I woke the computer from sleep (I had previously replicated the problem after several restarts of both R and the MacOS). I will follow-up if I can again replicate the problem. Florian On 2/10/18 4:39 PM, Henrik Bengtsson wrote: > A few quick comments: > > * You mention R --vanilla, but make sure
2008 Oct 27
1
ttkcombobox
Hi, all, (sessionInfo at the end) I've been struggling with the tcltk package and can't seem to get the ttkcombobox to work. Here's an example: library(tcltk) p <- tktoplevel() l <- tclVar() ## I don't know if I'm even calling it correctly cb <- ttkcombobox(p, values = letters[1:4], textvariable = l) tkpack(cb) 1. How do I know when the value of the combobox has
2005 May 17
3
Feature request: delete machine script
Hi everyone, I am wondering what the likelyhood would be to get a "delete machine script" implemented in the samba core that would delete a machine upon successful un-join of a samba domain. Alternatively, why is this not a good idea? tom.
2008 Nov 12
2
apply() just loops ?
Dear R users, I have been diligently using the apply() family in order to avoid explicit for loops and speed up computation. However, when I finally inspected the source code for apply, it appears that the core computation is a simple loop as well. What am I missing ? Why the often found advice to use apply() instead of loops and the actually observed empirical speedups on many tasks ? Thanks in
2009 Jul 28
2
vary the parameters for a function
How I can vary the parameters for a function? I have a function with 5 parameters I want to turn the function for a range of numbers for one of these parameters!! i want to have in the end the value of the function in the different cas of one of the paramter (the others paramters are fixes!!) thank you for your help [[alternative HTML version deleted]]
2008 Sep 24
3
Is there a single command that can revert all the plotting parameters to default?
Hi, all, This might be a stupid question. Is there a single command in R that can revert parameters to default? It is much appreciated. Best wishes, Art Roberts University of Washington
2005 Dec 06
6
getpwnam fails on ldap
Hi all (excuse my poor english): I have a samba PDC on a network with 100 machines and 200 users. Everything worked fine with FC2 and samba 3.0.14a, but a hd crash decided me to update system to FC4. I can see now, in the logs file "User jon in passdb, but getpwnam() fails! when an user try to log in. On XP I can not login neither add new machine to domain. My pass backend is
2010 Oct 12
6
List or matrix of object
Hi everyone. Is it possible in R to create a matrix or a list (vector) or R object. For instance, I have f1 <- function(x) sqrt(x%*%x); f2 <- function(x) (2x+1); I would like to do something like L <- List(); L[1] = f1; L[2] = f2; So, is there a way to create matrix or vector that can contains R object. With regards, Phil -- View this message in context:
2009 Jan 06
3
smoothed contour lines
Hi all, I'm trying to draw a contour plot with rounded (smoothed) contour lines instead of sharp angles; when the grid consists of only a few points in x- and y- axis, the resulting contour is in facts rather ugly since very sharp angles may appear. I did not find any way to do it, by using either "contour" or "contourplot" (from the lattice package), I wonder if there
2011 Feb 06
2
A list within a list?
Hello, I am planning of building a list of lists specifically, my first list is some what of the sort: lidta <- list(m, p, r, s, q, A, B) where A and B are matrices that may be of different number of rows . The number of rows in matrix A and matrix B depends on the the values of m. The question is I don;t know how to put all the 1000 or so of these lists into a 'mega' list. Can you
2011 Feb 04
3
lapply, strsplit, and list elements
Hi there, I have a problem about lapply, strsplit, and accessing list elements, which I don't understand or cannot solve: I have e.g. a character vector with three elements: x = c("349/077,349/074,349/100,349/117", "340/384.2,340/513,367/139,455/128,D13/168", "600/437,128/903,128/904") The task I want to perform, is to generate a list,
2008 Nov 19
1
selection list
Hello! I want to create a command for choosing input parameters via a new window that shows a table in which the parameters can be written in. R should open a seperate window in which the user is asked to put in some values (just numbers), afterwards a new file containing these values should be created and saved in the working directory. Does anybody how I can solve that problem and which package