Clark Fitzgerald

Results 9 issues of Clark Fitzgerald

How can the following code be converted to SSA? ```{R} library(rstatic) node0 = quote_ast({ x = data.frame(a = 1:10, b = letters[1:10]) x$c = rnorm(10) sum(x$a) head(x) }) # We...

Probably the most common operation in R is subsetting, ie. `[` and `$`. While trying to use `ddR` and looking at `ops.R` I notice that the subsetting operators all `collect`....

``` > a = as.dframe(iris) > colnames(a) [1] "Sepal.Length" "Sepal.Width" "Petal.Length" "Petal.Width" "Species" > a$Species Species Levels: setosa versicolor virginica > iris$Species [1] setosa setosa setosa setosa setosa setosa [7]...

This is too slow: ``` > system.time({ + colnames(ds) + }) user system elapsed 16.015 41.366 206.624 ``` Here `ds` is a a `dframe` with 4 partitions. Each chunk is...

Following up on #15 here are some ideas for improvements to ddR. - [x] Makefile to automate testing, Doc build, and examples. See #15 - [x] Overhaul init and useBackend...

The changes in #15 brought this bug out. Global variables are not exported to a PSOCK cluster. This causes the kmeans example to fail. A minimal example: ``` library(ddR) globvar

When I run the current example kmeans script I see: ``` campus-030-003 ~/dev/ddR/examples $ Rscript dkmeans-example.R Loading required package: methods Welcome to 'ddR' (Distributed Data-structures in R)! For more information,...

This works fine in base R. ``` > df df2

The same `README.md` is in the top level directory and the ddR directory. Maybe we can use a symlink or something so there's only one copy.