similar to: sum variable as long condition is true

Displaying 20 results from an estimated 2000 matches similar to: "sum variable as long condition is true"

2007 Nov 21
2
Reconstruct array dataset
Hi there I have an interesting problem: My csv file is of array dimensions [12,50], but it was saved the wrong way: there should be only 11 colums. What happens now if I read it into R is that the whole data set is shifted ( in the first row, the last column contains already the first value of the supposed second row and so on...) how can I tell R to switch after 11 read values to the next row,
2005 Jan 27
2
Request for help
My name is Michela Marignani and I'm an ecologist trying to solve a problem linked to knight' s tour algorithm. I need a program to create random matrices with presence/absence (i.e. 1,0 values), with defined colums and rows sums, to create null models for statistical comparison of species distribution phenomena. I've seen on the web many solutions of the problem, but none provides
2007 Sep 27
3
different colors for two wireframes in same plot
Hello R, According to: g <- expand.grid(x = 1:10, y = 5:15, gr = 1:2) g$z <- log((g$x^g$g + g$y^2) * g$gr) wireframe(z ~ x * y, data = g, groups = gr, scales = list(arrows = FALSE), drape = TRUE, colorkey = TRUE, screen = list(z = 30, x = -60)) i have two wireframes in one plot. How could i change the color of the top - one to transparent (or only the grid).
2007 Oct 02
2
zoo timeserie continuous? complete with NaN
dear r-list I have a zoo object with 2 objects and time: looks like: 2005-12-31 12:00:00 NA NaN 2005-12-31 13:00:00 NA NaN 2005-12-31 14:00:00 NA NaN 2005-12-31 15:00:00 NA NaN 2005-12-31 16:00:00 NA NaN 2005-12-31 18:00:00 NA NaN 2005-12-31 19:00:00 NA NaN 2005-12-31 20:00:00 NA NaN 2005-12-31 21:00:00 NA
2008 Mar 08
1
Deleting rows satisfying a certain condition (sum of some colums>2)
I have a huge matrix and need to delete certain rows. What I need to do is: 1.In each row, calculate the sum of jth column and (J+2)th column 2. If the sum is greater than 2 then that row needs to be deleted. I have a sample matrix and my codes here. It does remove some rows but when it does, it skips the next row and each time it deletes a row, the dimension changes so it gets out of bound. I
2007 Sep 19
3
layout function for several plots
Dear all I try to print 9 plots on a page, arranged as the code shows below. nf <- layout(matrix(c(1,0,2,0,0,3,0,4,0,5,0,6,0,0,0,0,7,0,8,9), 10,2)) layout.show(nf) but when I try to plot, an error message Fehler in plot.new() : Grafikr?nder zu gro? appears to verify p.e. with plot(runif(10:1)) i tried with plot(runif(10:1), ann=F) to produce more space, but neither. The second
2009 Sep 04
1
samba / ldap
Hi ! il want tow have one ldap backend and tow instance domain in the same server. tow question : 1 - when i start the first instance domain1 i get a SID witch is put to secrets.tbd file. but when i start the second one it detect the SID in secrets file and so don't create an other. how can i differenttiate the secrets.tbd file for each instance refered to a different smb.conf
2007 Oct 11
1
strange: yaxis inversion with zoo not possible?
hej there I want to invert the yaxis as follows: x<-rnorm(1:50) plot(x^2, type="h", ylim=c(0,10)) plot(x^2, type="h", ylim=c(10,0)) then doing the following it won't work - kind of strange isn't it? x.zoo<-zoo(x^2) plot(x.zoo, type="h", ylim=c(10,0)) plot(x.zoo, type="h", ylim=c(0,10)) how can I invert the axis with zoo objects? Marc --
2009 Sep 02
3
several domain
Hi ! Is it possible for one samba server to manage several domain ( seral instance) ? I want to connecte tow diffent network to my server ( with tow interface ) and get one different domain for each network manage par the same server. Thanks ! Y.
2005 Jun 09
8
howto write CDRs on two mysql servers
For redundancy I would like to write the CDRs on tow mysql servers. cdr_mysql.conf accept only one configuration [global], how to add a second host? Thanks Rosario -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20050609/9eacbae2/attachment.htm
2003 Nov 12
2
Join Machine to Domain
Hello, Is it really possible that just the user root with the samba password can join workstations into the domain? I have also some other users who are domain administrator, but with this users i can't join any workstations into the domain. This is mor me a important security point, because I want to give some people the acces right to join workstations into domain and only this function.
2008 Apr 06
10
about the form_for ..
question one: is there any select box tag for form_for? now,perhaps i just can use the select or select_tag? question tow: i have a A model,it has one B such as: class A< ActiveRecord::Base belongs_to :B when i use the form_for tag,how can i output the variable name?like this: <%form_for :a,@a,:url=>{:controller=>"a",:action=>"save"} do |f|%>
2005 Aug 30
5
BDC and password change program
Hello, Just wondering what I should be using for the password change program on a BDC. Should it be: passwd program = /usr/bin/smbpasswd -r <PDC address> %u I'm having a problem with passwords not staying in sync between the PDC and BDC with pass backend ldap. The systems are all Fedora Core 4, Samba 3.0.14a, openldap 2.2.23 Kent N
2011 Nov 06
1
Combining some duplicated rows & summing one of their column
Dear list, I have this dataframe: > names(events) [1] "EID" "X" "Y" "trip" "tow" "catch" "effort" "depth" [9] "season" Where some of my unique ID "EID" appears more than once in 162 cases. > length(events$EID)-length(unique(events$EID)) [1] 162 I would like to combined
2005 Jun 28
3
sync ldap samba passwds with heimdal kerberos passwds
How do I sync whem. I have tryied out this in my smb.conf unix password sync = yes passwd program = /usr/sbin/kadmin -l passwd %u passwd chat = "*Password:*" %n\n "*Password:*" %n\n "*" But then i try to change a passwd in windows it rejects it, and telling me that I dont have permissing to change the passwd. Anyone solved this issue?
2012 Nov 16
1
Sum Column in data.frame for Excel-Export
Hello together, I have a data.frame, which I would like to export to excel. This works without problems. My problem is, that i can't sum one of the colums. If i try this, i get the sum of this column. > sum_PT_PROG<-sum(data_export_final_sort$PT_PROG,na.rm=TRUE) > sum_PT_PROG [1] 130 But how can i get this result under my column for the Excel Export? Now my Excel Export looks like
2012 Oct 10
2
remove IP from DNS ldb
Hello install samba4beta8 white bind 9.9.1 and internal samba DNS DB on server white tow IP, then remove one of IPs. Users can not connect to the server or to communicate with a server takes . Because, Removed IP in response to client requests are sent ! How to remove not use IP from samba dns DB by Samba Tools ?
2011 Dec 04
1
Polishing my geom_bar for publication
Dear list, I am new with ggplot2 and I have spend quiet some time putting together the following code to create the attached plot. However there's still a few things that I'm having trouble with! I would be grateful if someone can tell me how to fix (1) the colour of my bars into grey scales (2) removing the y-axis (species name) on the right figure to avoid duplication, and (3) fix the
2006 Jan 18
0
pb accessing admin and web directory
Hi i've recently installed latest icecast version and i've build a flash player to play icecast streams i want to retrieve song title info, from admin/stats.xml or web/playlist.log my problem(s) is (are): i can access the stats.xml page in admin dir, but not the other pages of this dir i canno't access any page of web directory... i've set correct paths in icecast.xml but
2007 Aug 23
6
mongrel + pound + ziya problems
Hi, i''m using to ziya to display some graph. If i use it running mongrel as single instance all work good (very slow but work). If i try to use it with pound as htto proxy ziya charts wait forever for data...that never arrive. If i check the mongrel log it seemes to make queries on the database and retrieve data,but nothin appera. Anyone have an idea on how i can solve this problem?