The HOF function in the eHOF package of R automatically generates a progress bar. There is no argument in the function to turn off the progress bar.
Is there any way to suppress the generation of the progress bar outside of the function? (I am applying the function many hundreds of times, and the progress bars currently serve no purpose other than to flood my screen.)
As per @hrbrmstr's suggestions.
# Load the library
library("eHOF")
# Generate a fake dataset
FakeData<-sample(c(0,1),250,replace=TRUE)
TestMatrix<-matrix(FakeData,nrow=50,ncol=5)
# Apply the HOF function to each column of the matrix, and suppress progbar
# Use invisible to prevent capture.output from printing the progbar
invisible(capture.output(Models<-apply(TestMatrix,2,HOF,1:50)))
# Apply the Para function to extract the model parameters
DesiredOutcome<-sapply(Models,Para)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With