similar to: Nested loop ok now. Thanks to you all

Displaying 20 results from an estimated 30000 matches similar to: "Nested loop ok now. Thanks to you all"

2007 Sep 17
2
problems with nested loop
Hi, everyone: R is new to me. I am writing a nested loop to simulate data for t-test. The following code is wrong. The subscript is out of bounds. Could anyone tell me how to revise it? Thanks, Riddle Chin. result<-matrix(ncol=5, nrow=1000) colnames(result)<-c('N=20','N=40','N=60','N=80','N=100') for (i in 1:1000){ for (j in
2016 Jul 11
2
extra loads in nested for-loop
On Mon, Jul 11, 2016 at 2:20 PM, Krzysztof Parzyszek via llvm-dev < llvm-dev at lists.llvm.org> wrote: > On 7/11/2016 3:27 PM, Phil Tomson via llvm-dev wrote: > >> >> I guess I'm a bit surprised that -O3 wouldn't automatically do what I've >> done in the second version of the C code when generating code from the >> first version? >> > >
2010 Sep 24
1
color of lines while printing through for loop
I am trying to find a convenient way to control line colors when printing from a for loop using the lines command. Right now I have solved this by creating a colors vector that is refered to in the loop with index. However, the colors choosen here are just 1,2,3,4,5... I would like to get colors from the col = rainbow(x) that you can use in plot() and set the to be my number of lines (I think
2016 Jul 11
2
extra loads in nested for-loop
I was looking at the code generated from the following c code and noticed extra loads in the inner-loop of these nested for-loops: #define DIM 8 #define UNROLL_DIM DIM typedef double InArray[DIM][DIM]; void f1( InArray c, InArray a, InArray b ) { #pragma clang loop unroll_count(UNROLL_DIM) for( int i=0;i<DIM;i++) #pragma clang loop unroll_count(UNROLL_DIM) for( int
2013 Oct 04
3
Trying to avoid nested loop
Dear R users. I'm trying to avoid using nested loops in the following code but I'm not sure how to proceed. Any help would be greatly appreciated. With regards,Phil X = matrix(rnorm(100), 10, 10) ## Version with nested loopsresult = 0 for(m in 1:nrow(X)){ for(n in 1:ncol(X)){ if(X[m,n] != 0){ result = result + (X[m,n] / (1 + abs(m - n))) } }} ## No loop-sum(ifelse(M
2012 Apr 30
2
for loop problem
Hi all, I was wondering if you can help me with the following situation: I have a data frame that includes weather station data for 30 years in the form: YEAR, MONTH, DAY, TEMP 1970, 01, 01, -15 ... 1999, 12, 31, -21 I would like to add another variable "JULIAN" that assigns the integers 1 to 365 (and 1 to 366 for leap years) for each day of a year over multiple years. Here is what
2009 Aug 10
1
building a package
Dear R People: I'm trying to build a package and am stuck on the last part; I keep getting "there is no library". Here are my statements: erin at erin-laptop:~/Desktop/R-2.9.1/bin$ R CMD check RcmdrPlugin.qual * checking for working pdflatex ... OK * using log directory '/home/erin/Desktop/R-2.9.1/bin/RcmdrPlugin.qual.Rcheck' * using R version 2.8.1 (2008-12-22) * using
2006 Feb 21
5
R and packages
Dear R People: Here is yet another strange problem. I'm using R in one of my classes. However, the computer lab has something called "Deep Freeze" and the students cannot save anything to the hard drive. I had R installed and things were working well. They would save their .Rdata files to disks. Now, we need to add more packages. We can't download and we can't bring
2003 Mar 03
0
Many thanks to all the emails - my sshd works great, now!
Thanks for all the emails...no need to send anymore. Very informative. I appreciate all the input. The very first email solved the problem - I needed to create the sshd account. Great user group - I never received so many responses, so quickly, and so accurate. Joyce Haferman Computer Systems Analyst (831) 657-3023 FAX (831) 657-0157 email: hafermje at osd.pentagon.mil or Joyce_Haferman at
2000 Jul 12
1
buglet in fix() [was "function via source or fix"] (PR#602)
>>>>> "Erin" == Erin Hodgess <hodgess@uhddx01.dt.uh.edu> writes: Erin> Suppose I create a function, x.e, via the fix command: (ESS users ESS don't ever do this, but still ...) >> x.e <- fix(x.e) Erin> When I type in x.e, the function code appears, along Erin> with the name/number of the environment. Ok, in the above it was
2007 Mar 23
1
creating R packs for all
Dear R People: I am in the process of creating an R package via Windows. If I would decide to submit in to CRAN, what would I need to do in order to make it run for the Linux or Mac People, please? Thanks in advance! Sincerely, Erin Erin Hodgess Associate Professor Department of Computer and Mathematical Sciences University of Houston - Downtown mailto: hodgess at gator.uhd.edu
2009 Dec 25
0
problem with .Rhistory
Dear R People: I just updated to R-2.10.1 on an Ubuntu Karmic Koala and am getting the following with saving .Rhistory erin at erin-desktop:~$ R R version 2.10.1 (2009-12-14) Copyright (C) 2009 The R Foundation for Statistical Computing ISBN 3-900051-07-0 R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type
2010 Jun 21
3
tables
Dear R People: I have generated the following table: > table(zza$DEATH,zza$GENDER) F M 2009-04-21 0 1 2009-04-22 4 2 2009-04-24 6 0 2009-04-25 1 3 2009-04-26 2 0 2009-04-28 3 0 2009-04-29 2 2 However, instead of total counts in the F and M columns, I would like percents. How would I do this, please? thanks, Erin -- Erin
2011 Mar 19
3
[O/T] reference for regular expressions
Dear R People: Could someone recommend a good reference on regular expressions, please? Thanks in advance, Sincerely, Erin -- Erin Hodgess Associate Professor Department of Computer and Mathematical Sciences University of Houston - Downtown mailto: erinm.hodgess at gmail.com
2017 Feb 13
0
[Bug 1028] Segfault on nested sets with prefixes
https://bugzilla.netfilter.org/show_bug.cgi?id=1028 Phil Sutter <phil at nwl.cc> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |phil at nwl.cc --- Comment #2 from Phil Sutter <phil at nwl.cc> --- Reproducing this with a more recent version of
2013 Jan 09
1
R2html and Blackboard LMS : solved
Everything is ok on Firefox, IE, and iPad. Thanks, Erin On Tue, Jan 8, 2013 at 7:58 PM, Erin Hodgess <erinm.hodgess at gmail.com> wrote: > Dear R People: > > Has anyone used R2HTML in web files that were on the Blackboard LMS, please? > > I'm starting to do these but wanted to know if there were any > potential pitfalls. > > Thanks, > Erin > > > --
2009 May 25
1
lam vs. openmpi
Dear R Debian Users: I wrote a quick C program (eventually to become R code) and compiled it as: mpicc -o greet greet.c So far so good. Now when I run mpirun, this happens: erin at erin-laptop:~$ mpirun -np 2 greet ----------------------------------------------------------------------------- It seems that there is no lamd running on the host erin-laptop. This indicates that the LAM/MPI
2013 Jul 11
0
Wheezy Samba+Winbind+AD+PAM
Greetings fellow Samba enthusiasts! I am having an issue after upgrading to the latest version of wheezy from my former squeeze on my testing node. I am unable to login anymore as my AD user erin. i can do the following commands successfully but not getent passwd erin or logging in to the system via the console. It is currently a fresh install all i did was copy my krb.conf, samba.conf, and
2017 Mar 24
0
[Bug 1028] Segfault on nested sets with prefixes
https://bugzilla.netfilter.org/show_bug.cgi?id=1028 Phil Sutter <phil at nwl.cc> changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |FIXED Status|NEW |RESOLVED --- Comment #3 from Phil Sutter <phil at nwl.cc>
2007 May 23
2
make check problem
Dear R People: I thought all was well with my source compilation on Windows until I tried "make check" Here is an abbreviated version of my results: C:\esr\R-2.5.0\src\gnuwin32>make check make check -------- Testing package base -------- Running examples in 'base-Ex.R' ... Comparing `base-Ex.Rout' to `base-Ex.Rout.prev' ...diff: extra operand