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
  • 178,638
  • 15
  • 253
  • 268
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,342
  • 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
  • 787
  • 4
  • 19
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,107
  • 12
  • 45
  • 67
-1

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

Ben Bolker
  • 192,494
  • 24
  • 350
  • 426