I have a 'tbl_df' imported into R Studio via Excel.
Now, trying to completely change all the cells that have been imported to numerical as the contents are a series of numbers. The only section of the data that I do not want as numerical is the header and the first Row. The data is currently classified as characters.
I have tried no following:
(i) Dateset <- as.numeric(Qrt_March_2021)
RESULT:
Error: 'list' object cannot be coerced to type 'double'
(ii) dateset <- as.numeric(Qrt_March_2021![1])
RESULT:
Error: unexpected '!' in "dateset <- as.numeric(Qrt_March_2021!"
The theory here being that by de-selecting row 1 ([1]) I would be able to prevent the error.
In addition to @HanOostdijk comments, you should try and generate a reprex of your question as this is indeed all very confusing.
A reprex consists of the minimal code and data needed to recreate the issue/question you're having. You can find instructions how to build and share one here: