Displaying 20 results from an estimated 1905 matches for "comprehension".
2007 Dec 09
1
List comprehensions for R
Below is code that introduces a list comprehension syntax into R,
allowing expressions like:
> .[ sin(x) ~ x <- (0:11)/11 ]
[1] 0.00000000 0.09078392 0.18081808 0.26935891 0.35567516 0.43905397
[7] 0.51880673 0.59427479 0.66483486 0.72990422 0.78894546 0.84147098
> .[ .[x*y ~ x <- 0:3] ~ y <- 0:4]
[,1] [,2] [,3] [,4] [,5]...
2024 Jun 16
2
slowness when I use a list comprehension
Dear RHelp-list,
?? I try to use the package comprehenr to replace a for loop by a list
comprehension.
?I wrote the code but I certainly miss something because it is very
slower compared to the for loops. May you please explain to me why the
list comprehension is slower in my case.
Here is my example. I do the calculation of the square difference
between the values of two vectors vec1 and vec...
2024 Jun 16
1
slowness when I use a list comprehension
Laurent,
Thank you for introducing me to a package I did not know existed as I use features like list comprehension in python all the time and could see using it in R now that I know it is available.
As to why you see your example as slow, I see you used a fairly complex and nested expression and wonder if it was a better way to go. As you are dealing with an interpreter doing delayed evaluation, I can imagine...
2024 Jun 16
1
slowness when I use a list comprehension
...sapply(seq_len(N1-(N2-1)*ratio_sampling), \(j)
sum((vec1[(ix-1)*ratio_sampling+j] - vec2[ix])**2))
On Sun, Jun 16, 2024 at 11:27?AM Laurent Rhelp <laurentRHelp at free.fr> wrote:
>
> Dear RHelp-list,
>
> I try to use the package comprehenr to replace a for loop by a list
> comprehension.
>
> I wrote the code but I certainly miss something because it is very
> slower compared to the for loops. May you please explain to me why the
> list comprehension is slower in my case.
>
> Here is my example. I do the calculation of the square difference
> between the valu...
2009 Jul 14
2
Comprehensive power analysis/sample size package in R?
Dear all,
my colleague (a statistician - not yet using R) aked me, if there is
a R package comparable to the software "PASS" (Power Analysis and
Sample Size Procedures), comprising about 150 procedures.
I found the R package "pwr". Are there other (more comprehensive)
power analysis packages?
Many thanks!
Udo
2024 Jun 16
1
slowness when I use a list comprehension
...vec2 )
, S_diff3 <- vloop( N1, M2, ratio_sampling, vec1, vec2 )
, times = 20
)
all.equal( S_diff2, S_diff3 )
On June 16, 2024 9:33:54 AM PDT, avi.e.gross at gmail.com wrote:
>Laurent,
>
>Thank you for introducing me to a package I did not know existed as I use features like list comprehension in python all the time and could see using it in R now that I know it is available.
>
>As to why you see your example as slow, I see you used a fairly complex and nested expression and wonder if it was a better way to go. As you are dealing with an interpreter doing delayed evaluation, I can...
2007 May 08
1
Looking for a comprehensive descriptive statistics package
Hi all,
I'm looking for a package that will give me comprehensive set of
descriptive statistics, including skew and kurtosis. Also, is there a
similar package that will provide multivariate descriptive statistics as
well? Thanks in advance,
David
--
===========================================================================
David Kaplan, Ph.D.
Professor
Department of Educational
2010 Oct 17
1
iptables: comprehensive tutorial for CentOS?
Hello listmates,
I know this may sound stupid... but I am trying to set up a
firewall/filter/forwarder using CentOS 5.5 machine as a platform and I
am succeeding but only partially. Fro example, I am literally trying
to forward HTTP and HTTPS (TCP 80 and 443) from the public interface
to a private IP and TCP 80 works like a charm whereas TCP 443 seems to
be a no-go.
To that effect: does anyone
2014 May 28
2
Comprehensive re-write of the classicupgrade HowTo and other changes
Hello,
I'm talking about re-writing the classicupgrade HowTo since over a year
now. :-) Now, after three rainy vacation days, it's finaly done:
A complete and comprehensive re-write of the classicupgrade HowTo:
https://wiki.samba.org/index.php/Samba_Classic_Upgrade_%28NT4-style_domain_to_AD%29
Some other mentionable documentation changes, I had
done during the last week:
*
2008 Nov 18
1
Looking for a Comprehensive list of error codes
Good Afternoon,
I have been looking for a comprehensive list of error codes that are returned by rsync for a script that I am writing. I have searched Ggoogle and Yahoo! and I have found out the following:
4 = action not supported
5 = wrong password
10 = socket IO error
11 = file IO error
12 = broken connection
23 = file(s) couldn't be transferred
255 = unspecified error
Is there anywhere
2024 Jun 16
1
slowness when I use a list comprehension
...loser I stick to the main language or accepted packages, the better.
-----Original Message-----
From: R-help <r-help-bounces at r-project.org> On Behalf Of Jeff Newmiller via
R-help
Sent: Sunday, June 16, 2024 1:13 PM
To: r-help at r-project.org
Subject: Re: [R] slowness when I use a list comprehension
I would be more strong on this advice: learn to think in R, rather than
thinking in Python, when programming in R. R has atomic vectors... Python
does not (until you import a package that implements them). I find that
while it is possible to import R thinking into Python, Python programmers
seem t...
2016 Nov 02
3
tool for a comprehensive list of the storage structure
I would like to have a smart cli tool, that shows a
comprehensive list about the local storage structure:
An output like:
/srv
/dev/mapper/luks-f85b7a2c-...: UUID="ca924fad-..." TYPE="ext4"
/dev/mapper/vg_internal_e-lv_internal_srv: UUID="f85b7a2c-..." TYPE="crypto_LUKS"
vg_internal_e
/dev/md3: UUID="1Fi2Ex-..."
2010 Mar 02
1
R / R+ Webminar *** R-PLUS Rocks: Interactive, Comprehensible and Highly Visual. March 12th @ 12PM ET (USA Time)
Welcome to R/ R-PLUS Webminar Series. R-PLUS 3.3 Rocks: Interactive,
Comprehensible and Highly Visual.
http://www.xlsolutions-corp.com/webminar.asp.
March 12th @ 12PM ET (USA Time)
Increase your productivity with R-PLUS 3.3 by attending the webminar and
learning how to:
1. Interactively clicking your way through your favorite statisticals
models without the need of programming.
2. Use
2012 Jan 21
9
linux kernel 3.2.x gentoo maclist
how to make this work, its seem to me that netfilter is changed more or
less someplaces that shorewall do not support, using 4.4.27 shorewall
and shorewall6
suggestion welcomed
------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99!
2016 Nov 02
0
tool for a comprehensive list of the storage structure
Try *lsblk -f*
*[root at david ~]# lsblk -f
NAME FSTYPE LABEL
UUID MOUNTPOINT
sda
??sda1 LVM2_member DWnNT0-aHQK-4zxn-cWIL-4iAQ-fboe-QaeyOK
??vg_Backups-Backups ext4 Backups
97baf04c-5dbb-43bd-9e56-b1c23e623ae4 /media/Backups
sdb
??sdb1 ext4 boot
7186c3bc-ef06-4d34-9caf-3813ec004fbb
2012 Mar 12
8
CentOS6/RHEL6 - net.nf_conntrack_max not applied
2011 Jul 19
6
[OT] would any of you recommend a ticketing system?
Hi all, sorry for being OT but would any of you recommend a ticketing system?
We'd like something pretty comprehensive to cover helpdesk and HR stuff as
well as software bugs/requests. There seems to be a million variations
out there.
2016 Dec 10
6
Plain requirement: desktop search
Just wondering, what exactly is supported/suggested:
I need a comprehensive desktop search functionality. Not only
searching for file names but also for content and meta data. The
environment is EL6.8 / Gnome2. I have noticed that "beagle" is
not part of the distro anymore. Any suggestions for such requirement?
Thanks!
LF
2006 Nov 15
4
[LLVMdev] 1.9 Prerelease Available for Testing
Hi,
There is a typo in $LLVM_SRC/Makefile.rules on line 750 where it says :
SharedLibKindMessage := "Lodable Module"
instead of
SharedLibKindMessage := "Loadable Module"
Op 15-nov-06, om 15:54 heeft Bram Adams het volgende geschreven:
> Didn't check
> LLVM's test suite.
Doing the simple LLVM-tests (on Slackware 10.2) gets:
=== Summary ===
2018 Dec 03
0
Re: [PATCH nbdkit 2/4] valgrind: Add --show-leak-kinds=all and comprehensive list of suppressions.
On Mon, Dec 03, 2018 at 12:55:58PM -0600, Eric Blake wrote:
> A GNU make-ism - but you already mention requiring GNU make in
> README. Should we make ./configure error out hard if $MAKE is not
> GNU Make, rather than risking someone getting 80% though a build on
> BSD make and then choking when it gets here?
Yes that would be a good idea as a separate patch. I'm always annoyed