Displaying 6 results from an estimated 6 matches similar to: "how to write a loop to repetitive jobs"
2018 Apr 16
0
how to write a loop to repetitive jobs
Hello,
The following might do it. Without data it's untested.
wd <- function(i){
paste0("C:/Awork/geneAssociation/removed8samples/neuhausen7", i,
"/seg.pr3.csv")
}
seg <- lapply(1:5, function(i) {
DF <-read.csv(wd(i))
DF$id <- paste0("sn7", i)
DF
})
seg <- do.call(rbind, seg)
row.names(seg) <- NULL
Hope this helps,
2018 Apr 17
0
how to write a loop to repetitive jobs
Hello Ding,
try this:
seg <- list()
for ( d in 71:75) {
s <- paste0("seg",d)
sn <- paste0("sn",d)
Dir<-paste("C:/Awork/geneAssociation/removed8samples/neuhausen", i, sep="")
setwd(Dir)
seg[[s]] <- read.csv("seg.pr3.csv", head=T)
seg[[s]]$id <- sn
}
Greetings,
Albrecht
--
Albrecht Kauffmann
alkauffm at
2008 Oct 01
2
an unsophisticated question about recoding in a data frame with control structure if {}
Hello all,
I apologize for a terribly simple question. I'm used to using Stata and am trying to `switch' over to R.
I would like to recode a vector in a data frame when the value of it meets the following condition: if (dataframe$factor=='3'){dataframe$thevector<-(an arithmetic mean). What I would like to result is the creation of a new variable within the data frame for
2004 Aug 06
0
I am new - how to set client
Thanks Josephus for your advice.
That is the reason why I have joined this group...to learn.
I have never done anything with streaming, but we must start somewhere.
I do work with the web as a programmer.
As I mentioned before, I do have winamp 5 and I have the server running
I still do not know how to tie up winamp on my client machine to the
server machine.
Does some one have aworking copy
2004 Aug 06
0
I am new - how to set client
You need the Oddcast plugin for WinAmp 2/5.
http://www.oddsock.org/tools/oddcastv2_wa2/
>From: "Nestor" <nestorflorez@earthlink.net>
>Reply-To: icecast@xiph.org
>To: <icecast@xiph.org>
>Subject: Re: [icecast] I am new - how to set client Date: Sat, 20 Dec 2003
>13:59:43 -0800
>
>Thanks Josephus for your advice.
>
>That is the reason why I have
2006 Jul 05
10
Google/Netflix Like Tooltips
I need to have a toolip-like object which has dynamic content in it. I
plan on using scriptaculous with an ajax call to retrieve the content,
but I would like to make the popup/tooltip/balloon text look as nice as
possible. Does anyone have any examples or anything useful to create a
popup like the ones that Google and Netflix have? I''d like to have one
which must be