search for: jankev

Displaying 16 results from an estimated 16 matches for "jankev".

Did you mean: janke
2007 Jul 30
3
Bind together two vectors of different length...
...s: A <- c(1:10) B<- seq(1,10,2) Now I want to make a table form vectors A and B as rows, and if a value of A isn't present B, then I want to put a N/A symbol in it: Output should look like this: 1 2 3 4 5 6 7 8 9 10 1 0 3 0 5 0 7 0 9 0 How can I do this in R? Thank you. -- Andris Jankevics Assistant Department of Medicinal Chemistry Latvian Institute of Organic Synthesis Aizkraukles 21, LV-1006, Riga, Latvia
2007 Mar 23
5
Get "home" directory and simple I/O
Is there any generic function that gets the "home" directory? This should return /home/<user> in Linux and x:/Documents and Settings/<user> (or whatever) in Windows XP. Another (unrelated) question: what is the _simplest_ way to read and write R variables to/from files such that they are stored in a human-readable but R-like form? For example, if (say), x is a vector
2006 May 26
1
Indexing vector with repeated values
...3,4] (4,5] 4 4 3 5 But how can I find a break points for vector with random values and random number sequence intervals? Why result for interval (1,2) is 4, if there is only 3 values of "1"? Can I get from vector Z a smal vector Zs 1,2,3,4,5 ? Thanks a lot! Andris Jankevics
2007 Apr 16
1
Greek symbols in xtable rows
...possible to have a greek symbols in xtable cells? How can I get for example a string of : $\Delta$ > "$\Delta$" [1] "$Delta$" And string: > "$\\Delta$" [1] "$\\Delta$" Gives a latex aoutput like: \$$\backslash$Delta\$ Thank You in advance Andris Jankevics
2006 Mar 30
1
Question about for loop?
Hello useRs, I can't figure out how can I store a data frame of values of X and D from this loop: Z <- c(1:10) for (i in 1:(length(Z)-2)) {D <- x[1:(2+i)]; X <- paste("x",sep="",i) print (X) print (D) } Thank You, Andris Jankevics
2009 Sep 03
0
R: "biplot" graphical options?
...is STRICTLY PROHIBITED. If you have received this email in error please notify us by telephone on +31626441205 Dr Marco MANCA ********************************************************************************************************************* ________________________________________ Da: andris.jankevics at gmail.com [andris.jankevics at gmail.com] per conto di Andris Jankevics [andza at osi.lv] Inviato: mercoled? 2 settembre 2009 14.31 A: Manca Marco (PATH) Cc: r-help at r-project.org Oggetto: Re: [R] "biplot" graphical options? Hi, You can make a biplot on Your own, it is not so har...
2007 Jan 31
0
Interactive plots with R
...AS,2,max)),showvalue=TRUE,action=pplotNMR,title="Intesity") rp.doublebutton (panel,YMAX,step=10,action=pplotNMR,title="intensity, step=10",showvalue=TRUE) rp.textentry (panel, sample.text, action=pplotNMRadd, title="Add sample to plot:") Thanks and regards, Andris Jankevics
2007 Aug 31
2
memory.size help
I keep getting the 'memory.size' error message when I run a program I have been writing. It always it cannot allocate a vector of a certain size. I believe the error comes in the code fragement below where I have multiple arrays that could be taking up space. Does anyone know a good way around this? w1 <- outer(xk$xk1, data[,x1], function(y,z) abs(z-y)) w2 <- outer(xk$xk2,
2007 Feb 19
3
Start and Restart R over SSH
Hi, I have some big calculations in R to be done. Since I can use R on a server with ssh, i was wondering if I can reopen a R Shell after exiting ssh. I don't want to use the batch mode and nohup doesn't work. I want to use something like ssh user at server R ---do something in R and start calculation --- close ssh but let R remain on the server, doing the calculation ssh user at
2011 Dec 12
3
For loop indicies
I would like to run a for loop with an index going from 0 to 499 but the following seems to miss out the first value: C <- 499 for (i in 0:C) The alternative is: C <- 500 for (i in 1:C) { #Then every time I use i, I replace it with i-1 } Is this a good way to do it or is tere a better way? Thank you, ThomasThis message and any attachment are intended solely for the addressee and may
2006 Jul 31
4
question about dataframe ("sensory") in PLS package
Dear all, I am trying to my dataframe for the PLS analysis using the PLS package. However I have some trouble generating the correct dataframe. The main problem is how to use one name to represent several columns in the dataframe. The example dataframe in PLS package is called "sensory". I cannot directly read the data file since it's a binary file. If I use
2008 Mar 06
2
Clustering large data matrix
Hello, I have a large data matrix (68x13112), each row corresponding to one observation (patients) and each column corresponding to the variables (points within an NMR spectrum). I would like to carry out some kind of clustering on these data to see how many clusters are there. I have tried the function clara() from the package cluster. If I use the matrix as is, I can perform the clara
2007 Oct 16
1
data structure for plsr
All, I am working with NIR spectral data and it was great to find that the example in ?plsr also used spectral data. Unfortunately, I am having difficulty figuring out how the "yarn" dataset is structured to allow for the plsr model to read: library(pls) data(yard) yarn.oscorespls <- mvr(density ~ NIR, 6, data = yarn, validation = "CV", method = "oscorespls")
2009 Apr 22
2
Exporting objects plotted with plot3d() - rgl package
...h a matrix (David Winsemius) > 37. Re: bug when subtracting decimals? (ivan valencia) > 38. ncdf,RNetCDF (Bala subramanian) > 39. Re: what is R best for? Evidence please. (John C Nash) > 40. Re: Cross-Correlation function (CCF) issues (manta) > 41. Re: ncdf,RNetCDF (Andris Jankevics) > 42. Re: automatic exploration of all possible loglinear models? > (Ben Bolker) > 43. Re: bug when subtracting decimals? (John C Nash) > 44. broken example: lme() + multcomp() Tukey on repeated measures > design (William Simpson) > 45. Re: joined R-today...
2009 Apr 27
3
Formatting numbers
I've been trough the R documentation for about half an hour and it's not clear to me how to do this: I need to format to character a series of integers from 1 to 1000, and I like them to look like "0001" "0002", "0059", "0123" and so on. Padded with zeroes to have four digits. Cheers! Mario. r-help-request at r-project.org wrote: > Send
2010 Oct 31
1
R-help Digest, Vol 92, Issue 31
...) 5. multiple weights in MANOVA (Michael Hopkins) 6. Checking existance of a directory (Ron Michael) 7. true time series lags behind fitted values in arima model (Benedikt Gehr) 8. Re: quiry on paste() function (Jan van der Laan) 9. Re: Checking existance of a directory (Andris Jankevics) 10. Re: Checking existance of a directory (Henrique Dallazuanna) 11. Re: Checking existance of a directory (Rainer M Krug) 12. Re: quiry on paste() function (Gabor Grothendieck) 13. Re: check RAM usage (jim holtman) 14. make many barplot into one plot (Sibylle St?ckli) 15. Re: relsu...