Rui Barradas ruipbarra...@sapo.pt writes:
Hello,
Package 'compiler' is good at optimizing for loops. Try the following.
Or vectorize the function
system.time(f1(x,10))
user system elapsed
5.010.005.00
system.time(f1.c(x,10))
user system elapsed
1.920.00
Chee Chen chee.c...@yahoo.com writes:
Dear All,
Is there a R package for L1-regression (meaning, optimize the sum of
absolute deviations, NOT TO BE UNDERSTOOD as regression with
L1-penalty) ?
Yes.
Any information will be appreciated.
See
/Preventive Medicine
cberry at ucsd edu UC San Diego
http://famprevmed.ucsd.edu/faculty/cberry/ La Jolla, San Diego 92093-0901
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting
djbanana karl79264...@gmail.com writes:
Hi,
I think I solved it myself by writing loops.
What I meant is: are there in-built functions in R that calculate the
following:
a1(b2+...+b190) + a2(b1+b3+...+b190) + ...
Following Rainer's setup:
x - data.frame( a = sample( 1:10, 4 ), b =
Sam Steingold s...@gnu.org writes:
I need an analogue of uniq -c for a data frame.
The count.rows() function is the R analogue.
See
http://orgmode.org/worg/org-contrib/babel/examples/Rpackage.html#sec-6-1
No need to install the package - just copy and paste the function into an
R session.
-sig-geo might get more helpful responses once you can focus
the question a bit more.
HTH,
Chuck
Many thanks
Lorenzo
--
Charles C. BerryDept of Family/Preventive Medicine
cberry at ucsd edu UC San Diego
http://famprevmed.ucsd.edu/faculty
-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
--
Charles C. BerryDept of Family/Preventive Medicine
cberry at ucsd edu UC San Diego
http://famprevmed.ucsd.edu/faculty/cberry/ La Jolla, San
: 440.249.4289
[[alternative HTML version deleted]]
--
Charles C. BerryDept of Family/Preventive Medicine
cberry at ucsd edu UC San Diego
http://famprevmed.ucsd.edu/faculty/cberry/ La Jolla, San Diego 92093-0901
is rseek.org where 'poisson ridge regression' gives lots of hits. If
you click on 'functions' there is a link to the 'glmnet' package, which
is a solid engine for penalized poisson regression.
HTH,
Chuck
--
Charles C. BerryDept of Family/Preventive Medicine
cberry
]][[2]][[3]] : subscript out of bounds
pj
--
Charles C. BerryDept of Family/Preventive Medicine
cberry at ucsd edu UC San Diego
http://famprevmed.ucsd.edu/faculty/cberry/ La Jolla, San Diego 92093-0901
did not follow the example.
You used the wrong object in the call to plot() and it dispatched to
plot.hclust rather than plot.dendrogram.
Try
plot( dend1, ... )
HTH,
Chuck
Br,
Luffy
--
Charles C. BerryDept of Family/Preventive Medicine
cberry at ucsd edu
-folder-tp4577818p4577818.html
Sent from the R help mailing list archive at Nabble.com.
--
Charles C. BerryDept of Family/Preventive Medicine
cberry at ucsd edu UC San Diego
http://famprevmed.ucsd.edu/faculty/cberry/ La Jolla, San Diego 92093
Medicine
cberry at ucsd edu UC San Diego
http://famprevmed.ucsd.edu/faculty/cberry/ La Jolla, San Diego 92093-0901
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide
Dept of Family/Preventive Medicine
cberry at ucsd edu UC San Diego
http://famprevmed.ucsd.edu/faculty/cberry/ La Jolla, San Diego 92093-0901
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman
( as.list( quote(-1-4) ), as.list )
and (thereby) explain why the result of -1-4 isn't 3.
HTH,
Chuck
[rest deleted]
--
Charles C. BerryDept of Family/Preventive Medicine
cberry at ucsd edu UC San Diego
http://famprevmed.ucsd.edu/faculty/cberry/ La
:2)
)
HTH,
Chuck
or should I really stick with:
lapply(lapply(x1, '[[', 3), function(x) x[2,])
?
Thank you very much,
benilton
--
Charles C. BerryDept of Family/Preventive Medicine
cberry at ucsd edu UC San Diego
http
at Nabble.com.
--
Charles C. BerryDept of Family/Preventive Medicine
cberry at ucsd edu UC San Diego
http://famprevmed.ucsd.edu/faculty/cberry/ La Jolla, San Diego 92093-0901
__
R-help@r-project.org
wrong or interpreting it wrong. Can some one please point
me in the right direction..
--
Charles C. BerryDept of Family/Preventive Medicine
cberry at ucsd edu UC San Diego
http://famprevmed.ucsd.edu/faculty/cberry/ La Jolla, San Diego 92093
from the R help mailing list archive at Nabble.com.
--
Charles C. BerryDept of Family/Preventive Medicine
cberry at ucsd edu UC San Diego
http://famprevmed.ucsd.edu/faculty/cberry/ La Jolla, San Diego 92093-0901
[[2L]], where)
}
seems to handle this case without breaking example(bquote).
HTH,
Chuck
Duncan Murdoch
--
Charles C. BerryDept of Family/Preventive Medicine
cberry at ucsd edu UC San Diego
http://famprevmed.ucsd.edu/faculty/cberry
for points that do
not overlap
to be seen and small enough to slim down the number of plotted
points. In the example above, 10233 vs 10.
HTH,
Chuck
--
Charles C. BerryDept of Family/Preventive Medicine
cberry at ucsd edu UC San Diego
http
points. In the example above, 10233 vs 10.
HTH,
Chuck
--
Charles C. Berry Dept of Family/Preventive
Medicine
cberry at ucsd edu UC San Diego
http://famprevmed.ucsd.edu/faculty/cberry/ La Jolla, San Diego 92093-0901
of Family/Preventive Medicine
cberry at ucsd edu UC San Diego
http://famprevmed.ucsd.edu/faculty/cberry/ La Jolla, San Diego 92093-0901
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do
--
Mohamed Lajnef,IE INSERM U955 eq 15#
David Winsemius, MD
West Hartford, CT
--
Charles C. BerryDept of Family/Preventive Medicine
cberry at ucsd edu UC San Diego
http://famprevmed.ucsd.edu/faculty/cberry/ La Jolla, San Diego 92093-0901
are just in
the folklore. But if somebody has written them out, I would be glad to
know.
--
Charles C. BerryDept of Family/Preventive Medicine
ccberry at ucsd edu UC San Diego
http://famprevmed.ucsd.edu/faculty/cberry/ La Jolla, San Diego 92093
UC San Diego
http://famprevmed.ucsd.edu/faculty/cberry/ La Jolla, San Diego 92093-0901
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting
Dept of Family/Preventive Medicine
cbe...@tajo.ucsd.eduUC San Diego
http://famprevmed.ucsd.edu/faculty/cberry/ La Jolla, San Diego 92093-0901
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE
27 matches
Mail list logo