search for: gustaf

Displaying 20 results from an estimated 114 matches for "gustaf".

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
2006 Dec 08
2
Aggregate?
...regate(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 "belong" to each letter. What am I doing wrong? Thanks in advance, Gustaf -- email:gustaf.rydevik at gmail.com tel: +46(0)703051451 address: Kantorsgatan 50:190 75424 Uppsala Sweden
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 > migh...
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 > migh...
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()
...() and gets way to big if I use exp(). To be honest, I get the feeling that Im on the wrong track here. Basically, I want to know how SE is calculated in effect() (all I know is that the reported standard errors are for the fitted values) and if anyone knows what is going on here. Regards, Gustaf Granath
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 with a new commit, > > addressing your comments. > > Please take a l...
2008 Jan 09
7
An "R is slow"-article
...(mainly because R is slow and too good at graphics, encouraging data snooping). See http://fluff.info/blog/arch/00000041.htm While I don't agree (granted, I can't really write C), it was interesting to read something from a very different perspective than I'm used to. Best regards, Gustaf _____ Department of Epidemiology, Swedish Institute for Infectious Disease Control work email: gustaf.rydevik at smi dot ki dot se skype:gustaf_rydevik
2008 May 23
2
Preparing high quality figures with tiff as end result
...to the figure. embedFonts() works for this, but the result is that text becomes low-res bitmaps, and I don't know how to solve this. So basically my question is: How should I go about generating graphics that will look as nice as possible given the above constraints? Many thanks in advance, Gustaf -- Gustaf Rydevik, M.Sci. tel: +46(0)703 051 451 address:Essingetorget 40,112 66 Stockholm, SE skype:gustaf_rydevik
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
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 'http://www.who.int/entity/whosis/whostat2006_demographics.xls' Content type 'application/vnd.ms-excel' length 77824 bytes opened...
2010 Jun 03
2
moving average on irregular time series
...g average on an irregular time series, or use the rollapply function in zoo? I have a set of dates where I want to check if there has been an event 14 days prior to each time point in order to mark these timepoints for removal, and can't figure out a good way to do it. Many thanks in advance! Gustaf Example data: exData<-structure(list(Datebegin = structure(c(14476, 14569, 14576, 14621, 14627, 14632, 14661, 14671, 14705, 14715, 14751, 14756, 14495, 14518, 14523, 14526, 14528, 14529, 14545, 14548), class = "Date"), Event = c(TRUE, FALSE, FALSE, FALSE, FALSE, FALSE, FALSE,...
2019 Apr 08
3
API for checking whether the encoder is in DTX (PR #107)
Thank you Mark. I agree and have now updated the pull request with a new commit, addressing your comments. Please take a look. /Gustaf On Fri, 5 Apr 2019 at 11:41, Mark Harris <mark.hsj at gmail.com> wrote: > On 2019-04-01 3:37, Gustaf Ullberg wrote: > > Hi everyone, > > > > Some time ago, I sent a pull request > > <https://github.com/xiph/opus/pull/107> to the Opus github page. > > J...
2006 Dec 01
3
Vertical line in densityplot?
...ems to use some other coordinate system. What kind of call do I use to make abline use the graph's coordinates? Additionally, it would be nice to have standard xy-axis, and to have the line stop at the x-axis, so if anyone could tell me how to do that, I'd be grateful. Thanks in advance, Gustaf PS: a minor question: Why do I have to call plot.new() for abline to work? -- email:gustaf.rydevik at gmail.com tel: +46(0)703051451 address: Kantorsgatan 50:190 75424 Uppsala Sweden
2007 Oct 29
3
Strange results with anova.glm()
...48.75 7.1221 0.007992 ** ## What is going on here?? I thought the ANOVA table would give me a quite similar result because I only have two levels (of the infl.treat factor) and no interactions in the model. ## I'm afraid I have missed something trivial though so please, be gentle ;) Cheers, Gustaf Granath -- Gustaf Granath (PhD student) Dept of Plant Ecology Evolutionary Biology Centre (EBC) Uppsala University
2007 Jul 13
2
The "$" operator and vectors
..."$" subsetting function. consider: > Test A B 1 1 Q 2 2 R > Test$A [1] 1 2 > vector<-"A" > Test$vector NULL > Test$"A" [1] 1 2 > Test[,vector] [1] 1 2 Is there a reason for the $ operator not evaluating the vector before executing? best, Gustaf -- Gustaf Rydevik, M.Sci. tel: +46(0)703 051 451 /+46(0)8 760 52 93 address: C/O Rydevik, Syrenv. 12, 17851 Eker?, SE skype:gustaf_rydevik
2008 Apr 08
1
Change the position of panel strips in a lattice plot.
...es$depth, number=8, overlap=.1) xyplot(lat ~ long | Depth, data = quakes) ,is there any way to make "Depth" appear below the subgraphs, instead of above? I've been looking through the lattice documentation and the list archive but have not found such a thing. Many thanks in advance, Gustaf -- Gustaf Rydevik, M.Sci. tel: +46(0)703 051 451 address:Essingetorget 40,112 66 Stockholm, SE skype:gustaf_rydevik
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
2009 Jan 20
1
two-sample test of multinomial proportion
...l number of tests. But this seem to skip some information regarding variance of H1/H3 in the two groups, so I don't think it is correct. I've tried using a bootstrap approach on the ratio of the two proportions, but there must be a smarter way. Any help is much appreciated! Best regards, Gustaf Rydevik ####data and bootstrap attempt ### multi.data<-data.frame( group=c("a","b"), H1=c(2,12), H3=c(21,46), tests=c(189,411) ) multi.ind<-data.frame(Type= rep(c("H1","H3","...
2008 Oct 07
1
FW: Reading Data
...t_ret=matrix(0,length(q_sd),1) for(i in 1:length(q_sd)) { for(j in 1:length(q_ins)) { wt_ret[i]=wt_ret[i]+(wt[j]*matrix_ret[j,i]) } } result=cbind(q_ed,wt_ret) Rahul Agarwal Analyst Equities Quantitative Research UBS_ISC, Hyderabad On Net: 19 533 6363 -----Original Message----- From: Gustaf Rydevik [mailto:gustaf.rydevik@gmail.com <mailto:gustaf.rydevik@gmail.com> ] Sent: Tuesday, October 07, 2008 2:19 PM To: Agarwal, Rahul-A Cc: R-SIG-robust@r-project.org; r-help@r-project.org Subject: Re: [R] Reading Data On Tue, Oct 7, 2008 at 10:36 AM, <Rahul-A.Agarwal@ubs.com> wrote...