I'm trying to get some (dynamic) R output in a website. For instance, a simple count of some values in a dataframe.
> data(infert)
> length(infert$age)
[1] 248
This "[1]" greatly interferes with the reading :
We do have currently [1] 248 entries in our database
Is it somehow possible to remove this "[1]" line count in front of the shown result, especially when the output is a unique value?
Thanks to Ananda's comment below!
cat(length(infert$age))
Does perfectly the trick !
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