The get_attributes
function takes an R object as input and
+returns its attributes, omitting the row.names attribute.
Details
+This function retrieves the attributes of a given R object, +excluding the row.names attribute.
+See also
+Other Utility Functions:
+convert_snake_to_title_case()
,
+generate_caption()
,
+rand_walk_helper()
,
+std_cum_max_augment()
,
+std_cum_mean_augment()
,
+std_cum_min_augment()
,
+std_cum_prod_augment()
,
+std_cum_sum_augment()
Examples
+get_attributes(rw30())
+#> $names
+#> [1] "walk_number" "x" "y"
+#>
+#> $class
+#> [1] "tbl_df" "tbl" "data.frame"
+#>
+#> $num_walks
+#> [1] 30
+#>
+#> $num_steps
+#> [1] 100
+#>
+#> $mu
+#> [1] 0
+#>
+#> $sd
+#> [1] 1
+#>
+#> $fns
+#> [1] "rw30"
+#>
+#> $dimension
+#> [1] 1
+#>
+get_attributes(iris)
+#> $names
+#> [1] "Sepal.Length" "Sepal.Width" "Petal.Length" "Petal.Width" "Species"
+#>
+#> $class
+#> [1] "data.frame"
+#>
+get_attributes(mtcars)
+#> $names
+#> [1] "mpg" "cyl" "disp" "hp" "drat" "wt" "qsec" "vs" "am" "gear"
+#> [11] "carb"
+#>
+#> $class
+#> [1] "data.frame"
+#>
+
+