similar to: FOR LOOP w/IFELSE statement help

Displaying 20 results from an estimated 8000 matches similar to: "FOR LOOP w/IFELSE statement help"

2009 Jan 19
3
download/retain text file structure with RCurl/getURL()
Dear list, I'm trying to download a text file directly from the internet using the RCurl package and the command getURL. Duncan Lang graciously helped me solve the first step in this problem using the following command: ################# txtfile <- getURL('ftp://ftp.wcc.nrcs.usda.gov/data/snow/snow_course/table/history/idaho/13e19.txt', ftp.use.epsv = FALSE) #################
2008 Aug 04
3
backslash in character string?
Dear list, After searching many old posts, I can't find the solution to a simple problem. can someone tell me how to create a character string with multiple backslashes, as in: file_dir <- c("C:\files\data\") I need to create this string and then paste it to many files names for batch processing in another software program. R won't accept the backslash and removes
2008 Feb 29
2
while loop syntax help
Dear list, I'm trying to write my first looping function in R. After many hours of searching help files and previous posts, I'm at wits end. Please forgive my programming ignorance...any help is greatly appreciated. I need to sort through a vector (x) and identify the point at which 2 successive values become smaller than the previous value. I've written a "while"
2009 Apr 14
2
subset dataframe by rows using character vector?
Dear List, I'm stuck on what seems like a simple indexing problem, I'd be very grateful to anyone willing to help me out. I queried a dataframe which returns a character vector called "plot". I have another dataframe from which I want to subset or select only those rows that match "plot". I've tried subset, and also the "which" command. plot
2008 Oct 01
1
regexpr syntax question
Greetings R list, I am stuck on a simple syntax problem. I want to list all files in a directory, excluding files of a certain type. I have tried pattern matching as follows: a <- list.files(data, full.name = TRUE, pattern != ".xml") # exclude all .xml files The warning returns that my syntax is incorrect. I have read the regexpr help files and search old posts to no
2008 Apr 23
1
64 bit Linux/Ubuntu memory limit problem?
Dear list, I've recently installed R on a 64 bit machine with 8 GB of RAM. I set this computer up as a dual-boot system, with windows XP 64 and Ubuntu 7.10. I downloaded the Linux 64 bit version of R and installed it. I'm trying to run rather large Random forest models and was running into severe memory limitations with my old windows 32 bit machines. When I run Random Forest models
2012 Nov 27
1
virtio for 9.1-R
Hi guys, I can't see virtio in releng/9.1, is there any particular reason why it isn't going to be included given that it works reasonable well (and is optional anyway, so not likely to be detrimental)? Thanks, Joe
2016 Jan 20
1
linking icecast to ios and android phones
.PLS files should work for iOS devices. See sample text: [playlist] numberofentries=1 File1=http://91.121.91.172:31090/LG73 Title1=LG73 Vancouver's Best Music Mix! Length1=-1 Version=2 On Wed, Jan 20, 2016 at 1:27 PM, Holden Stanford <hstanford1 at gmail.com> wrote: > You can create a .m3u or .mp3 container linking to the stream URL. I can't > remember the exact tags
2003 Dec 30
4
Assignments in loops
Greetings all. Any help with the following would be appreciated. I want to create a data frame for each file in a directory. The following code does not work but it may show what I am trying to do: carmakes <- c('BMW','Chrysler','Citroen','Fiat','Ford','Holden','Honda',
2004 Nov 11
1
[Announcement] Version 1.0.3 released
With pleasure we announce the release of version 1.0.3. Here is a summary of the changes: * Show error message when failing to write a PID file. * Ignore spaces at end of lines in config files. * Fix handling of late packets. * Unify BSD tun/tap device handling. This allows IPv6 on tun devices and anything on tap devices as long as the underlying OS supports it. * Handle IPv6 on Solaris tun
2004 Nov 11
1
[Announcement] Version 1.0.3 released
With pleasure we announce the release of version 1.0.3. Here is a summary of the changes: * Show error message when failing to write a PID file. * Ignore spaces at end of lines in config files. * Fix handling of late packets. * Unify BSD tun/tap device handling. This allows IPv6 on tun devices and anything on tap devices as long as the underlying OS supports it. * Handle IPv6 on Solaris tun
2002 May 15
3
how to get 2.2.3a.tar.gz
I'd like to go back to 2.2.3a since I cant get printing to work at moment with 2.2.4 at the moment does any one know where I can get this from the samba ftp site seems to not keep previous versions. thanks in advance, Dave. -- Personal Links:- Recommended reading : http://www.oreilly.com/catalog/dbnationtp/ UK Privacy (R.I.P) : http://www.stand.org.uk/commentary.php3 Public
2005 Jan 27
2
Samba not recognizing secondary groups
Hi all. I'm having a strange issue with a server running Samba 3.0.2a. The server has a single share, and under that are subfolders that contain documents. Each subfolder is owned by a different folder-specific group, and users belong to the groups that own the folders to which they need access. But suddenly one user can't access any folders. Windows (the client) suggests that she
2016 Jan 20
3
linking icecast to ios and android phones
I think it's because the website uses Flash as first player instead of using it as a fallback for when the browser does not support modern web standards like the audio tag. I am running a desktop without flashplayer and this is the screenshot of your web radio 2016-01-20 18:55 GMT+01:00 Jeremiah Rogers <jeremiahzrogers at gmail.com>: > I use iOS to listen to my Icecast all the
2006 Nov 14
2
isolinux menu32 (Re: Problems booting on Intel i9x5 motherboards.)
See: http://syslinux.zytor.com/archives/2006-May/006887.html I think I've tracked the problem down a bit more specifically. In edd.S when the kernel calls int 0x13 with %dl=80 [primary disk] & %al=1 [read one sector] and ah set to READ_SECTORS it never returns. However, the following code [which does drive diagnostics] works. mov $0x7E, %al call prtchr movw $0x0000, %ax movb
2004 Sep 20
2
late or replayed packet warning
I get a lot of these in my log, especially when I am moving lots of traffic across the vpn: Sep 20 10:45:11 titan tinc.tdvpns[16152]: Got late or replayed packet from holden (xx.yy.zz.ww port 655), seqno 37609, last received 37610 (sequence numbers displayed generally differ by only one) What exactly is this trying to say? Surely this doesn't simply mean that the udp packets arrived in a
2001 Aug 15
2
x11drv
I have SuSE 7.1. I installed wine from the disc When I try to run it as root, I get "Could not load graphics driver 'x11drv'" I cannot find x11drv anywhere on the disc's or the installed packages. can anyone tell me where I can get ? Chris.
2010 Jul 07
1
ifelse statement
Hi, I am a newbie of R, and playing with the "ifelse" statement. I have the following codes: ## first, for(i in 1:3) { for(j in 2:4) { cor.temp <- cor(iris.allnum[,i], iris.allnum[,j]) if(i==1 & j==2) corr.iris <- cor.temp else corr.iris <- c(corr.iris, cor.temp) } } this code is working fine. I also tried to perform the same thing in another way with "ifelse":
2010 Sep 17
1
ifelse statement
Dear list, I have a question I'm trying to use the following command in R, but it gives me an error message.The command is: data<-ddply(data,c("year","name"), transform, check1=ifelse(check1==1 & check2==1, 1,NULL)) so in my data frame I already have the check1 variable, if the conditions (check1==1 & check2==1) is respected, check has to have 1 as value,
2003 Nov 17
2
Newbie question
I'm trying to find a good open source software to do sales forecasting using Holt Winters and Box Jenkins time series algorithm. Somebody pointed me that R is the best open source available for statistical computing. Are there functions to do Holt Winters and Box Jenkins time series prediction in R? If there is none, can some one point me a good GNU/freeware to do the sales forecasting using