disown: Reduce Object to a Nameless Vector.

Description Usage Examples

View source: R/disown.R

Description

Takes a list or list-like object and generates a vector containing just the elements themselves. Can be called with 'apply' to cleanse matrices and data frames.

Usage

1
disown(object)

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
mylist <- list('Alphabet' = LETTERS)

mylist
$Alphabet
[1] "A" "B" "C" "D" "E" "F" "G" "H" "I" "J" "K" "L" "M" "N" "O" "P" "Q" "R" "S" "T" "U" "V" "W" "X" "Y" "Z"
class(mylist)
[1] "list"

disown(mylist)
[1] "A" "B" "C" "D" "E" "F" "G" "H" "I" "J" "K" "L" "M" "N" "O" "P" "Q" "R" "S" "T" "U" "V" "W" "X" "Y" "Z"
class(disown(mylist))
"character"

danjamesadams/Dantools documentation built on Aug. 24, 2019, 6:15 p.m.