search for: vjj

Displaying 4 results from an estimated 4 matches for "vjj".

Did you mean: vj
2013 Feb 20
0
Simultaneously adding rows and columns by '[<-.data.frame' may fail
...j' is meant instead of 'j'. In the code of function '[<-.data.frame', near the end, it looks like 'j' needs to be replaced with 'jj' in the lines marked by # below. if (has.i) for (jjj in seq_len(p)) { jj <- jseq[jjj] vjj <- value[[jvseq[[jjj]]]] if (jj <= nvars) { ... } else { x[[jj]] <- vjj[FALSE] if (length(dim(vjj)) == 2L) { length(x[[j]]) <- nrows * ncol(vjj) # dim(x[[j]]) <- c...
2000 Nov 25
2
assigning to data frames with whole columns of NAs
...ited Kingdom Email david.firth at nuffield.oxford.ac.uk > emptyframe<-data.frame(a=c(NA,NA),b=c(NA,NA)) > emptyframe a b 1 NA NA 2 NA NA > emptyframe[1,]<-c(1,2) Warning messages: 1: invalid factor level, NAs generated in: [<-.factor(*tmp*, iseq, value = vjj) 2: invalid factor level, NAs generated in: [<-.factor(*tmp*, iseq, value = vjj) > emptyframe a b 1 NA NA 2 NA NA > anotherframe<-data.frame(a=c(8,9),b=c(NA,NA)) > anotherframe a b 1 8 NA 2 9 NA > anotherframe[1,]<-c(1,2) Warning message: invalid factor level, NAs gen...
2005 Oct 26
1
unexpected '[<-.data.frame' result
Is this a bug? If not, I am curious to know why '[<-.data.frame' was designed to yield a.frame$y != a.frame$z rather than refusing to carry out the operation at all. > a.frame <- data.frame( x=letters[1:5] ) > a.frame[ 2:5, "y" ] <- letters[2:5] > a.frame[[ "z" ]][ 2:5 ] <- letters[2:5] > a.frame x y z 1 a b <NA> 2 b c
2008 Feb 15
12
Transfer Crosstable to Word-Document
# Dear list, # I am an R-beginner and # spent the last days looking for a method to insert tables produced # with R into a word document. I thought about SPPS: copy a table from # an SPO-file and paste it into a word document # (if needed do some formatting with that table). # Annother idea was, to produce a TEX-file, # insert it and make it a word-table. # I found the following libraries, which