Displaying 20 results from an estimated 7000 matches similar to: "trivial list question"
2006 Jul 03
2
help a newbie with a loop
Hi,
I am new in R and stumbled on a problem my (more experienced) friends
can not help with with. Why isnt this code working?
The function is working, also with the loop and the graph appears,
only when I build another loop around it (for different values of p) ,
R stays in a loop?
Can't it take more then 2 loops in one program?
powerb<-function(x,sp2,a,b,b1,m)
{
2008 Feb 04
2
make dataframe from table
Dear R-experts,
I have got a dataframe:
data
ID disease
V1 V2
1 p1 1
2 p1 3
3 p3 3
4 p3 5
5 p5 1
From which I extract a usefull table: affect
affect
1 3 5
p1 1 1 0
p3 0 1 1
p5 1 0 0
I want to merge this with anotherdataframe:
age
p1 23
p2 24
p3 23
p4 11
p5 45
If have tried as.data.frame(affect) and other solutions to get the
following comment going:
2006 Sep 25
2
paste? 'cmd /c "c:\\pheno\\whap --file c:\\pheno\\smri --alt 1"'
Dear R users,
This command works (calling a programm -called whap- with file specifiers etc.):
>system('cmd /c "c:\\pheno\\whap --file c:\\pheno\\smri --alt 1 --perm 500"', intern=TRUE)
Now I need to call it from a loop to replace the "1" by different number, however I get lost using the quotes:
I tried numerous versions of:
>i<-1
2008 Jan 21
2
reordering huge data file
Dear R-experts,
My problem is how to handle a 10GB data file containing genotype data. The file is in a particular format (Illumina final report) and needs to be altered and merged with phenotype data for further analysis.
PERL seems to be an frequently used solution for this type of work, however I am inclined to think it should be doable with R.
How do I open a text-file, line by line,
2006 Sep 30
3
Textmate project drawer: is there a Windows alternative?
I was reading about the project drawer feature in Textmate, which is Mac
only.
Is there a similar feature in a Windows based text editor that works with R.
This feature sounds really useful.
Thanks,
Graham
[[alternative HTML version deleted]]
2003 Aug 11
4
subscripts in lists
I am tying myself in knots over subscripts when applied to lists
I have a list along the lines of:
lis<-list(c("a","b","next","want1","c"),c("d", "next", "want2", "a"))
>From which I want to extract the values following "next" in each
member of the list, i.e. something along the lines of
2009 Dec 31
3
XML and RCurl: problem with encoding (htmlTreeParse)
Hi,
I'm trying to get data from web page and modify it in R. I have a
problem with encoding. I'm not able to get
encoding right in htmlTreeParse command. See below
> library(RCurl)
> library(XML)
>
> site <- getURL("http://www.aarresaari.net/jobboard/jobs.html")
> txt <- readLines(tc <- textConnection(site)); close(tc)
> txt <- htmlTreeParse(txt,
2006 Mar 01
3
Voice Activation Level (speex 1.1.11.1)
Sorry.
I forgotten the words volume or loudness.
But it is know as microphone stroke too, i think.
If something can tell me something about that
procedure it would complete my pleasure.
To bring back memories,
i only wanted to know wheather i can change a
variable that holds the sound intensity (loudness)
needet to start "encoding >> sending" if the speex codec
is in voice
2008 Jul 03
1
subset function within a function
Hi,
I am using this subset statement and it works
outside a function.
LIS[[i]]<- lapply(LI, subset, select=cov[[i]])
However, wrapped inside a function this statement
produces the same values for every LIS[[1]] which
is only the first subset of LI.
Does anyone know why is not working correctly inside
a function?
ff = factor(covariate)
nLev <- nlevels(ff)
cov <-
2012 May 02
4
[LLVMdev] [cfe-dev] Odd PPC inline asm constraint
On Tue, 2012-05-01 at 19:58 -0500, Peter Bergner wrote:
> On Tue, 2012-05-01 at 17:47 -0500, Hal Finkel wrote:
> > By default it should build for
> > whatever the current host is (no special flags required). To
> > specifically build for something else, use:
> > -ccc-host-triple powerpc64-unknown-linux-gnu
> > or
> > -ccc-host-triple
2006 Mar 10
2
lapply and list attributes
Hi
I have a list that has attributes:
attributes(lis[2])
$names
[1] "150096_at"
I want to use those attributes in a function and then use lapply to
apply that function to every element of the list, eg for simplicity's
sake:
my.fun <- function(x) {
attributes(x)
}
Then
l2 <- lapply(lis, my.fun)
It seems that "attributes(x)" within the function is not the
2003 Dec 17
1
Rsync 2.5.7 hangs after completion
I am having a problem with rsync hanging after completion. The command I
am using is: rsync -vaz --delete /banproc/ backenp650:/banproc (thanks jw
for the syntax correction)
There were 56 deletions on the destination and ~ 1380 files copied total (I
gathered these stats by using grep and wc -l on a saved file of my ssh
session to the source host). Below is the last couple of lines on my ssh
2014 Jan 03
2
[LLVMdev] How to update LiveInterval information of newly inserted machine basic block
On Jan 3, 2014, at 11:01 AM, Andrew Trick <atrick at apple.com> wrote:
>
> On Jan 3, 2014, at 4:58 AM, Haishan <hndxvon at 163.com> wrote:
>
>>
>> At 2014-01-01 04:36:21,"Andrew Trick" <atrick at apple.com> wrote:
>>
>> On Dec 31, 2013, at 3:52 AM, Haishan <hndxvon at 163.com> wrote:
>> My update steps are shown
2018 Sep 26
2
Liveness Analysis
So what is the status about LiveVariables. Is there a plan to remove it?
After searching in old lvm-dev-mails it is mentioned that LiveVariable
still exists due to one pass needing it. And a comment in
TargetPassConfig.cpp indicates that the pass in question is
TwoAddressInstruction:
// FIXME: Once TwoAddressInstruction pass no longer uses kill flags,
// LiveVariables can be removed
2013 Feb 05
0
[LLVMdev] Asserts in bundleWithPred() and bundleWithSucc()
On Feb 4, 2013, at 3:44 PM, "Sergei Larin" <slarin at codeaurora.org> wrote:
> Seems like an easy solution for this case... But let me ask you a more
> general question.
> The reason I kept on hanging on to the MBB->splice was (probably outdated)
> assumption that it will one day properly update liveness for instructions it
> moves... That is a serious matter
2004 Aug 31
2
enter browser on error
Is there a way I can get R to automatically enter the browser inside a user-defined function on the generation of an error? Specifically, I'm trying to debug this:
Error in as.double.default(sapply(lis, FUN)) :
(list) object cannot be coerced to double
In addition: There were 38 warnings (use warnings() to see them)
> traceback()
8: as.double.default(sapply(lis, FUN))
7:
2014 Jan 03
2
[LLVMdev] How to update LiveInterval information of newly inserted machine basic block
At 2014-01-01 04:36:21,"Andrew Trick" <atrick at apple.com> wrote:
On Dec 31, 2013, at 3:52 AM, Haishan <hndxvon at 163.com> wrote:
Hi,
I insert a new machine basic block(MBB) before Greedy Register Allocation, after Simple Register Coalescing. But I encounter a fatal
error "regalloc = ... not currently supported with -O0". I use command line with opt level
2008 Sep 04
2
printing name of object inside lapply
Dear list members,
I am trying, within a lapply command, to print the name of the objects
in list or data frame. This is so that I can use odfWeave to print out a
report with a section for each object, including the object names.
I tried e.g.
a=b=c=1:5
lis=data.frame(a,b,c)
lapply(
lis, function (z) {
obj.nam <- deparse(substitute(z))
cat("some other text",obj.nam,"and so
2014 Jan 03
2
[LLVMdev] How to update LiveInterval information of newly inserted machine basic block
On Jan 3, 2014, at 1:06 PM, Andrew Trick <atrick at apple.com> wrote:
>
> On Jan 3, 2014, at 12:10 PM, Jakob Stoklund Olesen <stoklund at 2pi.dk> wrote:
>
>>
>> On Jan 3, 2014, at 11:01 AM, Andrew Trick <atrick at apple.com> wrote:
>>
>>>
>>> On Jan 3, 2014, at 4:58 AM, Haishan <hndxvon at 163.com> wrote:
>>>
2008 Oct 08
1
Observed responses in 'augPred' data frame - Wrong order ?
Dea-R community.
I'd like to draw your attention to an issue I have recently
encountered while doing my current data analysis.
I've got an unexpected (to me) result from the command:
> augPred(lmList(my.object)),
'my.object' being a grouped data frame of class:
> class(my.object)
[1] "nfnGroupedData" "nfGroupedData" "groupedData"