similar to: While loop

Displaying 20 results from an estimated 900 matches similar to: "While loop"

2008 Jul 09
2
rollmean()
Hello, I am trying to calculate a 31 day running mean in some temperature data along ROWS. Rollmean() works great along columns, but how do I perform this same action on my rows? The data is a matrix of 365 columns (days of the year) by 5,000 rows (lat/long coordinates). I would like to perform a 31 day running mean along the 365 days. I am new to R so any help would be greatly appreciated!
2008 Jul 15
2
Row Sum, exclude positive values
Hello, I'd like to sum the values of a row from the first negative number (FN) to the last negative number (LN), but not add any positive values to the sum. Then apply this to each row of the data frame. For example if I have a dataframe with Row 1 values DF = (4, 3, 2, 1, 0, -1, -2, -3, -2, 2, 1, -1, -2, -3, -2, -1, 1, 2) I would like to sum the numbers from column 6 to column 16, but not
2008 Jul 23
3
sum each row and output results
Hello, I have the following data frame (DF): V5 V5.1 V5.2 V5.3 V5.4 V5.5 2 -5890.18905 -6019.84665 -6211.06545 -6198.9353 -6616.8677 -6498.7183 3 -5890.18905 -6019.84665 -6211.06545 -6198.9353 -6616.8677 -6498.7183 4 -5890.18905 -6019.84665 -6211.06545 -6198.9353 -6616.8677 -6498.7183 5 -5890.18905 -6019.84665 -6211.06545 -6198.9353 -6616.8677
2008 Jul 14
2
long data frame selection error
Hello, I am trying to select the following headers from a data frame but when I try and run the command it executes halfway through and give me an error at V188 and V359. Temp <- data.frame(V4, V5, V6, V7, V8, V9, V10, V11, V12, V13, V14, V15, V16, V17, V18, V19, V20, V21, V22, V23, V24, V25, V26, V27, V28, V29, V30, V31, V32, V33, V34, V35, V36, V37, V38, V39, V40, V41, V42, V43, V44, V45,
2011 Feb 08
2
Extrcat selected rows from a list
Hi, I have two lists 1) List1- 30,000 rows and 104 columns 2) List2- a list of 14000 selected rownames  from List 1 Now, I want to extract all the 104 columns of List1  matching with the 14000 selected rownames from List2.  Psedocode will be something like this: match rownames(List2) with rownames(List1) extract selected matched 104 coloumns from (List1) strore in-> List3 So the
2004 Oct 22
1
Vector and String
Hi everybody, I'm using a vector to strore some strings. I create a vector named seq2 : > seq2<-vector(length=0) I have a string named b > b [1] CATGGTAGGAATAC I put b in the vector > seq2<-c(seq2,b) Finally I edit seq2 > seq2 [1] "14760" My question is why I obtained a number (14760) when I add a string (CATGGTAGGAATAC) I have an idea : when I edit b, I see
2006 Nov 16
1
Strange indexing issues with CachedModel, STI, and AAF
I started using robotcoop''s CachedModel class in my project but have encountered problems when using it with the acts_as_ferret plugin. It seems it doesn''t index everything in my STI model, also if I do a search from my base STI class I get a result count but no results. If I run the same search from one of the children STI models I get the appropriate results (if the information
2008 Dec 12
5
ring back tone
Hi all, I would like to ask please if there is a way to play a ring back tone from asterisk when the customer try to make a call...I already added the ringing function to the context in extensions .conf and it work perfectly...But the issue that the asterisk server is stoping playing back his own ring back tone as soon as it detect a ring back tone coming from the carrier side... Is there a way
2008 Jan 16
5
xen backup
hi I am trying to stop the application running in the VM from the host machine.....that means by typing some command in the host machine, (script or using some API''s or sending some signal to VM from the host), i want stop application running in the VM.......is there any way to do this.....if anybody know this please help me....... I want this because......I want to take VM consistent
2007 Jan 15
3
php agi - first phrase truncated, all others fine
I have the following code. When I call the extension, it either ignores the first "Hello there everyone", or says "hello" and moves on sometime stoping before it finishes hello. The rest of the text reads fine. Anyone else have this issue?? Thanks! require('/var/lib/asterisk/agi-bin/phpagi.php'); $agi = new AGI(); $agi->answer();
2016 Aug 05
4
Fwd: Re: Encrypt /decrypta file with ssh keys.
As per Alex's suggestion, attached is the proof of concept "sfile" script. If there is anyone out there with great C skills who can recreate this functionality "out of the box", I think there would be a few happy campers (at least two, anyways). -------- Forwarded Message -------- Subject: Re: Encrypt /decrypta file with ssh keys. Date: Fri, 5 Aug 2016 17:24:35
2009 Jan 28
3
vm ignores kickstart
Hi, I''m trying to use a kickstart file to install VMs on a Scientific Linux 5.2 (repackaged RHEL52) host, but the install process seems to ignore my kickstart file. The command I''m using is: virt-install -n sl4vm01 --ram=1024 --vcpus=1 --os-type=linux --os-variant=rhel4 --extra-args="ks=http://particle.phys.uvic.ca/~fransham/ks.cfg" --paravirt --nographics
2004 Nov 04
1
Allow access to a share to all members of a container?
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 I have 104,000 users, some of which are in the OU: ad.network.local\AD\People\IFAS\Hort Is there an easy way to find all the users in this OU and grant them access to a share? Or do I have to list each user individually? And if so, can I use net user to list the users in an OU? - -Tom -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6
2009 Apr 27
4
A way to get the R data stored temporarily in working memory?
Hey guys, I have a problem: I created a silly for loop without saving the results on each step. After a while I realised that it will take days to finish the loop until I get the results. Is there a way to get the data R saves in working memory or in a temporary file while runing the loop? So that stoping the loop will not result in complete data loss? Thank you very much! Greetings,
2018 Jun 21
2
NetworkManager updating resolv.cfg
Hi, I am facing issue stoping NetworkManager to update resolv.cfg, I am using below configuration for eth0 interface: TYPE=Ethernet BOOTPROTO=dhcp DEFROUTE=yes IPV4_FAILURE_FATAL=no IPV6INIT=yes IPV6_AUTOCONF=yes IPV6_DEFROUTE=yes IPV6_FAILURE_FATAL=no IPV6_ADDR_GEN_MODE=stable-privacy NAME=eth0 UUID=93b90a46-dab5-4a67-8fd0-fefe8874a8b9 DEVICE=eth0 ONBOOT=no PEERDNS=no PEERROUTES=yes
2008 Jun 16
5
Re: ssh between DomUs in Xen3.2
Hi Waldirio: I tried telnet earlier from one DomU to another [root@localhost ~]# telnet 192.168.17.201 22 Trying 192.168.17.201... Connected to 192.168.17.201 (192.168.17.201). Escape character is ''^]''. and then it just hangs... So it looks like I can connect to the port from DomU to DomU. But from Dom0 to a DomU [root@gxn-wn2 ~]# telnet 192.168.17.201 22 Trying
2004 Jun 08
2
piping to ogg123: Error opening - using the oggvorbis
module. The file may be corrupted. Message-ID: <Pine.LNX.4.43.0406081110070.26162-100000@pilchuck.reedmedia.net> I am unable to pipe to ogg123 with cat, but redirecting with < works fine. rainier:~$ cat ~/audio/acdc-who_made_who.ogg | ogg123 -v - Audio Device: OSS audio driver output Author: Aaron Holtzman <aholtzma@ess.engr.uvic.ca> Comments: Outputs audio to the Open Sound
2009 Feb 11
7
Volume group "VolGroup00" not found
Hi, I am compiling Xen from source on FC9. On booting the Xen dom0 kernel it gives the following error: Volume group "VolGroup00" not found and ultimately the error that switchroot: mount failed: No such file or directory So my question is that why it fails to detect logical volumes? Thanks, Abdul Qadeer _______________________________________________ Xen-users mailing list
2008 Jun 12
8
Booting from CD to rescue a DomU
Hi Xen Users, I would like to boot into a knoppix iso on an existing domU. In my config file i have: disk = [ "file:/var/lib/xen/images/machine-10.img,hda,w","file:/mnt/knoppix.iso, hdb:cdrom,hdb,r" ] Can''t seem to boot it though. Do I have to go into the VMs BIOS to tell it to boot it? Cheers CHris _______________________________________________ Xen-users
2012 Apr 01
2
A function like sum but with functions other than '+'
Because I didn't find in R any functions similar to the function 'reduce' from Python, I'm writing a function "freduce" as follows: freduce <- function(f, vec, ValIni=NULL, StopIn=NULL) { # f: is any function that takes two arguments of the same type # vec: is a vector of n values accepted by 'f' # # Initially f starts with ValIni, if it's given