similar to: "Negative length vector" error in simple merge

Displaying 20 results from an estimated 5000 matches similar to: ""Negative length vector" error in simple merge"

2007 Nov 16
2
expand.grid overflows?
>cbn<-as.matrix(expand.grid( rep( list(0:1), 50))) Error in rep.int(rep.int(seq_len(nx), rep.int(rep.fac, nx)), orep) : invalid 'times' value In addition: Warning message: In rep.int(rep.int(seq_len(nx), rep.int(rep.fac, nx)), orep) : NAs introduced by coercion But I'm only interested in cbn matrix rows where: cbn<- cbn[rowSums(cbn)==5,] Is there a way to evaluate it
2010 Mar 30
2
Problem with expand.grid() function
Hi, good morning, I got following error which looks strange to me while executing this code : > temp <- expand.grid(rep(list(c(1,0)),40)) Error in rep.int(rep.int(seq_len(nx), rep.int(rep.fac, nx)), orep) : invalid 'times' value In addition: Warning message: In rep.int(rep.int(seq_len(nx), rep.int(rep.fac, nx)), orep) : NAs introduced by coercion However if I put a small
2017 Jul 13
0
Quadratic function with interaction terms for the PLS fitting model?
> On Jul 13, 2017, at 10:43 AM, Bert Gunter <bgunter.4567 at gmail.com> wrote: > > poly(NIR, degree = 2) will work if NIR is a matrix, not a data.frame. > The degree argument apparently *must* be explicitly named if NIR is > not a numeric vector. AFAICS, this is unclear or unstated in ?poly. I still get the same error with: library(pld) data(gasoline) gasTrain <-
2011 Aug 02
3
Clean up a scatterplot with too much data
I'm working with a lot of data right now, but I'm new to R, and not very good with it, hence my request for help. What type of graph could I use to straighten out things like... http://r.789695.n4.nabble.com/file/n3711389/Untitled.png ...this? I want to see general frequencies. Should I use something like a 3D histogram, or is there an easier way like, say, shading? I'm sure these
2005 Jun 03
1
Need Help - Urgent
Hello, I am a student and some really urgent help.I am using R software and while creating a grid with eight elements its showing the error and while if i do it with seven it says that the memory is not sufficient... here is the line ...with the error.... > Z<-as.matrix(expand.grid(x,y,x,y,t,s,t,s)) Error in rep.int(rep.int(seq(length = nx), rep.int(rep.fac, nx)), orep) : cannot
2010 Nov 24
1
segfault interest?
in a long program, I ran into ?*** caught segfault *** address 0xdc3f9b48, cause 'memory not mapped' Traceback: ?1: rep.int(seq_len(nx), rep.int(rep.fac, nx)) ?2: rep.int(rep.int(seq_len(nx), rep.int(rep.fac, nx)), orep) ?3: expand.grid(seq_len(nx), seq_len(ny)) ?4: merge.data.frame(d, ss) ?5: merge(d, ss) ?6: valid.range(opt) ?7: eval.with.vis(expr, envir, enclos) ?8: eval.with.vis(ei,
2005 Oct 13
1
expand.grid problem
Hi all, I want to make all possible combination from dataset below: V1 <- c(0,1,2) V2 <- c(0,1) V3 <- c(0,1) V4 <- c(0,1) V5 <- c(0,1) V6 <- c(0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20) V7 <- c(0,1,2,3,4,5,6) V8 <- c(0,1) V9 <- c(0,1) V10 <- c(0,1) V11 <- c(0,1) V12 <- c(0,1) V13 <- c(0,1) V14
2008 Feb 07
1
Problems reshaping data with cast()
Hi, I'm trying to cast() some data, but keep on getting the following error... > norm.all.melted.height <- transform(all.melted.height, + norm.height = value / ave(value, SNP, Pool, FUN = max) + ) Warning messages: 1: In FUN(X[[147L]], ...) : no non-missing arguments to max; returning -Inf 2: In FUN(X[[147L]],
2013 May 22
1
Something Very Easy
HI, I am not sure about what you expect as output. dat1<- read.table(text=" Offense Play Y??????? A N??????? B Y??????? A Y??????? C N??????? B N??????? C ",sep="",header=TRUE,stringsAsFactors=FALSE) ?with(dat1,tapply(Play,list(Offense),table)) #$N # #B C #2 1 # #$Y # #A C #2 1 #or with(dat1,tapply(factor(Play),list(Offense),table)) #$N # #A B C #0 2 1 # #$Y # #A B
2011 Aug 28
2
Function won't permanently assign values to a vector
I'm somewhat new to R, but I've had a lot of experience in Java. I'm working on a function that takes data from a data frame, does some math and assigns the values to a vector. Pretty simple. I plan to merge the vector with the data frame when I'm done. The vector is called offense1 (there will eventually be 2). I declared it on its own, outside of the function. Right now its
2009 Oct 12
1
Loading data to Trellis barchart plot.
Dear all, I have a question about loading the data to barchart plot. I know this could be a very easy question, but I just can not get my head around. What I need to do is to create a trellis plots barchart style (horizontal bar), with levels of one variable (ie. variable “colour” in my example) as ylab and frequency as xlab on each trellis plot. The trellis plots is separated based on
2009 Jun 25
2
stringsAsFactors has no impact in expand.grid()?
Hi I have the feeling, that the argument stringsAsFactors has no impact in the function expand.grid: a <- c("PR", "NC", "A2", "BS") b <- c(1, 0.5, 0.25, 0.125, 0.0625, 0.03125) class(expand.grid(css, fscs, stringsAsFactors=FALSE)[[1]]) [1] "factor" class(expand.grid(css, fscs, stringsAsFactors=TRUE)[[1]]) [1] "factor" Also, when
2014 Dec 24
2
A Question of Style
On Dec 23 17:05, PatrickD Garvey wrote: > Thank you for your contribution to the discussion. I'm glad you appear to > understand this was not directed at you personally. Certainly no offense was taken here. I'm thankful for people like you who are looking out for understandability. > > I'm a retired System Administrator. Part of my job was being a professional >
2017 Jul 13
4
Quadratic function with interaction terms for the PLS fitting model?
poly(NIR, degree = 2) will work if NIR is a matrix, not a data.frame. The degree argument apparently *must* be explicitly named if NIR is not a numeric vector. AFAICS, this is unclear or unstated in ?poly. -- Bert Bert Gunter "The trouble with having an open mind is that people keep coming along and sticking things into it." -- Opus (aka Berkeley Breathed in his "Bloom
2011 Jul 09
3
Basic vector logic not working
I am interning in a computer science lab and I'm very new to R. The language basics are clear, but this particular problem isn't: I have a very large dataframe called "data" which holds data from Halo matches. I'm trying to analyze a certain window such that data$deaths>20 and data$deaths<=27. When I enter the line kills = data$kills[data$deaths>20] or any single
2006 Apr 21
1
Backup FAQ: PLEEZE include in FAQ?
I know there are a million ways to skin a cat, but we must have 1,000,001 discussed in the archives already. I guess folks don't know about "search". So, I'm hoping that the pending FAQ might have mention of one or more of the *excellent* threads resident in the archives regarding backup? And just so this post is not a total waste, I'll mention that cpio can be your friend
2015 Oct 13
4
RFC: Introducing an LLVM Community Code of Conduct
> On Oct 13, 2015, at 10:23 AM, Bill Kelly via llvm-dev <llvm-dev at lists.llvm.org> wrote: > > Renato Golin via llvm-dev wrote: >> On 13 October 2015 at 17:16, Kuperstein, Michael M via llvm-dev >> <llvm-dev at lists.llvm.org> wrote: >>> The FreeBSD CoC is, IMHO, much better in this respect ( https://www.freebsd.org/internal/code-of-conduct.html ).
2001 Jan 26
2
RPM Unpacking??
Hey there, I downloaded the Kernel Source 2.2.17 from the ext3 site, however I can't seem to figure out how these rpm's work (I don't like RPM's and I rather not use em either :-( no offense :-)) and I kinda miss the good old simple .tgz files which show me where they extract and I can compile myself n stuff. Anyways I tried rpm -iv <package name> then some stuff happened
2007 Jun 11
9
is CentOS stable enough ?
hello to all, i am a newbie to CentOS. for my project work i need to have RHEL. so i searched Google for Open alternatives and found CentOS to be most popular. i have used Fedora, the base of RHEL and CentOS. Fedora is the one of the most buggy *NIX distro i have ever seen. since Fedora is the base of RHEL which is the base of CentOS, i just want to know whether CentOS is stable and reliable
2020 Jul 22
2
[RFC] Preferred error/note style across non-clang tools, e.g. tablegen
Hi, Jonathan. > On Jul 21, 2020, at 17:15, Jonathan Roelofs <jonathan_roelofs at apple.com> wrote: > > > >> On Jul 21, 2020, at 1:46 PM, Evandro Menezes <evandro.menezes at sifive.com <mailto:evandro.menezes at sifive.com>> wrote: >> >> >> >>> On Jul 21, 2020, at 14:30, Chris Lattner via llvm-dev <llvm-dev at lists.llvm.org