search for: rowbind

Displaying 7 results from an estimated 7 matches for "rowbind".

2007 Dec 26
2
Rbind-ing a list into one item
Hi, I am doing the following: 1. I have a list of files.. Files1=list.files("some directory",pattern="some pattern") 2. I define a list as res=vector("list", length(files1)) 3. I read all the files into this list: res=lapply(files1, read.csv) I now want to rowbind all the items in the list into one big mass (all files have same number of columns). I tried lapply(res, rbind) but that did not work. Suggestions? -------------------------------------------------------- This message w/attachments (message) may be privileged, confidential or proprietary, and if y...
2019 May 16
5
nrow(rbind(character(), character())) returns 2 (as documented but very unintuitive, IMHO)
...ectors of zero length (including ?NULL?) > > are ignored unless the result would have zero rows (columns), for > > S compatibility. (Zero-extent matrices do not occur in S3 and are > > not ignored in R.) > But there's a couple of things here. First, for the rowbind case this reads as "if there would be zero columns, the vectors will not be ignored". This wording implies to me that not ignoring the vectors is a remedy to the "problem" of the potential for a zero-column return, but thats not the case. The result still has 0 columns, it ju...
2019 May 17
3
nrow(rbind(character(), character())) returns 2 (as documented but very unintuitive, IMHO)
...are ignored unless the result would have zero rows (columns), for > >> > >> S compatibility. (Zero-extent matrices do not occur in S3 and are > >> > >> not ignored in R.) > >> > > But there's a couple of things here. First, for the rowbind case this > > reads as "if there would be zero columns, the vectors will not be > > ignored". This wording implies to me that not ignoring the vectors is a > > remedy to the "problem" of the potential for a zero-column return, but > > thats not the case...
2011 Apr 07
1
Automated Fixed Order Stepwise Regression Function
...an as necessary? rb<-rbind(a1,a2,a3,a4) #Comment 3--again I can't automate this to make the addition of a's automated anova1<-rbind(rb[1,],rb[4,],rb[8,],rb[13,],rb[14,]) #Comment 4--the rb's follow a pattern of 1+3+4+5...+n variables #then I row bind these starting with 1 and rowbind one more after the last #...rb to include the bottom piece of the anova table that tells #...about residuals (how do I aoutomate this?) anova<-anova1[,1:num.of.var] anova.table<-data.frame(anova) #Comment 5--Something that bugs me here is that I have to turn it into a dataframe to #...add...
2019 May 16
0
nrow(rbind(character(), character())) returns 2 (as documented but very unintuitive, IMHO)
...; > > > are ignored unless the result would have zero rows (columns), for > > > > S compatibility. (Zero-extent matrices do not occur in S3 and are > > > > not ignored in R.) > > > > But there's a couple of things here. First, for the rowbind case this > reads as "if there would be zero columns, the vectors will not be > ignored". This wording implies to me that not ignoring the vectors is a > remedy to the "problem" of the potential for a zero-column return, but > thats not the case. The result still...
2019 May 16
0
nrow(rbind(character(), character())) returns 2 (as documented but very unintuitive, IMHO)
...luding ?NULL?) >> are ignored unless the result would have zero rows (columns), for >> >> S compatibility. (Zero-extent matrices do not occur in S3 and are >> >> not ignored in R.) >> > But there's a couple of things here. First, for the rowbind case this > reads as "if there would be zero columns, the vectors will not be > ignored". This wording implies to me that not ignoring the vectors is a > remedy to the "problem" of the potential for a zero-column return, but > thats not the case. The result still...
2019 May 17
0
nrow(rbind(character(), character())) returns 2 (as documented but very unintuitive, IMHO)
...luding ?NULL?) >> are ignored unless the result would have zero rows (columns), for >> >> S compatibility. (Zero-extent matrices do not occur in S3 and are >> >> not ignored in R.) >> > But there's a couple of things here. First, for the rowbind case this > reads as "if there would be zero columns, the vectors will not be > ignored". This wording implies to me that not ignoring the vectors is a > remedy to the "problem" of the potential for a zero-column return, but > thats not the case. The result still...