uot;")
Cell2<-paste(letters[grep(substring(Cell,1,1),letters)+1],
as.integer(substring(Cell,2))+nrow(Data),sep="")
MyCell=paste(Cell1,":",Cell2,sep="")
B3R[["Formula"]] <- paste("=sum(",MyCell,")",sep="")
I'm writing a function that can take a data.frame as an argument. I'd
like to be able to obtain the name of the data.frame and print it out
within the function. My current function looks like this:
examineIt<-function(x) {
print(nrow(x))
print(x[ceiling(runif(10)*nrow(x)),])
print(summary(x)
ius [mailto:dwinsem...@comcast.net]
Sent: Thursday, August 27, 2009 12:48 PM
To: Jason Baucom
Cc: Henrique Dallazuanna; r-help@r-project.org; Steven Few
Subject: Re: [R] generating multiple sequences in subsets of data
On Aug 27, 2009, at 11:58 AM, Jason Baucom wrote:
> I got this to work. T
iteria. I'm surprised it's bringing my computer to
its knees. I'm running about 1M rows now, but doing other operations such as
merges or adding new columns/rows seems fine.
-Original Message-
From: David Winsemius [mailto:dwinsem...@comcast.net]
Sent: Thursday, August 2
9 32313 FALSE1
1042414 FALSE2
Jason
From: Henrique Dallazuanna [mailto:www...@gmail.com]
Sent: Thursday, August 27, 2009 11:02 AM
To: Jason Baucom
Cc: r-help@r-project.org; Steven Few
Subject: Re: [R] gener
reaches 3. This way we can have two unique sequences for
each row2, assuming of course the threshold is reached.
Jason
From: Henrique Dallazuanna [mailto:www...@gmail.com]
Sent: Thursday, August 27, 2009 11:02 AM
To: Jason Baucom
Cc: r-help@r-project.org; Steven
ike row3<-sequence(nrow(unique(stuff$row2))) that
actually works :-) Here is the for loop that functions properly for
row3:
stuff$row3<-c(1)
for (i in 2:nrow(stuff)) { if ( stuff$row2[i] == stuff$row2[i-1]) {
stuff$row3[i] = stuff$row3[i-1]+1}}
Thanks!
Jason Baucom
Ateb, Inc.
919
7 matches
Mail list logo