search for: mnths

Displaying 4 results from an estimated 4 matches for "mnths".

Did you mean: months
2009 Jun 25
3
Efficient lookup on a two-dimensional table
...without an explicit loop. Example: #x is the 2-d table that holds the values x <- matrix(rnorm(26*12),nrow=26) rownames(x) <- letters colnames(x) <- month.name #y is a data frame that has the "keys" I want to use as indices into x y <- data.frame(ltrs=sample(letters,5),mnths=sample(month.name,5),values=0) #I want to fill in the "values" column using the "ltrs" and "mnths" columns as keys to look up # the associated value from x #One way to do this is with a FOR loop for (i in 1:nrow(y)) {y$val[i] <- x[y$ltrs[i],y$mnths[i]]} My qu...
2002 Apr 12
1
Once again somewhat mystified with exclude rules
I go thru this every few mnths it seems. Rsyncs exclude rules are very sophisticated but because of that somewhat unfathomable at times. Simplified: I want to exclude directories named no_bak anywhere in the tree but only the files under them, not the direcrories themselves. My exclude rules look like: no_bak/* /no_bak/* The...
2012 Mar 15
3
Adding mean values to boxplots
...he following code, which generates the plot as I'd like it: library("RODBC"); conn <- odbcConnect("datawarehouse"); # connect to datawarehouse results <- sqlQuery(conn, "call sproc)"); ylab <- 'Percentage (%)' main = 'Productivity Overview - 6 mnths'; par(mai=c(1.5,1,1,0.2), las = 2, xpd=TRUE, cex.axis=0.8, cex.lab=0.8); col = c('forestgreen', 'forestgreen', 'forestgreen', 'chocolate', 'chocolate', 'chocolate', 'goldenrod', 'goldenrod', 'goldenrod'); b <- results[,4...
2006 Aug 11
1
Samba log hell
Setup: Running Gentoo linux 2.6X kenel Samba 3.0.23 I'm having a time getting samba working after having it working for mnths. I did do a major update world. That kind of update on Gentoo can involve many other apps. At the end when adjusting files under /etc/ that may have newer versions, I rejected the new smb.conf keeping my old config which is still in place so the trouble may be coming from somewhere else. It s...