3

I am trying to use glimpse function in R as below

df<- read.csv("movie-pang02.csv", stringsAsFactors = FALSE)
glimpse(df)

But I am getting the error:

Error: could not find function "glimpse"

Could anyone help me with it?

MrFlick
  • 195,160
  • 17
  • 277
  • 295
prakash
  • 69
  • 1
  • 2
  • 4

5 Answers5

7

You'll need the dplyr package installed, first. Also, you need to have the glimpse call on a separate line.

library(dplyr)
glimpse(mtcars)
Edward Carney
  • 1,372
  • 9
  • 7
0

Install and load Package dplyr library(dplyr)

0

First, You'll need the tibble package installed. Also, you need to have the glimpse call on a separate line

library(tibble)
glimpse(mpg)
oszkar
  • 865
  • 5
  • 21
0

None of the above solutions worked for me.

I was able to make it work by installing the pillar package :

install.packages("pillar")

dr_rk
  • 4,395
  • 13
  • 48
  • 74
-1

Make sure that you run library(dplyr) first then run the glimpse() function.

Ben Bolker
  • 211,554
  • 25
  • 370
  • 453