profitBenchmarkResultStripPointers: Return a copy of a data.frame with pointers converted to...

Description Usage Arguments Value Author(s) See Also Examples

View source: R/profitBenchmark.R

Description

This function will take a data.frame with external pointers (like a result from profitBenchmark) and convert the pointers to strings so that the can be printed without errors.

Usage

1
2
profitBenchmarkResultStripPointers(dataframe, colnames=as.vector(
  outer(c("env","convolver"),c("single","double"),paste,sep="_")))

Arguments

dataframe

A data.frame with external pointers, such as a benchmarking result returned from profitBenchmark.

colnames

Character or nunmeric vector of the names or indices of columns to convert.

Value

The same data.frame given in dataframe with external pointers converted to strings.

Author(s)

Dan Taranu

See Also

profitBenchmark, profitGetOpenCLEnvs

Examples

1
2
3
4
5
6
7
8
9
## Not run: 
  openclenvs = profitGetOpenCLEnvs(make.envs=TRUE)
  print(profitBenchmarkResultStripPointers(openclenvs))
  img = profitMakeGaussianPSF()
  bench=profitBenchmark(img, psf=img, nbench=1L, methods=profitAvailableConvolvers())
  print(profitBenchmarkResultStripPointers(bench$result)[
    c("name","env_name","version","dev_name",paste0("tinms.mean_",c("single","double")))])

## End(Not run)

ProFit documentation built on Nov. 11, 2019, 5:07 p.m.