search for: clumsier

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

Did you mean: classier
2008 Aug 10
2
Basic data structures
...ves "ab". Question: This looks awfully clumsy; is there some more idiomatic way to do this, in particular to refer to the match.length attribute without using a quoted string or the attr function? attributes(matches[[1]])$match.length and attributes(matches[[1]])[[1]] work, but seem even clumsier. Question: R uses names like xxx.yyy in many places. Is this just a convention to represent spaces (the way most languages use "_"), or is there some semantics attached to "."? Question: Is it good practice in R to treat a string as a vector of characters so that R's powe...
2011 Mar 20
2
R as a non-functional language
I'm reading Torgo (2010) *Data Mining with R*<http://www.liaad.up.pt/~ltorgo/DataMiningWithR/code.html>in preparation for a class I'll be teaching next quarter. Here's an example that is very non-functional. > pH <- c(4.5,7,7.3,8.2,6.3) > names(pH) <- c('area1','area2','mud','dam','middle') > pH area1 area2 mud dam
2010 Nov 01
6
Plots inside a Plot
hi, is it possible to draw a plot inside another plot f.e in the upper right corner. I do not mean the possbility par(mfrow = c(2,2). Kind Regards Knut
2012 Jun 28
4
Optimizing grep, sort, uniq for speed
This snippet of code pulls an array of hostnames from some log files. It has to parse around 3GB of log files, so I'm keen on making it as efficient as possible. Can you think of any way to optimize this to run faster? HOSTS=() for host in $(grep -h -o "[-\.0-9a-z][-\.0-9a-z]*.com" ${TMPDIR}/* | sort | uniq); do HOSTS+=("$host") done