glimpse()
: , . . str, , . ( , .)
:
> glimpse(iris_tbl)
#Observations: NA
#Variables: 5
#$ Sepal.Length <dbl> 5.1, 4.9, 4.7, 4.6, 5.0, 5.4, 4.6, 5.0,...
#$ Sepal.Width <dbl> 3.5, 3.0, 3.2, 3.1, 3.6, 3.9, 3.4, 3.4,...
#$ Petal.Length <dbl> 1.4, 1.4, 1.3, 1.5, 1.4, 1.7, 1.4, 1.5,...
#$ Petal.Width <dbl> 0.2, 0.2, 0.2, 0.2, 0.2, 0.4, 0.3, 0.2,...
#$ Species <chr> "setosa", "setosa", "setosa", "setosa",...
, :
vapply(as.data.frame(head(iris_tbl)), typeof, character(1))
:
#Sepal.Length Sepal.Width Petal.Length Petal.Width Species
# "double" "double" "double" "double" "character"