Displaying 1 result from an estimated 1 matches for "dimv".
Did you mean:
dim
2000 Jan 26
1
data.frame[1,1]<- differs from data.frame[[1]][1]<- (PR#403)
I observed the following difference:
> ddd <- data.frame(a=1:3, b=1:3)
# assignment of 'X' silently ignored
> ddd[1,1] <- 'X'
> is.factor(ddd[[1]])
[1] FALSE
> ddd
a b
1 1 1
2 2 2
3 3 3
# assignment of 'X' not ignored
> ddd[[1]][1] <- 'X'
> is.factor(ddd[[1]])
[1] TRUE
> ddd
a b
1 X 1
2 2 2
3 3 3
Regards
> version