search for: zroutik

Displaying 14 results from an estimated 14 matches for "zroutik".

2008 Jul 10
4
Turn any vector
...r better understanding, this set of commands will do what I need: i <- seq(1:10) i_turned <- i for (j in 1:length(i)) i_turned[j] <- i[length(i)-j+1] now, i_turned is what I call turned. Is there a function which would make a script lighter? Thank you upfront for any hint. Best regards, Zroutik [[alternative HTML version deleted]]
2008 Aug 11
4
A comprehensive manual on "How to plot" (a lot of graphical examples welcome)
...not contain anything about placing a plot on a page, placing more plots next to each other on a page, or spacing around the plot, and so on -- mainly things related with the final plot one gets and would use as copy-paste product without further changes (cropping, resizing). Any hint appreciated. Zroutik [[alternative HTML version deleted]]
2008 Aug 11
1
line with of the symbols in the legend -- changable?
...nce between the symbols is the line width. At points(I can define the with of the line the points are drawn), but at the legend there is no such a function. Using lwd widens, but produces additional line thought the point. Any suggestion how to widen the line at the legend symbols? Thanks for any. Zroutik [[alternative HTML version deleted]]
2008 Jul 15
0
creating axis of the plot before data are plotted -- solved
...[length(XTimeRange)]),.... > points(data_svd$u[, x]~XTimeRange,... (Right now, I do not think it was so hard to create it, but anybody interested in running the script I can support the script.) Thank you very much for all hints It was a tough night... and in the morning I loved R a bit more. Zroutik On Tue, Jul 15, 2008 at 12:18 AM, stephen sefick <ssefick@gmail.com> wrote: > why don't you give us a snippett of your data and then we may be able to > help (read the posting guide) > > > On Mon, Jul 14, 2008 at 6:04 PM, Zroutik Zroutik <zroutik@gmail.com> > wro...
2008 May 23
2
Fit a sine to data
Dear R-users, I'd like to fit a sine function to my data. The result should have a format (and thus the formula, too) y ~ a + sin(x+b) where y and x are vectors, and a and b are (yet) unknown values. The data sets (vectors x and y) are OK, and I can do a simple lm fitting lm(y~x), or lm(y~I(sin(2*pi*x/360))), succesfully My issue is that I'm not able to do the optional linear shift in
2009 May 19
5
exists function on list objects gives always a FALSE
..., please? > SmoothData <- list(exists=TRUE, span=0.001) > SmoothData $exists [1] TRUE $span [1] 0.001 > exists("SmoothData") TRUE > exists("SmoothData$span") FALSE > exists("SmoothData[[2]]") FALSE Thank you for any opinion regarding this topic. Zroutik [[alternative HTML version deleted]]
2008 Jul 14
1
creating axis of the plot before data are plotted
Dear R-users, I'm tackling with a problem which causing me a head-ache for a long time. I would like to create a nice x-axis to my plots, but I do not know how to implement the method. Imagine a matrix where you have rownames real numbers -- these rownames should be written in the x-axis nicely. I could not find any way how. I'll describe what I'm doing now: I have a matrix where
2008 Aug 14
1
the name of the current running script.r
Dear R users, is there a hack how to get the filename of the current script.r sourced/ran? My issue: I have a couple of scripts which were optimised and are placed in tens of directories. (I have a height.r script in 30 directories, a lines.r script in 25 directories and another flow.r script in 54 directories, growing). The script runs in the directory and does its job: sources data and creates
2010 Nov 02
2
get the scripname within the executed myscript.r
...ame executed somewhere deep in my directory tree and executes the proper script.r in the root. If anybody read till here, please: Is there a more convenient/straightforward way how manage more scripts through a directory tree with datasets and keeping them altogether updated? Thanks for listening, Zroutik [[alternative HTML version deleted]]
2009 Jul 15
1
loading multiple .Rdata and preserving variable names
...but was not succesful in using them at all (location change or separate sandbox). Functions saveCache, loadCache, saveObject, loadObject is not really what I have in mind, too -- saveObject(list=ls(), "NewObjectFile") is not a solution either...) Thanks for any hint in advance. Cheers, Zroutik [[alternative HTML version deleted]]
2009 Feb 12
3
trunc/floor a number -- strange bahaviour
Hi everybody, given a fresh rgui.exe load on winxp OS, I enter (a minimal exaple) n <- 12.357531 Then the following command: n <- (n - floor(n))*10; n gives the following outputs: [1] 3.57531 [1] 5.7531 [1] 7.531 [1] 5.31 [1] 3.1 [1] 1 === still as expected [1] 10 === not expected, count with me: 1 - floor(1) is zero, times 10 gives 0, not 10!!!! [1] 10 === should
2009 Mar 01
2
smoothing a matrix (interpolate in plane)
Hi R-users, I'd like to smooth a matrix to dismiss spikes and to interpolate in plane example of a matrix: Map[1:3,1:3] [,1] [,2] [,3]... [1,] 34.4 34.2 35.1 [2,] 33.4 34.2 35.4 [3,] 34.1 33.2 32.1 .... dim(Map)[1] =/= dim(Map)[2] What functions can I use? Thanks a lot for any response, M [[alternative HTML version deleted]]
2010 Jan 25
1
sequence of equal-length numbers (for filenames)
Dear R-users, I'd like to create filenames in a mask "file000.dat" numbered from 1 to e.g. 123. The last problem I'm dealing with is creating the sequence of numbers with equal length, i.e. 001, 002,.... 023, 024,.... 122, 123. The closest I got is by a repetition: Sequence <- c(1:123) for(i in c(1:length(Sequence))) { print( paste(rep("0",
2009 Aug 12
0
installing mlica, or other ICA package
Dear R-users, was anybody able to install the mlica package succesfully? Or other ICA (Independent Component Analysis) package? But not the e1071. I have found mlica in the archive http://lib.stat.cmu.edu/R/CRAN/src/contrib/Archive/mlica/, repacked it to ZIP, installed and got an "updating HTML package descriptions" message. But library(mlica) gives me "Error in library(mlica) :