Skip to contents

[Stable]

Assign value to attribute footnote of object x.

[Deprecated]

This function is deprecated here. Please look at R/footnotes for the correct function.

Usage

footnotes(x) <- value

footnotes(x) <- value

Arguments

x

an object

value

character vector

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"
#>