-1

As in the header, I have opened an RDS table in R Studio, and need to know the field names within that table.

But I don't know the correct command or syntax to follow this:

UK_2001 <- readRDS("D:/Census_History/Postcodes/2001_05_MAY_AFPD.rds")

Any guidance would be gratefully received.

Thanks in advance.

Bruce Mitchell
  • 159
  • 2
  • 14

1 Answers1

0

You can display the structure of any R object using str which will give you the object's type (e.g. data.frame), column names and column types as well.

str(UK_2001)

If you are just after the names of the columns colnames will do.

datenzauber.ai
  • 379
  • 2
  • 11