similar to: Why does this work? plyr within-subset normalization

Displaying 20 results from an estimated 2000 matches similar to: "Why does this work? plyr within-subset normalization"

2012 Feb 23
3
I'm sure I'm missing something with formatC() or sprintf()
I have a four-digit string I want to convert to five digits. Take the following frame: zip 2108 60321 60321 22030 91910 I need row 1 to read '02108'. This forum directed me to formatC previously (thanks!) That usually works but, for some reason, it's not in this instance. Neither of the syntaxes below change '2108' to '02108.' The values in cand_receipts[,1] are of
2011 Dec 04
3
Prediction from censReg?
Hi - First post, so excuse any errors in protocol: Wanted to ask if there's an easy way to use 'predict' with objects of class 'censReg', 'maxLik', 'maxim' or 'list'. Have a left-censored dataset, attempting to use a Tobit model and am working with the censReg package. I like how easy it is to move from glm models to predictions with
2012 Mar 20
1
passing xlim to coord_map in ggplot2
I'm sure this is smack-head moment, but I haven't been able to find an example of this on Nabble or SO, so thought I'd ask. This works: michigan <- map_data('county', 'michigan') mich_points <- data.frame(x = rnorm(n = 200, median(michigan[,1]), 0.75), y = rnorm(n = 200, median(michigan[,2]), 0.75)) ggplot() + geom_path(aes(long, lat, group = group), data =
2012 Mar 27
1
Unique instances of a string in a vector -- there must be a better way to do this
I'm sure there's a better way to do this using plyr. I just can't nail the right series of commands. I've got a vector of strings. I want to remove all where the string's count within the vector is > 1. Right now I'm using: Where x2 is the original data.frame and my character strings live in x2[,3]. Based on my results, that looks like it works, though if someone
2012 Feb 13
3
Assigning a function to the 'times' argument of rep()
Question: I'm trying to use paste() with rep() to reformat a series of values as zip codes. e.g., if column 1 looks like: 52775 83111 99240 4289 112 57701 20001 I want rows 4 and 5 to read, "04289" "00112" My thought was this: > perry_frame$zip <- ifelse(nchar(as.character(perry_frame$zip))<5,
2018 Apr 02
3
multi-site SSL certificates
On Mon, Apr 02, 2018 at 02:34:34PM +0200, Gedalya wrote: > On 04/02/2018 02:25 PM, Jeff Abrahamson wrote: > > I see that the file > > > > .well-known/acme-challenge/IT7-YURAep4bniD9zYpKpdRUBQcgCRJ6FflmZzWQGNg > > > > is being created (and one other file, too) but that nginx reports that > > the _directory_ > > > >
2017 Nov 03
3
stats module
On 03/11/17 17:43, Mark Moseley wrote: > > > On Fri, Nov 3, 2017 at 9:35 AM, Jeff Abrahamson <jeff at p27.eu > <mailto:jeff at p27.eu>> wrote: > > Sorry, Aki, I don't follow you.? Did I do it wrong in the file > 91-stats > that I shared in my original mail (attached here)? > > Jeff > > > On 03/11/17 16:50, Aki Tuomi wrote:
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
2017 Nov 03
2
stats module
Sorry, Aki, I don't follow you.? Did I do it wrong in the file 91-stats that I shared in my original mail (attached here)? Jeff On 03/11/17 16:50, Aki Tuomi wrote: > You need to add the stats listener, by yourself. > > Aki > >> On November 3, 2017 at 5:19 PM Jeff Abrahamson <jeff at p27.eu> wrote: >> >> >> Thanks for your suggestions, Steffen.
2017 Nov 03
2
stats module
Thanks for your suggestions, Steffen. Running doveconf -n shows no errors and also, sadly, no mention of the stats listener: ?? (master=)?? ? [T] jeff at nantes-1:p27 $ doveconf -n # 2.2.22 (fe789d2): /etc/dovecot/dovecot.conf # Pigeonhole version 0.4.13 (7b14904) # OS: Linux 4.4.0-97-generic x86_64 Ubuntu 16.04.3 LTS auth_mechanisms = plain login auth_socket_path =
2017 Nov 02
3
stats module
I'd like to monitor my dovecot instance (running on ubuntu 16.04) using telegraf. [T] jeff at nantes-1:log $ dovecot --version 2.2.22 (fe789d2) [T] jeff at nantes-1:log $ To do that, I think I need to use the stats module and get it to talk on port 24242.? I've not found enough documentation on this module to feel really comfortable with it, so it doesn't surprise me that
2018 Apr 02
4
multi-site SSL certificates
I'm handling mail for several domains, let's call them a.com, b.com, and c.com. I have certificates for each of these domains individually via certbot (letsencrypt) and nginx is happy with all of that. Since I initially configured the site to handle mail only for a.com, my /etc/postfix/main.cf file currently has these two lines: smtpd_tls_cert_file =
2017 Aug 15
2
Shiny install failed
Very New to R trying to get setup but when i try to install shiny i get trying URL 'http://cran.rstudio.com/src/contrib/shiny_1.0.4.tar.gz' Content type 'application/x-gzip' length 2329723 bytes (2.2 MB) downloaded 2.2 MB Warning in install.packages : running command '"C:/PROGRA~1/R/R-34~1.1/bin/x64/R" CMD INSTALL -l
2017 Aug 15
1
Shiny install failed
Yes windows How can i install from zip? Here is my command > install.packages("shiny") Installing package into ?C:/Users/Zack/Documents/R/win-library/3.4? (as ?lib? is unspecified) There is a binary version available but the source version is later: binary source needs_compilation shiny 1.0.3 1.0.4 FALSE installing the source package ?shiny? trying URL
2006 Mar 08
6
best practices for handling uploaded images and capistrano
Quick question: I am going to use the file_column plugin to manage uploading thumbnails. By default the images are stored in the public/ dir of the rails project. The problem I see is that when capistrano redeploys a new build and symlinks it in none of the images will be in the new public/ dir... Does anyone have a solution for this? Thanks, Zack -------------- next part -------------- An
2017 Aug 15
0
Shiny install failed
Dear Zack At a guess you are on Windows and instead of installing from the zip file you are trying to install from source. If you do not grasp the difference try posting again showing us exactly what command you used and confirm your operating system Please also post in plain text not HTML as your message may get scrambled in transit. On 15/08/2017 14:11, Zack Haney wrote: > Very New to R
2006 May 02
4
How to extend rails rake tasks?
Does anyone know how to extend the buit-in rake tasks like test:unit. I want to custom load some fixtures in a particular order. Thanks, Zack
2006 Aug 07
5
RJS Change Background Color
What''s the page.method to change the background color of a DOM element? I''m trying to change the background color of a couple of styled <li>''s when an Ajax link is clicked. Thanks, David -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060807/63de04bf/attachment.html
2012 Dec 08
5
How to efficiently compare each row in a matrix with each row in another matrix?
Dear expeRts, I have two matrices A and B. They have the same number of columns but possibly different number of rows. I would like to compare each row of A with each row of B and check whether all entries in a row of A are less than or equal to all entries in a row of B. Here is a minimal working example: A <- rbind(matrix(1:4, ncol=2, byrow=TRUE), c(6, 2)) # (3, 2) matrix B <-
2015 Jun 10
4
[LLVMdev] The use iterator not working...
Thanks Dan and Jon. I made an incorrect assumption that the "use" iterator was actually giving me the "user" when de-referencing it. Did it always have this behavior in previous LLVM versions? I've seen lots of examples of the "use" iterator being dereferenced and resulting Instruction pointer being treated as the "user"? Thanks, Zack On Tue, Jun 9,