Re: [R] A Request

2022-06-21 Thread Jim Lemon
Hi Chishti, Try this: dim(x)[2] length(dn) >From your error message, the two will be different. They should be the same. A wild guess is that the offending line of code should be: dimnames[2]<-1:dn Jim On Tue, Jun 21, 2022 at 11:10 PM Muhammad Zubair Chishti wrote: > > Hi, Dear Professor, > W

Re: [R] A Request

2022-06-21 Thread Marc Girondot
Hi, you should post a reproducible example if you want to have an answer. This error is generated when you try to copy an object in another of the wrong size. > a <- data.frame(A=1:2) > dimnames(a) [[1]] [1] "1" "2" [[2]] [1] "A" > dn <- list(c("3", "4"), c("B", "D")) > dimnames(a) <- dn Err

Re: [R] A request

2017-03-22 Thread PIKAL Petr
Hi > -Original Message- > From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of RAHUL > 14BCE0064 > Sent: Monday, March 20, 2017 12:24 PM > To: r-help@r-project.org > Subject: [R] A request > > Hello there!! > > Could somebody please go through the question ( > http://stats.stack