大约有 25,500 项符合查询结果(耗时:0.0238秒) [XML]
How to not run an example using roxygen2?
...e
# example.R
\dontrun{
# this is a long running example
for(i in seq(1, 1e5)) { lm(mpg ~ wt, data = mtcars) }
}
# some other shorter example
2 + 2
share
|
improve this answer
|
...
Most underused data visualization [closed]
... example:
library(mlbench) ## this package has a smiley function
n <- 1e5 ## number of points
p <- mlbench.smiley(n,sd1 = 0.4, sd2 = 0.4) ## make a smiley :-)
x <- p$x[,1]; y <- p$x[,2]
par(mfrow = c(1,2)) ## plot side by side
plot(x,y) ## left plot, regular scatter plot
smoothScatter(x...
Subscripts in plots in R
... That's a good tip as you can put [digits] or [characters] or even [a5] in the subscript but not [5a] or [a a]. I recently discovered this for: expression('x'['10sdt'])
– Cyrille
Sep 19 '14 at 13:26
...
Pretty git branch graphs
...d colors are: Black #202020/#555555, Red: #5d1a14/#da4939, Green: #424e24/#a5c261, Yellow: #6f5028/#ffc66d, Blue: #263e4e/#6d9cbe, Magenta: #3e1f50/#a256c7, Cyan: #234e3f/#62c1a1, and White: #979797/#ffffff.
– Slipp D. Thompson
Mar 21 '12 at 4:12
...
How to 'minify' Javascript code
...
//same as
1e12
var oneDayInMS=1000*60*60*24;
//same as
var oneDayInMS=864e5;
var a=10;
a=1+a;
a=a*2;
//same as
a=++a*2;
Some nice articles/sites i found about bitwise/shorthand:
http://mudcu.be/journal/2011/11/bitwise-gems-and-other-optimizations/
http://www.140byt.es/
http://www.jquery4u.co...
Regular expression to match a line that doesn't contain a word
...───┬──┐
S = │e1│ A │e2│ B │e3│ h │e4│ e │e5│ d │e6│ e │e7│ C │e8│ D │e9│
└──┴───┴──┴───┴──┴───┴──┴───┴──┴───┴──┴───┴──┴───┴──┴───┴...
Get JSON object from URL
...stin Hileman
>>> $q = new stdClass;
=> <stdClass #000000005f2b81c80000000076756fef> {}
>>> $q->{'qwert-y'} = 123
=> 123
>>> var_dump($q);
class stdClass#174 (1) {
public $qwert-y =>
int(123)
}
=> null
...
How to sort a HashSet?
...
for (String s: ts)
System.out.println(s);
Output:
[a1, a2, a3, a4, a5]
a1
a2
b1
b2
b3
share
|
improve this answer
|
follow
|
...
Aggregate / summarize multiple variables per group (e.g. sum, mean)
...mple, sum for "date" doesn't make sense though....
– A5C1D2H2I1M1N2O1R2T1
Mar 21 '16 at 3:53
5
Wh...
XAMPP - MySQL shutdown unexpectedly
...a PowerShell script to automate the process: gist.github.com/josemmo/24e35f2b4984a4370ce2c164f5956437
– josemmo
Aug 28 at 18:50
...
