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

View source: R/profitBenchmark.R

profitBenchmarkResultStripPointersR Documentation

Return a copy of a data.frame with pointers converted to strings for easy printing

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

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

## 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)

ICRAR/ProFit documentation built on Feb. 1, 2024, 9:34 a.m.