Learn R Programming

ProFit (version 1.3.3)

profitBenchmarkResultStripPointers: 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.

See Also

profitBenchmark, profitGetOpenCLEnvs

Examples

Run this code
# 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")))])
# }

Run the code above in your browser using DataLab