search for: janni

Displaying 20 results from an estimated 122 matches for "janni".

Did you mean: jani
2010 Dec 16
5
test whether all elements of a vector are identical
Dear list, this might be an easy one, but I could figure out a solution (or how to google the right term). Is there any way to test whether all elements of a vector are identical? For numeric vectors I would use sum(diff(vector)==0)==0 but I have character vectors. Any Ideas? Cheers Jannis
2011 Apr 27
3
setting options only inside functions
...hing like: dummy=function() { old.options=options(error=dummy1()) .... options(old.options) } This works for most cases but when the function terminates because of an error and its last command is not run, error=dummy1() still remains as an option. Is there any way around this? Cheers Jannis
2013 Apr 08
4
checkUsage from codetools shows errors when function uses functions from loaded packages
...get this error: no visible global function definition for ?xxxxxxx? For example: test = function() { require(plotrix) color.legend() } library(codetools) checkUsage(test) Can I tell codetools somehow where to look for these functions without building a full blown package? Cheers Jannis
2011 Jan 12
2
RNetCDF: retrieving variable names and units
Dear List, does anybody has experience with the RNetCDF package? I manage to open a connection and copy data from a ncdf file but would need a way to automatically retrieve variable names (ideally all of them from one file) and units from the file. Any ideas? Jannis
2010 May 18
4
scaling with relative units in plots or retrieving axes limits in plots
...e number to the axes values in the actual plot, so that text(my.function(0.5,0.5),'middle') would do what I want. For this I would need to be able to somehow retrieve the axis limits for x and y axes. Is there any way I could do this after having called plot()? Thanks for your help! Jannis
2011 Oct 05
3
help with regexp
...here. Until now I always used nested sub expressions like: testresults <- sub('.pdf$', '', sub('^filename_[[:digit:]]_', '' , test)) but this tends to become cumbersome and I was wondering whether there is a more elegant way to do this? Thanks for any help Jannis
2011 Jan 20
2
Procuct of a sequence or vector
Dear list, is there a function in R that returns the product of a vector? E.g. if the vector is c(1,2,3,4) it should return 1*2*3*4=24 Cheers Jannis
2012 Nov 18
2
list.files, recursively
...ctor if you use list.files recursively. In non recursive mode, there seems to be no way of excluding directories (the include dirs argument does not seem to have any effect). Would it not be more intuitive and practical to allow the switching off of directory names in both cases? Thanks a lot Jannis
2011 Aug 01
3
General indexing in multidimensional arrays
...e would be to: result <- data[rep(as.vector(indices),times=4)] but this seems rather complicated and also depends on the order of the dimensions I want to extract. I do not want R to copy Matlabs behaviour, I am just wondering whether I missed one concept of indexing in R? Thanks a lot Jannis
2017 Sep 09
2
Register Allocators Documentation
Hi all, I am interested in the spill code which is produced by the register allocators. Therefore I wanted to ask if there  is some Documentation in which these allocators are described, or  that explains  how the register spilling works in detail. Regards Jannis
2011 Aug 03
2
syntax with do.call and `[`
...st: test = matrix[1:4,2] result = test[2,] My try, however, did not work: result = do.call(`[`,list(test,2,NULL)) result = do.call(`[`,list(test,2,)) result = do.call(`[`,list(test,2,'')) How can I use the do.call in that way with leaving the second indexing vector blanc? Cheers Jannis
2010 Jun 23
2
possibility to determine whether a script is "sourced"?
...#39;) Now there is a lot of code in those scripts that I only want to run when I run them manually, so I wonder whether there is any way to automatically find out whether the script is run manually stepwise or whether it is run via source. Is there such a possibility? Thanks a lot for your help! Jannis
2009 Dec 01
4
median for time data
Hi everybody How do I do to calculate the median and average of a colum of time data like this: "8:50:10". I also need to plot the time difference between two colums Thanks a lot -- View this message in context: http://n4.nabble.com/median-for-time-data-tp932287p932287.html Sent from the R help mailing list archive at Nabble.com.
2010 Dec 17
2
installing package from source with Linux
...C [11] LC_MEASUREMENT=de_DE.UTF-8 LC_IDENTIFICATION=C attached base packages: [1] stats graphics grDevices utils datasets methods base loaded via a namespace (and not attached): [1] tools_2.12.0 Thanks for any hints! Trying the same with another package downloaded from Cran worked. Jannis
2011 Dec 09
2
unexpected behaviour of sub() / usage of regexp
...;, '9ewww') ... should yield: 'ewww' It returns, however: 'www' Why is this the case? My code should just substitute 1 (minimum) or up to 2 (maximum) digits, i.e. numbers and not the 'e' in the string. Do I misinterpret something here? Thanks for any ideas Jannis > sessionInfo() R version 2.14.0 (2011-10-31) Platform: i686-pc-linux-gnu (32-bit) locale: ?[1] LC_CTYPE=en_US.UTF-8?????? LC_NUMERIC=C???????????? ? ?[3] LC_TIME=en_US.UTF-8??????? LC_COLLATE=en_US.UTF-8?? ? ?[5] LC_MONETARY=en_US.UTF-8??? LC_MESSAGES=en_US.UTF-8? ? ?[7] LC_PAPER=C?????????...
2011 May 04
1
Problems saving ff objects
...uot;) ffsave.image("d:/tmp/x") I get: Error in ffsave(list = ls(envir = .GlobalEnv, all.names = TRUE), file = outfile, : the previous files do not match the rootpath (case sensitive) Whats wrong here? Should this not be working as I did not change anything in the code? Cheers Jannis > sessionInfo() R version 2.12.0 (2010-10-15) Platform: i386-pc-mingw32/i386 (32-bit) locale: [1] LC_COLLATE=English_United States.1252 [2] LC_CTYPE=English_United States.1252 [3] LC_MONETARY=English_United States.1252 [4] LC_NUMERIC=C [5] LC_TIME=English_United...
2011 Sep 28
3
dump.frames, debugger and the "..." argument
...to this functions' environment I get the following error message: Error in get(.obj, envir = dump[[.selection]]) : argument "..." is missing, with no default Some googleing showed that this seems to be a more common problem but I was not able to find any solution. Any ideas? Jannis
2010 Jul 20
2
square brackets in expression in plots
...-1]" I know how to combine an expression with text via paste, but as I run soimething like: a='m*s^{-1}' plot(1:10,main=parse(text=a)) I found now way of doing this. I use the parse thing as I have all these units stored as strings that represent expressions. Cheers for any help! Jannis
2013 Jun 20
2
showing error line
...= TRUE, show.error.locations = TRUE, keep.source.pkgs = TRUE) I have managed to get the error locations to show up when i source the respective files. They do not, however, show up for the same errors when I use installed packages. Do I have to build these packages in a specific way? Cheers Jannis
2005 May 16
1
TEXTFIELD_ENTER_ONLY doesn''t work
...ew(self, 50, self, ID_INPUT, TEXTFIELD_ENTER_ONLY) textfield.setText(aStr) textfield.setFocus textfield.move(x, y, w, h) textfield.show This way only the enter key should send the message SEL_KEYPRESSED/SEL_KEYRELEASED with ID_INPUT to the target. But that somehow doesn''t work. Regards, Jannis