Displaying 20 results from an estimated 4000 matches similar to: "question involving loops from intro level R programming class"
2007 Oct 10
3
as.dist with diagonal unequal zero
Hello and sorry that I still haven?t found a solution for my problem.
I need to extract the lower and upper triangle from a square matrix
including the diagonal. This diagonal is not zero in that special case.
I tried with as.dist
w<-as.dist(w, diag = TRUE)
> w
1 2 3 4 5
1 0
2 2 0
3 3 8 0
4 4 9 14 0
5 5 10 15 20 0
but found no way to keep the diagonal that is in the
2004 Sep 02
3
Sample Rates
Hi there -
I am currently in the middle of a project where I need to configure an
Icecast Server and I am using Ices as the encoder. I want to configure Ices
to take in a stream with a sample rate of 128 kHz and output it to the
Icecast server. My question is, what are the minimum and maximum sample
rates that Ices will continue to work with?
Thank you,
Heidi Young
Software
2009 Jan 15
14
Using ZFS for replication
Fairly new to ZFS. I am looking to replicate data between two thumper boxes.
Found quite a few articles about using zfs incremental snapshot send/receive. Just a cheeky question to see if anyone has anything working in a live environment and are happy to share the scripts, save me reinventing the wheel. thanks in advance.
--
This message posted from opensolaris.org
2008 Nov 05
2
Simple rep() question duplicating times and dates.
I want to create a data.frame of time and date for a year. I started with the idea of simply producing two vectors (time and date)
The first part ( time) is easy.
rep(1:24, 365)
But how do I get a series of 24 dates for O1 January 2005 and repeat this to 31 December 2005.
It should be easy but I don't see it.
Thanks
2008 Sep 02
2
Google Chrome - any luck, anyone?
This is the sum total of my results so far:
fun at heidi:~/download$ wine ChromeSetup.exe
fixme:ntoskrnl:KeInitializeSpinLock 0x457a04
fun at heidi:~/download$
No window opening or anything. This is on Kubuntu 8.04 with KDE 4.1.
- d.
2006 Dec 08
2
Aggregate?
Hi All,
I think i'm failing to undersatnd how aggregate() is supposed to work.
example:
test1<-sample(c(0,1),100,replace=T)
test2<-sample(letters,100,replace=T)
aggregate(test1,list(test2),sum)
Error in data.frame(w, lapply(y, unlist, use.names = FALSE)) :
arguments imply differing number of rows: 26, 0
I thought this would give me a list containing the number of ones that
2009 Dec 14
6
write.csv and header
Dear list,
I would like to export a matrix to a TXT-File by using write.csv (not
necessarily). Is there a way to add a header (with additional
informations concerning the project) spanning multiple lines to this
file before the actual data are listed up? Should look like this:
date:
filename:
number of permutations:
------------
data (as a matrix)
Any suggestions? Thnx in advance.
2008 Feb 16
4
Weird SEs with effect()
Hi all,
Im a little bit confused concerning the effect() command, effects package.
I have done several glm models with family=quasipoisson:
model <-glm(Y~X+Q+Z,family=quasipoisson)
and then used
results.effects <-effect("X",model,se=TRUE)
to get the "adjusted means". I am aware about the debate concerning
adjusted means, but you guys just have to trust me - it
2008 Jan 09
7
An "R is slow"-article
Hi all,
Reading the wikipedia page on R, I stumbled across the following:
http://fluff.info/blog/arch/00000172.htm
It does seem interesting that the C execution is that much slower from
R than from a native C program. Could any of the more technically
knowledgeable people explain why this is so?
The author also have some thought-provoking opinions on R being
no-good and that you should write
2006 Jun 15
1
more function in R?
I'm an R newbie and I just have a simple question.
I'm using interactive R on a linux box and I'm trying to find out if there's
a more or a less function. The data I want to look at is larger then my
screen size and all I end up seeing is the last fews line of data. Is there
a way that I can paginate through the data and the results of my summary
functions?
thanks,
Heidi
2010 Aug 04
4
KS Test question (2)
Hi R Users,
I have two vectors, x and y, of equal length representing two types of
data from two studies. I would like to test if they are similar enough
to use them interchangeably. No assumptions about distributions can be
made (initial tests clearly show that they are not normal).
Here some result:
Two-sample Kolmogorov-Smirnov test
data: x and y
D = 0.1091, p-value < 2.2e-16
alternative
2006 Apr 02
8
Compatible Asterisk Connectivity Cards : Sangoma
Hello List!
I wanted to share to everyone the following compatible
connectivity products that my company installed in our
Asterisk based soft switch. I already sent these to
the Asterisk.org site many days ago but for some
reason they still have to post it.
1. Sangoma A101 single port E1/T1/PRI Card
2. Sangoma A102 dual port E1/T1/PRI Card
3. Sangoma A104 quad port E1/T1/PRI Card
4. Sangoma
2012 Nov 11
2
Djjlölkjhfyn kb noknkkkkokljjyikkk hyjjjjjkjjjjkjkkpooololåååååååååååååååääääkkuiivjkoööklopipållällnbbbn mml ömmmm
M
P?opklpnlbyj?nvnmm
M. ?plppkbkv??k? knbnnnnnn??????llp?????tx hikkkhgxxx vj jul?l
Sent from my iPhonejukuj?b?mjl jnmnmmm
Sorry for keeping things short
Gustaf Granath (phd)
Plant Ecology
Uppsala University
2010 Jun 22
1
New errors with difftime()-objects in 2.11.1 (was Re: Request: difftime method for cut())
On Thu, Jun 10, 2010 at 3:39 PM, Gustaf Rydevik
<gustaf.rydevik at gmail.com> wrote:
> Hi all,
>
> The recent change in 2.11 that made as.numeric() return false on
> difftime-objects broke some of my code that calculated age classes of
> individuals using cut(). While this was no big thing to fix for me, it
> might be wise
> to provide a cut.difftime method to ?stop
2010 Jun 22
1
New errors with difftime()-objects in 2.11.1 (was Re: Request: difftime method for cut())
On Thu, Jun 10, 2010 at 3:39 PM, Gustaf Rydevik
<gustaf.rydevik at gmail.com> wrote:
> Hi all,
>
> The recent change in 2.11 that made as.numeric() return false on
> difftime-objects broke some of my code that calculated age classes of
> individuals using cut(). While this was no big thing to fix for me, it
> might be wise
> to provide a cut.difftime method to ?stop
2008 May 23
2
Preparing high quality figures with tiff as end result
Hi all,
I'm currently preparing some figures that will be submitted to PloS One.
In their guidelines they state that they will only accept figures in
tiff or eps format, with the warning that eps figures will be
converted to tiff format ( see
http://www.plosone.org/static/figureGuidelines.action ).
Because of this conversion, I figured I'd generate tiff-format figures
from the beginning.
2009 Feb 11
3
Generating Numbers With Certain Distribution in R
Dear all,
Is there a way to generate K numbers of integer (K = 10^6).
The maximum value of the integer is 200,000 and minimum is 1.
And the occurrences of this integer follows
a lognormal distribution.
- Gundala Viswanath
Jakarta - Indonesia
2019 Apr 10
2
API for checking whether the encoder is in DTX (PR #107)
Yes, good point. I added the checking of prev_mode for Silk DTX to avoid
using stale data from the Silk state.
The PR is updated, and I'm attaching an updated patch.
/Gustaf
On Tue, 9 Apr 2019 at 12:42, Mark Harris <mark.hsj at gmail.com> wrote:
> On 2019-04-08 4:55, Gustaf Ullberg wrote:
> > Thank you Mark.
> >
> > I agree and have now updated the pull request
2007 Oct 10
2
download.file not working
Hi all,
I'm trying to download a file from the net, and the download.file
command leaves it corrupted, i.e excel cannot open it. It seems as if
it's going ok, however.
Does anyone have an idea of what's going on?
regards,
Gustaf Rydevik
----
>download.file(url="http://www.who.int/entity/whosis/whostat2006_demographics.xls",destfile="whodem.xls")
trying URL