Displaying 20 results from an estimated 200 matches similar to: "Simulation help"
2005 Jul 22
1
sequence()
Hi
Function sequence() repeatedly concatenates
its output, and this is slow.
It is possible to improve on the performance of sequence by
defining
myseq <- function(x){unlist(sapply(x,function(i){1:i}))}
The following session compares the performance of
myseq(), and sequence(), at least on my G5:
> identical(sequence(1:50),myseq(1:50))
[1] TRUE
> system.time(ignore <-
2005 Jul 22
1
sequence()
Hi
Function sequence() repeatedly concatenates
its output, and this is slow.
It is possible to improve on the performance of sequence by
defining
myseq <- function(x){unlist(sapply(x,function(i){1:i}))}
The following session compares the performance of
myseq(), and sequence(), at least on my G5:
> identical(sequence(1:50),myseq(1:50))
[1] TRUE
> system.time(ignore <-
2006 Nov 15
3
how to get empty sequence for certain bounds
Hi,
I have encountered this problem quite a few times and thought I would
ask.
Let's say that I have two endpoints, a and b, which are integers. If
a <= b, I would like to get a:b, but if a > b, then numeric(0), for
example:
myseq(3,5) => 3:5
myseq(3,3) => 3
myseq(3,2) => numeric(0)
The operator : just gives decreasing sequences in the latter case, and
I could not coax seq
2004 Feb 24
2
matrix() Help
I have a question related to matrix().
The code below randomly generates 3 Poisson numbers into a 3 by 1 matrix:
> matrix1 <- matrix(rpois(3,lambda=2),nrow=3,ncol=1)
And I use list() to see what they are:
[,1]
[1,] 3
[2,] 1
[3,] 4
, which is what I had intended.
I then I want to randomly generate y Normal numbers into a 3 by 8 matrix. y in this case would be 3, 1, and 4; so
2008 Dec 09
2
motif search
Hi,
I am very new to R and wanted to know if there is a package that, given
very long nucleotide sequences, searches and identifies short (7-10nt)
motifs.. I would like to look for enrichment of certain motifs in
genomic sequences.
I tried using MEME (not an R package, I know), but the online version
only allows sequences up to MAX 60000 nucleotides, and that's too short
for my needs..
2008 Jan 07
3
Seeking a more efficient way to find partition maxima
Hi.
Suppose I have a vector that I partition into disjoint, contiguous subvectors. For example, let v = c(1,4,2,6,7,5), partition it into three subvectors, v1 = v[1:3], v2 = v[4], v3 = v[5:6]. I want to find the maximum element of each subvector. In this example, max(v1) is 4, max(v2) is 6, max(v3) is 7. If I knew that the successive subvector maxima would never decrease, as in the example,
2005 Nov 17
1
Predicting and Plotting "hypothetical" values of factors
Last Friday, I noticed that it is difficult to work with regression
models in which there are factors. It is easier to do the old fashioned
thing of coding up "dummy" variables with 0-1 values. The predict
function's newdata argument is not suited to insertion of hypothetical
values for the factor, whereas it has no trouble with numeric variables.
For example, if one uses a
2007 Nov 26
1
visualizing nucleotide sequence properties
Hi there,
I am looking for R-packages that can help me visualize properties on
nucleotide sequences. I want to display sequences in the 1-100K base range
as lines and plot features above and below those lines.
Any ideas would be welcome.
Thanks,
Bernd
[[alternative HTML version deleted]]
2010 Jun 23
5
Plotrix Trick
Dear All,
I am using the plotrix library to plot some matrices.
I have a problem: some of my data are outliers, hence using a linear
color scale does not work very well (you would see too many cells having
a similar, indistinguishable color). See the code snipped at the end of
the email.
Plotting the logarithm of the data gets the job done, but my problem is
that I would like to write in every
2005 Oct 07
1
Troubleshooting with "gpd" (Fit generalized pareto model)
Up to now, I have recognized problems with "gpd(..)", the function from
the package "evir"
I think that all these functions that estimate the parameters xi, beta for
the GPD
by given threshold mu use the function "optim(..)" ( gpd, fitgpd, ...)
"Error" example:
data1 <- rgpd(1000, xi= -1.5, mu=1000, beta=100)
so the created poinnts take place in about
2005 Dec 10
2
append
Dear R users:
> append(1:5, 0:1, after=2)
[1] 1 2 0 1 3 4 5
If I want to repeat the appended value every 2 like the following:
[1] 1 2 0 1 3 4 0 1 5
How should I modify?
Thank you for any help.
2024 May 23
1
No RID Set found for this server. Can't self-allocate
The Samba ports are not filtered. The firewall is between STG-DC and
SAMBADC (both of them sync correctly). The sync problems happen in
VIG-DC3, which is behind the same firewall of STG-DC.
Here's nmap output (SAMBADC is 172.16.50.9):
root at vig-dc3:~# nmap -Pn 172.16.50.9
Starting Nmap 7.93 ( https://nmap.org ) at 2024-05-23 08:22 UTC
Nmap scan report for SAMBADC.ugt.ldap (172.16.50.9)
2006 Jan 30
1
fExtreme packages
Hello,
I am a new user of R. I am trying to use the packages fBasics and fExtremes
when i am running the examples I get few error. Could someone tell me what is
happenig? Thank you beforehand.
from Fbasics packages:
xmpfBasics()
Error in file(file, "r") : unable to open connection
In addition: Warning message:
cannot open file '/usr/lib/R/library/fBasics/demoIndex'
2006 Mar 21
7
Nuube Sequence problem
In my database the id for a field is 810. RoR thinks that it is 809.
My log file (below) shows that just before the insert it grabs the next
sequence value. I dont think it should do that. This causes problems
further down the line when trying to access the Person object.
Development Log file :
"SQL (0.016000) select people_seq.nextval id from dual
Person Create (0.015000) INSERT
2009 Oct 31
3
Plots with k-means
Hi,
I'm doing a k-means cluster with 6 clusters and 15 variables. Any
suggestions on how to plot the results?
I've tried the standard xy plot, but couldn't get much of it.
Thansk in advance,
Iuri.
2024 May 21
1
No RID Set found for this server. Can't self-allocate
Hello, everybody.
I have a Samba domain spread over 19 offices, 5 of them have a domain
controller of their own.
Some of these DC work fine now that I have a quite homogeneous set of
samba versions. Most of them are Debian 11 with samba 4.17.
The last two DC added (in different offices) have joined the domain
without problems, but both have the same problem. The can't find a RID set:
2012 Jun 01
1
POT Package
Hi,
I have a problem in fitting GPD distribution.
i generate random numbers from gpd distribution from specific parameters
using pot packege then i used fitgpd function to estimete the parameters.The
estimated parameters are not matched with the given parameters i.e.from
which i generate random numbers.I think estimated parameters should be
matched with the given parameters.Also suggest me
2003 Sep 08
2
Re: clustering polypeptide sequences
Hi Peter,
You didn't give a very specific example, but it seems to me that what
you wish to do is not really complicated. I suppose you have created a
table of sequences vs. say hyprophobicity, charge, etc..., something like...
seq hydroph arom
b0001 0.104762 0.000000
b0002 0.035122 0.065854
b0003 0.024193 0.070968
b0004 -0.096729 0.084112
b0005 -0.973469 0.091837
b0006
2013 Jul 22
4
How to split two levels several times?
Hi,
I have a small problem with the function split() and would appreciate your help.
I have a table called ?XXX? with 2 columns and 49 rows. The 49 rows belong to 8 different levels (electrode1, ...,electrode8). I want to split the table always at the row where ?electrode1? starts again so that I can export 7 individual dataframes (numbered ?dataframe1? to ?dataframe7?) which contain always
2012 Jan 22
5
Augeas lens for zabbix agent config files?
Hi all,
I''m trying to come up with a lens for the zabbix agent config files. I
find the lens language untransparent at best, so I''m struggeling to
figure out what''s up. The debugging possibilities are extremely
limited. Here''s what I have now:
zabbix.aug:
====
(**
An adjusted copy of the postfix_main module
**)
module Zabbix_agent =
autoload xfm