Assign value to attribute footnote of object x
.
This function is deprecated here. Please look at R/footnotes for the correct function.
Examples
x <- table(iris$Species)
footnotes(x) <- "Species are equally distributed"
attributes(x)
#> $dim
#> [1] 3
#>
#> $dimnames
#> $dimnames[[1]]
#> [1] "setosa" "versicolor" "virginica"
#>
#>
#> $class
#> [1] "table"
#>
#> $footnote
#> [1] "Species are equally distributed"
#>
x <- table(iris$Species)
footnotes(x) <- "Species are equally distributed"
attributes(x)
#> $dim
#> [1] 3
#>
#> $dimnames
#> $dimnames[[1]]
#> [1] "setosa" "versicolor" "virginica"
#>
#>
#> $class
#> [1] "table"
#>
#> $footnote
#> [1] "Species are equally distributed"
#>