similar to: Beginner question on apply()

Displaying 20 results from an estimated 1000 matches similar to: "Beginner question on apply()"

2008 Aug 07
0
[JOB] Softwareentwickler/-in, prometheus-Bildarchiv, Universität zu Köln
hi folks! sorry to bother you all, but the following job announcement is in german only, because fluent german is an indispensable requirement anyway. cheers jens ---- An der Universität zu Köln, prometheus - Das verteilte digitale Bildarchiv für Forschung & Lehre, Kunsthistorisches Institut, Philosophische Fakultät ist zum 01.09.2008 befristet bis 28.02.2009 die Stelle einer/eines
2008 Sep 19
0
[JOB] Softwareentwickler/-in, prometheus-Bildarchiv, Universität zu Köln
Hi folks! We, the prometheus image archive at the University of Cologne (Germany), would like you to take note of the following job announcement for a full-time software developer position in Cologne, Germany. In addition, we''d like to emphasize that the contract is limited in time due to formal reasons only. We definitely aim at extending it. We look forward to receiving your
2009 Aug 20
0
can not resolve chown issue
Hi, rsync reports an error with the following text: set uid of . from 1000 to 544 set gid of . from 513 to 10513 "rsync: chown "<directory>" failed: Invalid argument (22)" I read some posts and googled for answers, but I wasn't able to resolve the problem. Some infos on my machine: CYGWIN_NT-6.0-WOW64 Olympos 1.5.25(0.156/4/2) 2008-06-12 19:34 i686 Cygwin Cygwin
2011 Dec 01
0
[JOB] Softwareentwickler/-in, prometheus-Bildarchiv, Universität zu Köln
We, the prometheus image archive at the University of Cologne (Germany), would like you to take note of the following job announcement for a full-time software developer position in Cologne, Germany. Please note that fluent German is required. Cheers Jens ---- In der Philosophischen Fakultät, im *Kunsthistorischen Institut, prometheus - Das verteilte digitale Bildarchiv für Forschung &
2012 Mar 13
2
beginner's loop issue
Dear All, I hope you don't mind helping me with this small issue. I haven't been using R in years and I'm trying to fill in a matrix with the output of a function (I'm probably using the Matlab logic here and it's not working). Here is my code: for (i in 1:length(input)){ out[i,1:3] <- MyFunction(input[i,1],input[i,2], input[i,3]) out[i,4:6] <-
2007 Apr 23
0
New version of actuar
UseRs, actuar is a package for Actuarial Science. A rather preliminary version (0.1-3) of the package has been available on CRAN since February 2006. We now announce the immediate availability of version 0.9-2 sporting a large number of new features. Non actuaries behold! There can be some features of interest for you, especially those related to new probability distribution and to the
2007 Apr 23
0
New version of actuar
UseRs, actuar is a package for Actuarial Science. A rather preliminary version (0.1-3) of the package has been available on CRAN since February 2006. We now announce the immediate availability of version 0.9-2 sporting a large number of new features. Non actuaries behold! There can be some features of interest for you, especially those related to new probability distribution and to the
2009 Oct 26
2
R CMD check: Error in .C
Function/file names are hypothetical. Say I have written myfunction.R, which calls myfunction.c via .C("myfunction", ...). I've compiled successfully myfunction.c via R CMD SHLIB myfunction.c in the terminal. Then, in the R console: dyn.load("myfunction.so") source("myfunction.R") test <- myfunction() # works fine So everything is in order, myfunction works
2003 Feb 19
2
GLM for Beta distribution
Hi R-help, Is there such a thing as a function in R for fitting a GLM where the response is distributed as a Beta distribution? In my case, the response variable is a percentage ([0,1] and continuous). The current glm() function in R doesn't include the Beta distribution. Thank you for any help on this topic. Sincerely, Sharon K?hlmann
2012 Nov 23
1
Adding a function with default parameters into the Rcmdr menu
Hi everyone, I made some tests with Rcmdr, to add a function with default parameters : For example (very simple): myfunction<-function(var="314"){ print("hello") print(var) } if I run myfunction() directly i see : > myfunction() [1] "hello" [1] "314" it's ok. But if i edit de Rcmdr-menu.txt (in
2009 Jun 03
1
Using constrOptim() function
I have a function myFunction(beta,x) where beta is a vector of coefficients and x is a data frame (think of it as a matrix). I want to optimize the function myFunction() by ONLY changing beta, i.e. x stays constant, with 4 constraints. I have the following code (with a separate source file for the function): rm(list=ls()) source('mySourceFile')
2013 Apr 24
0
help with execution of 'embarrassingly parallel' problem using foreach, doParallel on a windows system
Dear R helpers, I have what another member on this forum described as an embarrassingly parallel problem. I am trying to fit models on subsets of some data based on unique combinations of two id factors in the dataset. Total number of combinations is 30^5, and this takes a long time. So, I would like fit models for each of the datasets produced by subsetting on the unique combinations, splitting
2010 Apr 25
0
S4 generic and method arguments -- "expanded signature"
Hello R-List, ** This e-mail was initially bounced. Please forgive any duplicates.** I'm creating a new generic function and 3 associated methods, in which each of the methods only needs a subset of the arguments specified in the generic. So, I create the generic like so (with the signature defaulting to all of the args) ... setGeneric( name="myFunction", def =
2010 Dec 17
0
How to use the RUnit tracker in unit tests?
R-developers Does anybody know how I incorporate the use of the tracker in RUnit in the unit tests? I have read the RUnit Vignette, help pages and searched around, but I could find no examples of using 'inspect' in the unit test functions. Moreover, doing so, I tried something like library(RUnit) myFunction <- function(x) { return(x) } track <- tracker() track$init()
2017 Jul 12
2
A strange problem about type i64 for LLVM
Hello, everyone, I encounter a strange problem about llvm type i64 and C++ type int64_t. I instrumented a program to call the function 'myFunction' in the C++ shared library. 'myFunction' is something like this: int64_t myFunction() { int64_t retValue; ... std::cout << "retValue: " << retValue << "\n"; return retValue; }
2008 Jul 21
1
Howto Restart A Function with Try-Error Catch
Hi all, I have a function - let's call it "myfunction". This function is based on some random number generator. Now, once in a while the function will break/crash depending on the random number it generate inside the function. To avoid the problem, what I intend to do is the following: 1. Catch the try-error using class. 2. Redo the function if it returns "try-error" 3.
2018 Aug 09
0
WishList: Remove Generic Arguments
On 09/08/2018 5:45 PM, Abs Spurdle wrote: > I apologize if this issue has been raised before. > > I really like object oriented S3 programming. > However, there's one feature of object oriented S3 programming that I don't > like. > Generic functions can have arguments other than dots. > > Lets say you have an R package with something like: > >
2008 Oct 29
0
Propagate vector attributes to data frame
Hello, I've got a function that takes a numeric vector (x), computes a transformation value (myAttr) for x, transforms x according to myAttr and then sets myAttr as an attribute of x before returning x, so I can easily know what myAttr was used (basically it's a power transformation and myAttr is the lambda). myFunction.numeric <- function(x, ...) { myAttr <- calcMyAttr(x, ...) x
2011 Sep 27
0
A very big matrix inside a function
Dear listers: As a part of a intermediate process, I need to use and modify a very big matrix (some 30000x30000) inside the body of a function. If the matrix is defined in the function, R shows a error message "Cannot allocate vector of size 6.7 Gb". But if I define the matrix before the function is called (as soon as the dimension can be calculated) R can allocate it. The problem is
2002 Oct 22
5
Mixture of Univariate Normals
Dear list, Can anyone provide a package or code for estimating the parameters of a mixture of c (c >=2) univariate normal distributions? I've tried the algorithm provided by Venables & Ripley (1999) p 263, for the mixture of two normal, but I don't find the "ms" function in R. I've used nls instead, but I'm not sure if it works the same. The data I have is very