I want to print the following in R:
f(x)
1
2
3
I tried:
print(data.frame("f(x)" = 1:3), row.names = F)
However, the parentheses get converted to periods:
f.x.
1
2
3
How can I print parentheses in column names? Of course, I could just write print("f(x)\n 1\n 2...")
, but I need this to be from a data frame.