similar to: Problems with code containing a for loop

Displaying 20 results from an estimated 3000 matches similar to: "Problems with code containing a for loop"

2009 Oct 09
1
For loop isn't working correctly
Hi. With your help, I've fixed the errors in my for loops. But now, the for loop isn't working correctly. There should be a plot, but there's no plot when I run the for loop.. This is the code: letters = c("A","B","C","D","E","F","G","H","I","J") numbers = 1:3 for(i in
2009 Sep 29
3
sort dates within a factor
Dear List, I have the following data: >> test <- data.frame(date = as.Date(c('2007-01-01','2008-03-24','2003-03-02','2008-05-03','2002-05-23','2001-06-30','2005-12-04')), nr = c(2000,2000,2000,2001,2002,2003,2003)) test date nr 1 2007-01-01 2000 2 2008-03-24 2000 3 2003-03-02 2000 4 2008-05-03 2001 5 2002-05-23 2002 6
2008 Oct 17
3
Guitar Pro in Wine?
My uncle recently bought a new computer and he wants me to help him install Guitar Pro. The thing is, he doesn't have Windows, and I'm thinking of installing Ubuntu with wine on the comp. Quiz time! Can you use wine, with GP, and if you can, deos it perform poorly in any ways?
2009 Jul 29
2
quetions about dimensions
hi ,everyone, I have a script shown as below: > bj2=bjerrdata$tyerr[bjyearnum[2]+1:bjyearnum[3]] > length(bj2) [1] 448 while > b=bjyearnum[3] > a=bjyearnum[2]+1 > bj1=bjerrdata$tyerr[a:b] > length(bj1) [1] 169 it is different with bj2 and bj1 . and the array bjyearnum is [1] 0 279 448 633 1021 1365 1813 2237 2839 3314 3798 4157 12 why bj1 is 169 while bj2 is 448
2009 Oct 08
1
To hell with OpenSuse, ditch it and go to Ubuntu
this blog entry http://www.viggie.com/blog/software/opensuse-ubuntu-usage-experience , if credible , would seem to suggest that there is no good reason to choose Suse. I really don't have time for such nonsense, maybe I'll just reinstall as Ubuntu. Also, noticed that GCC was not installed when Suse installed. That's just weird, GCC is part of Linux. And if you try to install GCC,
2009 Jan 28
2
Text data
i have a data column of text entries: 26M_AN_C.bmp 22M_AN_C.bmp 20M_HA_O.bmp 20M_AN_C.bmp 26M_HA_O.bmp 22M_HA_O.bmp 31M_AN_C.bmp 38M_HA_O.bmp . . . . And I would like to sort by the middle tag: AN, HA, etc. Is there a way to parse text data in R? In excel, I would have used the "left" and "right" function to cut out just the middle two letters out and put into another
2006 Dec 08
2
trouble with cloud output to bmp when in loop
I have some data that I need to view in various 3-D clouds. To better see the cloud structure on a 2-D screen I would like to output a bunch of bmp files with clouds at slightly different angles, then run them through an external program to animate them. But I'm having trouble getting cloud() from the lattice package to output to bmp files. Oddly, this is only a problem when outputting
2006 Sep 14
2
Patch to fix ArtProvider and ArtProvider sample
These patches better implement ArtProvider and add the demo for it. I also expanded the bigdemo window a little bit. I really think we should go larger but I suppose there might be some people at 800x600 still. Note that creating your own art provider still doesn''t quite work correctly. I didn''t have time to get into that. The RubyConstants.i.patch file looks weird. Not
2004 May 27
2
no transparent background in bmp
I've been attempting to export a graphics file of my lattice plots and no matter what color I use for the bg= argument in the bmp/jpeg/png function, the background is grey. bmp(filename = "c:/my_paper/resids.bmp", width=1024, height=1024, pointsize=10, bg="transparent") # these are lattice plots. plot them in a 3x2 matrix print( hgqqplot, position=c(0.0, 0.66, 0.5, 1.0 ),
2012 May 08
2
PPM to BMP converter
Dear all, Several days ago, I posted How to write a bmp file pixel by pixel. Instead of bmp, I succeeded in writing a PPM file by using the pixmap package. Thanks for the hint generously provided by Uwe Ligges. Now I have a new question. How to convert a PPM file to BMP file in R? I know I can do this in photoshop or by some other softwares, but I think if I Can do this in R, that
2008 Sep 08
1
Beginner graphics device questions.
Please forgive me if this has been asked before but I could not readily find an answer. First, from the example I was able to determine that graphics device commands such as plot can be redirected using 'png' and 'bmp' type commands. I tried this and it works as I understand it. The question is how this graphics device works. If I issue another 'plot' command will it also
2012 Jan 01
1
bmp() shifts the image (Windows XP)
When using bmp() under Windows XP, I find that the saved image is a shifted version of the correct image. Try this: n<-5 fn<-"01.bmp" x<-matrix(runif(n*n),nrow=n) image(x,col=gray(0:255/255),axes=F,frame.plot=F) bmp(filename = fn,width = n, height = n, units = "px") par(mar=c(0,0,0,0),pty="s") image(x,col=gray(0:255/255),axes=F,frame.plot=F) dev.off() The
2004 May 18
3
Help : trellis.device
Hi, R members. I want to save plots. So I use the R as fallows : -------------------------------- a <- c(1,10) b <- c(1,10) c <- c(2,20) d <- c(2,20) require(lattice) trellis.device("bmp", file = "test.bmp", bg = "white") print(plot(a,b)) print(plot(c,d)) dev.off() -------------------------------- However, I got a image of plot(c,d). I want to get a
2018 Jan 05
1
stat(2) cache, samba3 versus samba4
Short version: Is there a way to enforce use of this cache: ./source3/smbd/statcache.c I noticed it is absent from the ./source4 directory I limited server max protocol = SMB2 but that didn't do it. Long story: ----------- My samba server (4.2.14) hosts a couple of game install trees for a Windows 7 computer. Some of the games cause storms of stat(2) system calls, here is a partial
2007 Jul 12
1
bmp => xpm
Salut Alex, je voudrais savoir comment faire pour passer le format bmp, par exemple, en format xpm? Est-ce qu''il est possible de lire des formats bmp(entre autre) avec StaticBitmap? C''est toi en photo dans l''exemple de StaticBitmap? merci Sebastien _______________________________________________ wxruby-users mailing list wxruby-users@rubyforge.org
2007 Mar 12
3
reading BMP into R
Um texto embutido e sem conjunto de caracteres especificado associado... Nome: n?o dispon?vel Url: https://stat.ethz.ch/pipermail/r-help/attachments/20070312/112cd7f9/attachment.pl
2011 Apr 01
3
Disk full / file corrupted
Hello! Sorry if I repeated. I have next problem with Samba 3.5.8 *Scenario:* - CentOS 5.5 - Mounted disk image with loop device to /mnt/.sharedDisk mount (output) /SharedDiskImage.img on /mnt/.sharedDisk type vfat (rw,noexec,nosuid,nodev,loop=/dev/loop0,uid=99) df -h (output) Filesystem Size Used Avail Use% Mounted on /SharedDiskImage.img 128M 128M 1.5K 100% /mnt/.sharedDisk -
2009 Dec 13
2
Reshape a data set
I am trying to reshape a data set. Could someone please help me with the reshape, cast, and melt functions? I am new to R and I have tried reading up on how to use the reshape package, but I am very confused. Here is an example of what I am trying to do: subject coder score time [1,] 1 1 20 5 [2,] 1 2 30 4 [3,] 2 3 10 10 [4,] 2 2
2008 Aug 26
3
savePlot() does not save plot with format set
R-help, Whenever I try to save a plot with "savePlot" the file is not stored in my hard disk with the selected format. Several formats are set and none of them works. I just get the file name with missing extension and it can't be open with programs like Paint and Microsoft Photo Editor Th only one able to open it is "Windows Picture and Fax Viewer" plot(rnorm(10))
2001 Sep 06
2
file.copy() problems on WinNT (PR#1085)
For some files, file.copy() doesn't copy these files correctly. Here you will find a file (Bitmap, 769Kb) to reproduce the problem: http://www.statistik.uni-dortmund.de/leute/ligges/R/test1.bmp Using file.copy("c:/test1.bmp", "c:/test2.bmp", overwrite = TRUE) produces a second file with the size of ~1.4 Mb: http://www.statistik.uni-dortmund.de/leute/ligges/R/test2.bmp