How to show full column name in Tidyverse R

Viewed 728

This is an odd question. I have a dataframe in R that that I read in and I want to see the full names of the columns, not the truncated ones. How can i show the full name?

This is the output i get. I don't know how to get rid of the ...

I just read in a csv file with headers.

movies <- read.csv("Movies.csv")

> colnames(movies)
 [1] "Day.of.Week"            "Director"               "Genre"                  "Movie.Title"            "Release.Date"           "Studio"                 "Adjusted.Gross...mill."
 [8] "Budget...mill."         "Gross...mill."          "IMDb.Rating"            "MovieLens.Rating"       "Overseas...mill."       "Overseas."              "Profit...mill."        
[15] "Profit."                "Runtime..min."          "US...mill."             "Gross...US"            

1 Answers

While reading with read.csv/read.table, we can specify the option check.names = FALSE (by default, it is TRUE)

movies <- read.csv("movies.csv", check.names = FALSE)
Related