similar to: More effective calculation for loop

Displaying 20 results from an estimated 150 matches similar to: "More effective calculation for loop"

2008 Apr 28
1
tips to speed up sqlSave with MS SQL Server?
I am using R2.6.0 on “Windows Small Business Server 2003”. I apologize if the answer to my question is available…I have searched but have not found anything that I thought helped me. I have a dataframe that contains ~4.5 million rows and 5 columns. (see memory and df details below). I am trying to save the dataframe to a MS SQL Server database, using the “sqlSave” function. The code
2012 Aug 05
4
find date between two other dates
Hi, I am trying to assign "Season" values to dates depending on when they occur. For example, the following dates would be assigned the following "Season" numbers based on the "season" intervals detailed below in the code: ddate Season 29/12/1998 20:00:33 1 02/01/1999 05:20:44 2 02/01/1999 06:18:36 2 02/02/1999
2006 Aug 11
3
An apply and rep question
Hi list, I'm sure the explanation must be laughably simple to the experts out there, but I just could figure it out. I have a simple data frame that looks like, >head(da.off) DDate OffP 1 2005-01-01 41.23 2 2005-01-02 44.86 3 2005-01-03 44.86 4 2005-01-04 43.01 5 2005-01-05 45.47 6 2005-01-06 48.62 where the first column DDate currently is character, and OffP is numeric. I want
2010 Jul 22
4
wine 1.2 and number handling
Hi, I am trying to install an application under wine 1.2 on centos 5.5. The application is running almost withoit problems. The only problem are the form where i put in numbers. Here is the description of the problem: When i write 1,1 and the click to the next field, the field changes to 1,10000. First thing i tried to change is to write 1.1 (note the dot instead of a comma), but the problem
2017 Sep 12
0
show 0 at y axis in xyplot lattice
Hi Maria Rule 1 make sure your data is in the right format dat <- source("G:/1/savedat.txt") > dat $value Location Date Zn2 upper.zn lower.zn 1 upstream 2016-04-27 29.92477 55.59800 13.912207 2 spill 2016-04-27 12.84040 22.07006 6.964934 3 downstream 2016-04-27 22.49673 41.60901 11.739109 4 upstream 2016-06-28 23.98425 45.60219 10.690640 5
2017 Sep 12
2
Σχετ: show 0 at y axis in xyplot lattice
Dear all, Thank you very much for the help. ylim=c(-5, 80) worked.? Regarding the reproducible example, I used dput () and saved the file as txt. It is not the first time that I used this way and normally it works. Because when I try to attach a .csv file with the data, most of the time it doesn't go through.? I will know for the next time.? Many thanks. Regards,Maria ???? 2:11 ?.?.
2017 Sep 12
0
Σχετ: show 0 at y axis in xyplot lattice
Dear Maria The file you attached to your first e-mail did come through but I think some people on the list must have missed it. Michael On 12/09/2017 12:54, Maria Lathouri via R-help wrote: > Dear all, > Thank you very much for the help. ylim=c(-5, 80) worked. > Regarding the reproducible example, I used dput () and saved the file as txt. It is not the first time that I used this way
2008 Oct 28
1
How to add a data line (series) to a plot using add=TRUE
Hello, I'd like to use the add=TRUE parameter to add a second data line (series) to an existing plot, but R is giving me an error (see below). This code: > rap<-plot(aspen_sort,ylim=c(1,10000),log="y") ...produces the plot to which I'd like to add the second line. But this code: > rap<-plot(pine_sort,add = TRUE) ...produces this error: Warning messages: 1: In
2012 Apr 19
1
Performing t tests between matrices
I need to perform 10000 T tests #I have two populations with different means Popc1<-rnorm(100000,10,2) Popc2<-rnorm(100000,8,2) #I created two sets of samples - each set has 10000 samples, and I made a matrix of 20 rows and 10000 columns to fit the data sampc1<-matrix(,20,10000) for(j in 1:10000){sampc1[1:20,j]<-sample(Popc1,20)} sampc2<-matrix(,20,10000) for(j in
2010 Jul 13
1
Generate groups with random size but given total sample size
Dear list, I am currently doing some simulation studies where I want to compare different scenarios. In particular, two scenarios should be compared: 10.000 cases in 100 groups with 100 cases per group and 10.000 cases in 100 groups with random group size (ranging from 5 to 500). The first part is no problem: > id <- seq(1,10000) > group <- sort(rep(seq(1,100),100)) But I don't
2017 Sep 11
4
show 0 at y axis in xyplot lattice
Dear all I am trying to make a plot in xyplot lattice by groups. I would like to show "0" in y axis but I don't want to be aligned with the x axis. I want to be a little bit above. I have tried many options but I don't get what I want. I also tried ylim=c(0, 80) but both 0 and 80 are fully aligned with the x-axis and the upper boundary of the plot, respectively: xyplot(upper.zn +
2004 Aug 20
0
Syslinux 2.11 and gcc 3.4.1
Memdisk still won't build because gcc doesn't always inline functions. Here's a patch I used. --- memdisk/Makefile.orig 2004-01-24 16:37:22.000000000 -0500 +++ memdisk/Makefile 2004-08-18 06:34:53.000000000 -0400 @@ -17,11 +17,12 @@ then echo $(1); else echo $(2); fi) M32 := $(call gcc_ok,-m32,) +MINLINE := $(call gcc_ok,-minline-all-stringops,)
2005 Jan 27
3
the incredible lightness of crossprod
The following is at least as much out of intellectual curiosity as for practical reasons. On reviewing some code written by novices to R, I came across: crossprod(x, y)[1,1] I thought, "That isn't a very S way of saying that, I wonder what the penalty is for using 'crossprod'." To my surprise the penalty was substantially negative. Handily the client had S-PLUS as
2012 Apr 19
1
Performing repeated T tests in R
I need to perform 10000 T tests #I have two populations with different means Popc1<-rnorm(100000,10,2) Popc2<-rnorm(100000,8,2) #I created two sets of samples - each set has 10000 samples, and I made a matrix of 20 rows and 10000 columns to fit the data sampc1<-matrix(,20,10000) for(j in 1:10000){sampc1[1:20,j]<-sample(Popc1,20)} sampc2<-matrix(,20,10000) for(j in
2005 May 25
15
PHP/AGI Problem
Hi I am currently developing a IVR application using PHP/AGI. I am using the PHPAGI class at http://phpagi.sourceforge.net/ to handle the commuication with my *. The application basically asks a caller to enter in some information which is then processed and a answer is read back out to them. I want the application to loop back to the beginning after giving the answer so they can try another
2003 Feb 15
2
scp + .bashrc buglet
Hi OpenSSH folks, Just a quick note: this is my .bashrc: # Executed by non-login interactive shell # # scp go wild when it see this #echo "<*> Executing ~/.bashrc from '$0'. Command line: '$*'" #ps -H e #echo "<*> Finished ~/.bashrc" Line 3 was added and subsequent lines commented out. Now scp works. Looks like a little scp bug for me. CC me,
2004 Jan 25
1
syslinux for opteron
I am trying to build syslinux under gentoo on in 64 bit mode on an opteron. I get output like this ../com32/include/com32.h: In function `MK_PTR': ../com32/include/com32.h:77: warning: cast to pointer from integer of different size gcc -I../com32/include -g -Wall -O2 -fomit-frame-pointer -march=i386 -malign-functions=0 -malign-jumps=0 -malign-loops=0 -DVERSION='"2.06"'
2008 Feb 26
2
3.62-pre16: Compiling on old (2.4 kernel) distros
I have put a compile hack in for older distros and pushed it out as syslinux-3.62-pre16; for those who have reported compilation problem on older distros I would greatly appreciate if you could confirm if it works now (it worked for me on a CentOS 3.9 VM.) -hpa
2001 Jul 01
1
(PR#1007) ks.test doesn't compute correct empirical
On Sun, 1 Jul 2001 mcdowella@mcdowella.demon.co.uk wrote: > Full_Name: Andrew Grant McDowell > Version: R 1.1.1 (but source in 1.3.0 looks fishy as well) > OS: Windows 2K Professional (Consumer) > Submission from: (NULL) (194.222.243.209) Please upgrade: we've found a number of Win2k bugs and worked around them since then, let alone teh bug fixes and improvements in R .... >
2006 Mar 14
2
Date problem
Hello, I have some "stupid" problems managing "date" data. I have a colomn "date", which I converted from a character representation: for example: a="26/02/06" date=strptime(a,format="%d/%m/%y") For one part of the analysis, I'm interested only in the month and the year, so I did: m.y=strftime(date,format="%m/%y") This returns me