search for: succinct

Displaying 20 results from an estimated 302 matches for "succinct".

2006 Mar 31
6
string interpolation - #{} vs. single vs. double quotes
Could someone point me to documentation that provides a succinct and accurate description of the difference between interpolation using #{}, single quotes, and double quotes ? I imagine there''s a set of precedence rules that govern behavior if/when they''re mixed. I''d like to get clear on this. Thanks, Bill -------------- next part -...
2015 Oct 13
4
RFC: Introducing an LLVM Community Code of Conduct
On 13 October 2015 at 17:16, Kuperstein, Michael M via llvm-dev <llvm-dev at lists.llvm.org> wrote: > The FreeBSD CoC is, IMHO, much better in this respect ( https://www.freebsd.org/internal/code-of-conduct.html ). Nice! This is so succinct and beautiful! It doesn't need an overseeing foundation to take opaque decisions, and focus on what's really important: the code. I particularly like "Do not make it personal. Do not take it personally.". It means *so* much in such a short sentence. cheers, --renato PS: note,...
2012 Oct 16
2
List of Levels for all Factor variables
Hi, I want to get a clean succinct list of all levels for all my factor variables. I have a dataframe that's something like #1 below. This is just an example subset of my data and my actual dataset has 70 variables. I know how to narrow down my list of variables to just my factor variables by using #2 below (thanks to Bert Gunt...
2011 Nov 10
3
[LLVMdev] Optimization passes
Is there a succinct way I can get the full list of which optimization passes are applied, and in what order, for standard clang -O1, -O2, -O3? -- Larry Gritz lg at larrygritz.com
2010 Apr 14
2
search and replace
...uth", "North", "East" and "West" which I would like to replace with S, N, E, and W, respectively. Obviously, I can use gsub multiple times df $col2 <- gsub("West", "W", df$col2) which will require multiple scans of the column. Is there a succinct approach where all the replacements can be done with a single scan? Thanks.
2005 Dec 22
2
Documentation for generate controller
I can find the API documentation, but where is the documentation for the standard generators. The wiki has 3rd party generators- but I want to know specifically what generate controller does, and how it differs from generate scaffold, and what other generators there are. Where is this succinctly documented? -- Posted via http://www.ruby-forum.com/.
2007 Jun 04
3
test for nested factors
...e a conventional way to test for nested factors? I.e., if 'a' and 'b' are lists of same-length factors, does each level specified by 'a' correspond to exactly one level specified by 'b'? The function below seems to suffice, but I'd be happy to know of a more succinct solution, if it already exists. Thanks, Tim. --- "%nested.in%" <- function(x,f,...){ #coerce to list if(!is.list(x))x<-list(x) if(!is.list(f))f<-list(f) #collapse to vector x <- tapply(x[[1]],x) f <- tapply(f[[1]],f) #analyse return(all(sapply(lapply(split(f,x),...
2009 Aug 10
2
strsplit a matrix
...atrix into 2 as efficiently as possible. It is a character matrix: 1 2 3 1 "2-271" "2-367" "1-79" 2 "2-282" "2-378" "1-90" 3 "2-281" "2-377" "1-89" I want to make 2 matrices from this, as succinctly and efficiently as possible. I've tried such things as sapply(matrix, strsplit, "-") and tried to go from there, but I can't figure it out! So far I do it with a 2D for loop which can't be efficient! firstPartM <- matrix(ncol= dim(zzz)[2], nrow= dim(zzz)[1]) secondPa...
2012 Mar 12
2
Trying to use current R2spec on RHEL.
Is there somewhere a succinct guide to just how much extra crud we need to install on RHEL to make use of EPEL packages? [root at troll-1 noarch]# rpm -ivh R2spec-4.1.0-1.el6.noarch.rpm error: Failed dependencies: fedora-packager is needed by R2spec-4.1.0-1.el6.noarch [root at troll-1 noarch]# wget http://dl.fedor...
2015 Mar 06
2
leap second and Centos
...nnebry <hennebry at web.cs.ndsu.nodak.edu> wrote: > Unix and ntp handle leap seconds a bit differently. > Unix time increases during the leap second and drops back a second after. > Ntp freezes time during the leap second. > OS kernels may do either or neither. Does anyone have a succinct summary of how to prove to management-types that a given linux box won't have a problem with the leap second? Like kernel > some_version, tzdata > some_version, tzdata-java > some_version? -- Les Mikesell lesmikesell at gmail.com
2007 Feb 11
2
tighten up class?
The following works fine but is there some way to make it more succinct? Thanks, Kent class obsd_etc_static { file { "/etc/mygate": owner => root, group => wheel, mode => 644, backup => main, source => "puppet://example.com/obsd_static/mygate" } file { "/etc/rc.conf": owner =>...
2007 Apr 06
3
questions re. patching bcmxcp.c and choosing variable names
...until it worked, but it would be nice to know if sending 0x00 means something unpleasant that hasn't yet become apparent... And since I'm so green that I don't know what a patch in diff -u format means, would someone be kind enough to explain how to submit this patch (or point me to a succinct description).
2009 Mar 31
5
Using apply to get group means
Hi all, I'm trying to improve my R skills and make my programming more efficient and succinct. I can solve the following question, but wonder if there's a better way to do it: I'm trying to calculate mean by several variables and then put this back into the original data set as a new variable. For example, if I were measuring weight, I might want to have each individual's wei...
2006 Feb 28
2
Elegant way to express residual calculation in R?
Hi All, I am illustrating a simple, two-way ANOVA using the following data and I'm having difficulty in expressing the predicted values succinctly in R. X<- data.frame(read.table(textConnection(" Machine.1 Machine.2 Machine.3 53 61 51 47 55 51 46 52 49 50 58 54 49 54 50"...
2015 Oct 13
4
RFC: Introducing an LLVM Community Code of Conduct
...vm-dev wrote: >> On 13 October 2015 at 17:16, Kuperstein, Michael M via llvm-dev >> <llvm-dev at lists.llvm.org> wrote: >>> The FreeBSD CoC is, IMHO, much better in this respect ( https://www.freebsd.org/internal/code-of-conduct.html ). >> >> Nice! This is so succinct and beautiful! >> >> It doesn't need an overseeing foundation to take opaque decisions, and >> focus on what's really important: the code. >> >> I particularly like "Do not make it personal. Do not take it >> personally.". It means *so* much i...
2006 Jan 10
2
Correct way to test for exact dimensions of matrix or array
Dear R Users, I want to test the dimensions of an incoming vector, matrix or array safely and succinctly. Specifically I want to check if the unknown object has exactly 2 dimensions with a specified number of rows and columns. I thought that the following would work: > obj=matrix(1,nrow=3,ncol=5) > identical( dim( obj) , c(3,5) ) [1] FALSE But it doesn't because c(3,5) is numeric and...
2009 Oct 18
2
Bug with .First in R 2.10
...se it tries to do things that are specific to my machines. The not-OK one says "skipping .First", as below, and you'll see why it shouldn't be doing that. Obvioulsy, the files need renaming before you can test them. I haven't been able to condense the .First to something more succinct that shows the same fault; saving a modified .First frequently makes the problem go away, seemingly regardless of what the change is. The transcript from the not-OK version is given below Mark -- Mark Bravington CSIRO Mathematical & Information Sciences Marine Laboratory Castray Esplanade H...
2017 Oct 14
4
[RFC] Polly Status and Integration
...ndles, metadata, names). Value has a non-inline destructor to deal with all of these capabilities, as does Instruction. Each individual instance of these types allocate memory. The question is then: For any particular use case, do you need those capabilities/properties? If not, is there a more succinct representation that can be used efficiently? -Hal > > > > _______________________________________________ > LLVM Developers mailing list > llvm-dev at lists.llvm.org > http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev -- Hal Finkel Lead, Compiler Technology and Prog...
2012 Dec 04
5
[LLVMdev] Proposal: Adding aligned instruction bundle support to MC
...separately as independently as feasible. One of the first things we'd like to start with is support for aligned instruction bundles in MC (assembler) level. This support exists in gas since binutils version 2.23 (http://sourceware.org/binutils/docs/as/Bundle-directives.html#Bundle-directives). Succinctly, the initial proposal is to add the following directives: .bundle_align_mode <num> .bundle_lock .bundle_unlock With the following semantics: When aligned instruction bundle mode ("bundling" in short) is enabled (.bundle_align_mode was encountered with an argument > 0, which...
2005 Nov 15
3
Reading in a table with unequal columns
Hi, Wasn't sure how to explain this problem succinctly in a title. I am trying to read in a text file that looks like: 0 1000 175 1 2 3 1 1000 58 0 2 9 2 1000 35 0 1 3 10 3 1000 300 0 2 4 5 10 11 18 4 1000 150 3 5 6 5 1000 100 3 4 6 7 18 6 1000 50 4 5 7 8 7 1000 155 5 6 8 19 8 1000 255 6...