search for: turku

Displaying 20 results from an estimated 44 matches for "turku".

2006 Nov 19
4
The most common row in a matrix?
...trix like this array(1:3,dim=c(4,5)) [,1] [,2] [,3] [,4] [,5] [1,] 1 2 3 1 2 [2,] 2 3 1 2 3 [3,] 3 1 2 3 1 [4,] 1 2 3 1 2 in which rows 1 and 4 are similar, I want to find that vector c (1,2,3,1,2). Atte Tenkanen University of Turku, Finland
2006 Aug 22
4
Successive subsets from a vector?
...4)){ ADDRESSES[i]=paste(VECTOR[i:(i+4)],collapse="") } > ADDRESSES [1] "14265" "42650" "265011" "6501110" "5011104" "0111043" "1110436" "104368" [9] "43686" Atte Tenkanen University of Turku, Finland [[alternative text/enriched version deleted]]
2002 Jan 24
2
Data input performance
...there any room for improvement? Any way to make the data import quicker? Thanks a lot. Best regards, Filip -- ----------------------------------------------------------------- Filip Ginter Ph.D. student Email: ginter at cs.utu.fi Phone: +358-2-2154078 Office: 4122, 4th floor ICQ: 146959496 Turku Centre for Computer Science Lemmink?isenkatu 14A 20520 Turku Finland -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in...
2008 Mar 05
5
nls: different results if applied to normal or linearized data
...et, coefficient b was: (a) 0.912 (b) 0.9794 (c) 0.9794 Coefficient a also varied between option (a) and (b), 107.2 and 94.7, respectively. Is this supposed to happen? Which is the correct coefficient b? Regards, Wolfgang -- Laboratory of Animal Physiology Department of Biology University of Turku FIN-20014 Turku Finland
2006 Oct 06
4
Row comparisons to a new matrix?
...distance as an example, but the comparison function can be any other, euclidean dist etc. A=rbind(c(2,3),c(4,5),c(-1,2),c(5,6)) M=matrix(nrow=length(A[,1]),ncol=length(A[,1])) for(i in 1:length(A[,1])) { for(j in 1:length(A[,1])) { M[i,j]=cosine(A[i,],A[j,]) } } Atte Tenkanen University of Turku, Finland
2006 Aug 16
5
How to remove similar successive objects from a vector?
...4,5,5,3,3,5,1,6,6); NEWVECTOR=VECTOR[1]; for(i in 1:(length(VECTOR)-1)) { if((identical(VECTOR[i], VECTOR[i+1]))==FALSE){ NEWVECTOR=c(NEWVECTOR,VECTOR[i+1])} } > VECTOR [1] 3 2 4 5 5 3 3 5 1 6 6 > NEWVECTOR [1] 3 2 4 5 3 5 1 6 _______________________________ Atte Tenkanen University of Turku, Finland
2006 Jun 19
3
Border line width?
Is there some way to change the line widths of plot borders? I couldn't find any parameters for that purpose. Atte Tenkanen University of Turku, Finland
2007 Jul 12
2
is.null doesn't work
Hi, What's wrong here?: > v=c(`-`,`+`,1,`^`,`^`,NA,NA,"X",9,"X",2) > i2=16 > v[i2] [[1]] NULL > is.null(v[i2]) [1] FALSE Is it a bug or have I misunderstood something? Atte Tenkanen University of Turku, Finland
2006 Sep 08
8
Weighted association map
Could somebody program this kind of plot type to R, if none exists, based on mds or correlation tables or some more suitable method? What do you think about idea? Does it work? None similar or better exists? http://weightedassociationmap.blogspot.com/ Atte Tenkanen University of Turku, Finland
2006 Mar 18
2
How to divide too long labels?
...picture: http://users.utu.fi/attenka/253.jpeg My example script is something like this: text(1,0.7,labels=Chordnames[fnid(pcs%%12)]) # according to Larry Solomon's table http://solomonsmusic.net/pcsets.htm Chordnames is a long vector with long character strings. Atte Tenkanen University of Turku Finland
2007 Jul 15
2
Break during the recursion?
...[1] 8 4 9 2 [1] 8 4 9 2 [1] 8 4 9 2 10 5 [1] 8 4 9 2 10 5 [1] 8 4 9 2 10 5 11 1 [1] 8 4 9 2 10 5 11 1 [1] 8 4 9 2 10 5 11 1 3 Error in if (is.na(v[i]) == FALSE & is.null(unlist(v[i])) == FALSE) { : argument is of length zero Regards, Atte Tenkanen University of Turku, Finland
2010 Apr 16
3
Is it ok to apply the z.test this way?
...5) SelectedVals=c(SelectedVals,i) } ------------------------------------------------------------------------------- I have marked the border values given by this script to the histogram of the original random distribution: http://www.ag.fimug.fi/~Atte/62Hist100410.pdf Atte Tenkanen University of Turku, Finland Department of Musicology +35823335278 http://users.utu.fi/attenka/
2001 Aug 03
0
step factor below minimum
...there a way to get around this or does this mean that my model is not estimable with R? I am running Debian unstable i386 and R 1.3.0. Thanks, Kari ---------------------------------------------- Kari Ruohonen Finnish Game and Fisheries Research Institute Socioeconomic and Aquaculture Research Turku Game and Fisheries Research It?inen Pitk?katu 3, 20520 Turku, Finland tel. +358-20-5751681, +358-40-5238321 (mobile) fax +358-20-5751689 http://www.rktl.fi -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hor...
2006 Jun 15
1
How to change the margin widths in png-plots?
...t;", cex.lab=3, cex.axis=2); mtext("sd of consecutive pc intervals", side=2, line=0, padj=-1.8,at=1.2, cex=3) lines(Compo_SD_succ_int_array_vector,col=1,lty=1,lwd=2); text(2,0.93,labels="*",cex=3) # "an asterisk..." dev.off(); What do I do next? Atte Tenkanen, Turku Finland [[alternative text/enriched version deleted]]
2007 Jul 07
1
from character string to function body?
...-`(`+`(`^`(x,3),`^`(x,2)),1) # Here is the same as a character string. Now I'd like to create a function using this string, something like this, but of course, this doesn't work: S=as.expression(S) F1<-function(x){S} Is there some way to do this? Cheers, Atte Tenkanen University of Turku, Finland
2008 Feb 01
2
Saving a big table or matrix
Dear R-users, How do you save a big table or matrix as an independent object and attach it to your Rdata-project when needed? Atte Tenkanen University of Turku, Finland Department of Musicology +023335278
2010 Jun 11
1
glm-test?
...ribution. They are not normally distributed. How should I proceed? Using somehow glm-models? How? The population and the sample data are here. They can be loaded using the load-command. http://users.utu.fi/attenka/D_Pop http://users.utu.fi/attenka/D_Samp Best regards, Atte Tenkanen University of Turku, Finland Department of Musicology +35823335278 http://users.utu.fi/attenka/
2010 Jun 16
1
prcomp() and the lenght of PC:s
Hi, I would like to know whether there is some deeper rationale behind or is it just an established practice that the lenghts of principal components, giving for example by prcomp-function, are normalised to 1? Best regards, Atte Tenkanen University of Turku, Finland Department of Musicology +35823335278 http://users.utu.fi/attenka/
2008 Feb 29
1
Can't interrupt R-processes in R OSX 2.6.2
Hello, Before I was able to interrupt R-calculations by pushing ESC, but now with R 2.6.2 (OSX Intel) it doesn't work. Is it bug or not? Regards, Atte Tenkanen University of Turku, Finland Department of Musicology +023335278
2006 Aug 19
2
A matrix problem
...EXES=as.integer(names(table(TRANSP_TABLE[,1]))); for(i in INDEXES) { RESULTVECTOR=c(i,sum(MATRIX[,2][MATRIX[,1]==i])) RESULTMATRIX=rbind(RESULTMATRIX,RESULTVECTOR) } row.names(RESULTMATRIX)<-INDEXES; RESULTMATRIX=RESULTMATRIX[,2]; > RESULTMATRIX 1 2 5 8 1 1 Atte Tenkanen University of Turku, Finland