Displaying 20 results from an estimated 8000 matches similar to: "Which programming paradigm is the most used for make R packages?"
2006 Dec 31
1
Which programming paradigm does R
Hi wizards, I have a question. Which programming paradigm does R
handle? . Iam looking for this information but I didn't found nothing.
Thanks in advance.
personal web site:
http://www.geocities.com/ricardo_rios_sv/index.html
--
personal web site:
http://www.geocities.com/ricardo_rios_sv/index.html
2009 Jan 30
1
OO programming & S3/S4 paradigm - General question
Hi,
Being relatively new to OO programming and not so old on R, I noticed the possibility to do OO programming in R.
But it seems there is two "paradigms" S3 that seems the old one but is the one used in the R.oo package and S4 which seems more recent
As a starting point, which one is best to use? Is R.oo useful? what are the main difference between the two?
Any feedback
2006 Oct 02
3
How can I generate this numbers
Hi wizards, I need to know how can I generate this numbers
I have n numbers N1,N2 , Nn , but Nn = 1- sum(N1+N2+...+Nn-1) and
sum(N1+N2+..Nn)=1
and N1,N2,..Nn with 0<N<1 .
Does somebody know how to generate it ? Some distribution or algorithm.
Thanks in advance.
--
Web Page
http://www.geocities.com/ricardo_rios_sv/index.html
2012 May 15
1
Object-oriented programming (OOP)
Hello everybody, please excuse my bad English. I am Alfredo Naime and
I'm from to Venezuela.
I want to make a lib with tools for simulation (queues, inventories,
factory, etc.) using object-oriented programming (OOP).
You have any manuals on the handling of data types, classes,
inheritance, etc. in R with examples and how to make a R lib.
Thank you, very much.
Alfredo
2006 Sep 26
3
S4 accessors
I have a small S4 class for which I've written a page grouping many of
the accessors and replacement functions together. I would be interested
in people comments on the approach I've taken.
The code has a couple of decisions for which I could imagine
alternatives. First, even simple get/set operations on class elements
are wrapped in functions. I suppose I could just use myinstance at
2005 May 23
2
Documentation of S3 and S4 classes, inheritance
I'd like to have a class A that computes a likelihood, and a subclass B
that computes the same likelihood by sometimes throws in an additional
term (B includes measurement error).
So B's likelihood needs to call A's, and then (sometimes) multiply by an
additional term.
It sounds as if, in the S3 scheme, NextMethod is supposed to do this:
like.A <- function(stuff) compute value
2006 Oct 02
1
documenation duplication and proposed automatic tools
I've been looking at documenting S4 classes and methods, though I have a
feeling many of these issues apply to S3 as well.
My impression is that the documentation system requires or recommends
creating basically the same information in several places. I'd like to
explain that, see if I'm correct, and suggest that a more automated
framework might make life easier.
PROBLEM
Consider a
2006 Dec 10
5
model-controller-paradigm: What about admin controllers?
Hi all
We all know the model-controller-paradigm: I have a model "News" which
has a corresponding CRUD-controller "NewsController".
But now I''m quite unsure about the following...
Guess we have normal visitors that visit our site www.??.com/news and we
have administrators that create and modify news items.
The admin should see an "Edit" link and a
2005 Jun 04
3
How to change the value of a class slot
I defined an S4 class with a slot i. Then I wrote a regular function
that attempted to increment i.
This didn't work, apparently because of the general rule that a function
can't change the values of its arguments outside the function. I gather
there are ways around it, but the Green book admonishes "cheating on the
S evaluation model is to be avoided" (p. 190).
Thinking that
2011 Aug 23
1
Implementing a "plugin" paradigm with R methods
Dear list,
I was wondering how to best implement some sort of a "plugin" paradigm
using R methods and the dispatcher:
Say we have a function/method ('foo') that does something useful, but
that should be open for extension in ONE specific area by OTHERS using
my package. Of course they could go ahead and write a whole new 'foo'
method including the features they'd
2004 Nov 18
5
Lexical Scoping: eval(expr,envir=)
Hi R-listers,
I am trying to better undertand what we would call "functional paradigm"
use of S/R to better map my programming activities in other languages.
This little function is aimed to create an object (at the end end, it would
have it's own class):
--
myObject =function(){
list(
a=1,
foo=function(b)
{
cat("b:",b)
2006 Mar 15
4
New RadRails tutorial using AWDWR book
Hello there,
I am basically a J2EE refugee fascinated with Rails.
I have been using the Spring framework (a lightweight J2EE java framework
with some special characteristics) but I am so impressed with RoR that I am
porting over many applications.
In order to "dive into Rails", of course the second thing to do was get
myself an IDE, and since I''ve been using Eclipse for the
2008 Jul 10
1
Non-normal data issues in PhD software engineering experiment
Hi All,
Title: Non-normal data issues in PhD software engineering experiment
I hope I am not breeching any terms of this forum by this rather general
post. There are very R specific elements to this rather long posting.
I will do my best to clearly explain my experiment, goals and problems here
but please let me know if I have left out any vital information or if there
is any ambiguity that I
2006 Jan 17
1
Rails too Active?
I feel the need to protest about a disturbing trend in the vibrant RoR
community - name dilution.
ActiveRecord is called that precisely because it is that. The name come
from Martin Fowler, and it expresses a class which is a database record,
only _active_ - that is with methods & behaviors (unlike a classical
database record, which is completely passive.) If you look in the
2006 Dec 27
2
proposal: allowing alternative variance estimators in glm/lm
There has been recent discussion about alternatives to the model-based
standard error estimators for lm. While some people like the sandwich
estimator and others don't, it is clear that neither estimator dominates
the other for any sane loss function. It is also worth noting that the
sandwich estimator is the default for t.test().
I think it would be useful for models using other
2007 Jan 19
5
C vs. C++ as learning and development tool for R
I have 3 years of experience with R and have an interest in becoming a
better programmer so that I might someday be able to contribute
packages. Other than R, my only experience was taking Lisp from Daniel
Friedman in the 1970's. I would like to learn either C or C++ for
several reasons:
To gain a better concept of object oriented programming so that I can
begin to use S4 methods in R.
To
2006 Jan 16
15
where''d we come from?
I''m curious -- how many of us came to Rails from other branches of the OO
world -- Java, C# -- and how many of us came from the design or non-OO
scripting worlds?
Reason I ask is that I''m finding Rails a blast and very productive, but I
think one reason is that I already cut my teeth on MVC and ORM during two
years of writing apps with J2EE/Struts/Hibernate. And in Javaland, it
2010 Aug 22
2
on abort error, always show call stack?
Dear R Wizards---is it possible to get R to show its current call
stack (sys.calls()) upon an error abort? I don't use ESS for
execution, and it is often not obvious how to locate how I triggered
an error in an R internal function. Seeing the call stack would make
this easier. (right now, I sprinkle "cat" statements everywhere, just
to locate the line where the error appears.) Of
2009 Jun 02
1
S4 Objects [Sec=Unclassified]
I am new to R programming but have dived into a medium sized modelling software development project.
Having come from a Java OO background I have a couple of questions about S4 objects.
Is there a way to make S4 slots (and methods) private and hence force the use of accessor methods?
Is there a straight-forward way to implement pass-by-reference for method parameters?
I am currently
2010 Oct 27
0
Introducing the futile.paradigm, a package for functional dispatching in R
Hello useRs,
I'm pleased to announce the general availability of the R package
futile.paradigm, which is a language extension that implements
functional dispatching in R. This is an alternative to the current
object-oriented styles, replacing them with a functional programming
style that provides a clean, fine-grained declarative syntax for
function definitions. The core of the package