Re: [R] R_LIBS_SITE in Renviron ignored (?)

2016-09-29 Thread Sebastian Schubert
Hi all, On 23.09.2016 11:25, Sebastian Schubert wrote: ... > Maybe I get the documentation wrong but it seems, the variable > R_LIBS_SITE in Renviron is ignored while, for example, R_LIBS_USER is > not. ... For reference, I got a hint here: http://stackoverflow.com/a/39766163/1463740

[R] R_LIBS_SITE in Renviron ignored (?)

2016-09-23 Thread Sebastian Schubert
Hi all, I am on CentOS 7.2 (Linux x86_64) with R from EPEL. Maybe I get the documentation wrong but it seems, the variable R_LIBS_SITE in Renviron is ignored while, for example, R_LIBS_USER is not. What R tells me: R version 3.3.1 (2016-06-21) -- "Bug in Your Hair" ... Platform: x86_64-redhat-l

Re: [R] Best practice: to factor or not to factor for float variables

2014-07-04 Thread Sebastian Schubert
dvice here... Sebastian Am 04.07.2014 17:33, schrieb Hadley Wickham: > Why not just round the floating point numbers to ensure they're equal > with zapsmall, round or signif? > > Hadley > > On Fri, Jul 4, 2014 at 4:04 AM, Sebastian Schubert > wrote: >> Hi, >>

[R] Best practice: to factor or not to factor for float variables

2014-07-04 Thread Sebastian Schubert
Hi, I would like to ask for best practice advice on the design of data structure and the connected analysis techniques. In my particular case, I have measurements of several variables at several, sometimes equal, heights. Following the tidy data approach of Hadley Wickham, I want to put all data

Re: [R] Legend: Custom distance between lines and text

2012-06-09 Thread Sebastian Schubert
On 09/06/12 13:20, peter dalgaard wrote: >> I guess I overlook the corresponding part in the manual but how can I >> modify the distance between the text and the line in a legend? >> >> Thank you for any hints! > > You mean like this? > > plot(0) > legend(1, .5, legend=c("foo","bar"), lty=1:2, pc

[R] Legend: Custom distance between lines and text

2012-06-09 Thread Sebastian Schubert
Hi, I guess I overlook the corresponding part in the manual but how can I modify the distance between the text and the line in a legend? Thank you for any hints! Sebastian signature.asc Description: OpenPGP digital signature __ R-help@r-project.org

Re: [R] Don't collapse degenerate array indices

2012-04-19 Thread Sebastian Schubert
On 19/04/12 15:25, Duncan Murdoch wrote: > On 19/04/2012 9:14 AM, Sebastian Schubert wrote: >> Hi, >> >> I want to prohibit the automatic collapsing of degenerate array indices: >> >> > str( array(1,dim=c(3,4,5,1,1)) ) >> num [1:3, 1:4, 1:5, 1, 1] 1 1

[R] Don't collapse degenerate array indices

2012-04-19 Thread Sebastian Schubert
Hi, I want to prohibit the automatic collapsing of degenerate array indices: > str( array(1,dim=c(3,4,5,1,1)) ) num [1:3, 1:4, 1:5, 1, 1] 1 1 1 1 1 1 1 1 1 1 ... > str( array(1,dim=c(3,4,5,1,1))[2:3,1:3,4:5,,] ) num [1:2, 1:3, 1:2] 1 1 1 1 1 1 1 1 1 1 ... The last command removed the degenerat

[R] Multidimensional Array: local averaging without knowing number of dimensions

2012-04-18 Thread Sebastian Schubert
Hi, I want to access and modify a multi dimensional array but without knowing the exact number of dimensions. Basically. I want something like that for every i (except boundaries of course): field[i, ...] <- (field[i, ...] + field[i+1, ...] + field[i-1, ...])/3 In principle, ... should just rep

Re: [R] time between two dates

2012-03-09 Thread Sebastian Schubert
On 09/03/12 10:04, carol white wrote: > Dear All, > It may be a trivial question but how to determine the number of days between > two dates? What I want to do is to subtract two dates by a function which > returns the number of days between these two dates. > > 11.11.2008-11.11.2006 ~= 730 day

Re: [R] Two surfaces in one plot with visibility

2012-02-13 Thread Sebastian Schubert
Hi! On 13/02/12 17:15, Duncan Murdoch wrote: >> I would like plot two surfaces which are each given by vectors x and y, >> and a matrix m(x,y) representing the z coordinate. [..] >> I >> would like to have the visibility of the surfaces taken into account as >> if they are solid thin surfaces, so

[R] Two surfaces in one plot with visibility

2012-02-13 Thread Sebastian Schubert
Hi, I would like plot two surfaces which are each given by vectors x and y, and a matrix m(x,y) representing the z coordinate. With persp() I can plot both, using par(new=TRUE) I can put it in one plot. However, I would like to have the visibility of the surfaces taken into account as if they are

[R] image.plot for non-regular grid: round pixel

2011-09-22 Thread Sebastian Schubert
Hi, I am very new to R so I hope this is not stupid. Here a small example: (I use R version 2.13.1) library("fields") ## round pixel x=matrix(1:100,ncol=10) y=matrix(1:100,ncol=10) for(i in 1:10){ x[i,] <- 1:10 + i y[i,] <- 1:10 + i/20 } #x=1:10 #y=1:10 z=matrix(1: