search for: new_repo

Displaying 1 result from an estimated 1 matches for "new_repo".

Did you mean: new_rbo
2009 Jan 13
1
Converting Factor to Vector
Hi all, How can I convert factor like this: > str(repo) 'data.frame': 1000 obs. of 1 variable: $ AAA: Factor w/ 1000 levels "AAT","AAC",..: 1 2 3 4 5 6 7 8 9 10 ... > print(repo) AAA 1 AAA 2 AAT 3 AAC ... into to simple vector > str(new_repo) chr [1:100] "AAA" "AAT" "AAC" "AAG" "ATA" "ATT"... > print(new_repo) [1] "AAA" "AAT" "AAC" "AAG" "ATA" "ATT"... I tried as.vector(), but it remains the same factor. - Gund...