Displaying 2 results from an estimated 2 matches for "cell19".
Did you mean:
cell1
2012 Mar 13
2
sort list
Hello can anyone help please?
i read two words "cell1", "cell2" into a list. I want to turn this list
into a factor.
> cell_data <-list(c('cell1','cell2'))
> cell_data
[[1]]
[1] "cell1" "cell2"
> factor_list <- factor(cell_data)
Error in sort.list(y) : 'x' must be atomic for 'sort.list'
Have you called
2012 Mar 14
1
list factoring
...ate the reading Thank you. If i have:
matrix:
> var1 var2 var3
> cell1 x x x
> cell2 x x x
> cell3 x x x
>
> cell4
>
> .
> .
> .
> .
> cell100
and:
vector1 <- c("cell1, "cell5",cell19", "cell50", "cell70")
your_data$mycells <- factor(your_data$cells %in% vector1, c("Special",
"NotSpecial"))
So my output will be something like:
[25] Special Special Special Special Special Special
[31] Special NotSpecial NotS...