7
when I went to reproduce the example of the question "How to turn a string into Date format in R?" the command
tab<-readHTMLTable(u,header=T,skip.rows=1)
failed. The error happened because in my environment it is natural to assign the T the value
of the period I am analyzing. For this reason, in my environment, T is not synonymous with TRUE and the command fails.
It made me realize that I run the serious risk of accidentally typing pi = 7, which would lead to serious errors of analysis.
The question is how to declare pi as a constant?
It is no longer safe for the first line to be pi <- base::pi?
– Marcos Banik
Yeah, it’s safer, I’ll change it!
– Carlos Cinelli