Re: [R] Efficient way to create new column based on comparison with another dataframe

2016-01-30 Thread Gaius Augustus
I'll look into the Intervals idea. The data.table code posted might not work (because I don't believe it would put the rows in the correct order if the chromosomes are interspersed), however, it did make me think about possibly assigning based on values... *SOLUTION* mapfile <- data.frame(Name =

Re: [R] Efficient way to create new column based on comparison with another dataframe

2016-01-30 Thread Gaius Augustus
I'll look into the Intervals idea. The data.table code posted might not work (because I don't believe it would put the rows in the correct order if the chromosomes are interspersed), however, it did make me think about possibly assigning based on values... Something like: mapfile <- data.table(Na

Re: [R] Problem displaying greek symbols

2016-01-30 Thread David Winsemius
> On Jan 30, 2016, at 3:24 PM, Bert Gunter wrote: > > (Ill give it a try, but more expertise than I have may be needed) > > Works fine for me (on OS X). > > Take a look at ?pdf . I believe the font family in use (Helvetica is > the default) needs to have the (Adobe) symbol font as font 5. What

Re: [R] Problem displaying greek symbols

2016-01-30 Thread Bert Gunter
(Ill give it a try, but more expertise than I have may be needed) Works fine for me (on OS X). Take a look at ?pdf . I believe the font family in use (Helvetica is the default) needs to have the (Adobe) symbol font as font 5. What family are you using? To see what families are available, use:

Re: [R] about change columns for specific rows

2016-01-30 Thread ruipbarradas
Sorry, there's a mistake, there's a missing comma, it should be df[df$date >= '2012-01-01'& df$date <= '2013-12-31', ]$A Rui Barradas   Citando ruipbarra...@sapo.pt: > Hello, > > Try > > df[df$date >= '2012-01-01'& df$date <= '2013-12-31']$A = etc > > Hope this helps, > > Rui Barradas >   > > C

Re: [R] about change columns for specific rows

2016-01-30 Thread David Winsemius
> On Jan 29, 2016, at 10:30 PM, lily li wrote: > > Hi R users, > > I have a data frame, and I generate a date column like this: > df$date = seq(as.Date('2012-01-01'), as.Date('2014-12-31')) > > df > A B C > 1 2 1 > 2 2 3 > 3 2 4 > > So the data frame has 4 columns now. But when I w

Re: [R] about change columns for specific rows

2016-01-30 Thread ruipbarradas
Hello, Try df[df$date >= '2012-01-01'& df$date <= '2013-12-31']$A = etc Hope this helps, Rui Barradas   Citando lily li : > Hi R users, > > I have a data frame, and I generate a date column like this: > df$date = seq(as.Date('2012-01-01'), as.Date('2014-12-31')) > > df > A  B  C > 1  2   1 >

Re: [R] R help

2016-01-30 Thread Boris Steipe
I think the error message is pretty clear. Your calculations are attempting to allocate more memory than you have available. As to what is causing your code to do this, only someone familiar with your code could possibly tell. B. (Read the posting guide, please - and don't post in HTML :-) On

[R] Use of betatree {betareg} to estimate true positives from multiple tests

2016-01-30 Thread r_1470
 Hi, Doesanyone use the 'betatree' function in the betareg package to do a kind of falsediscovery rate (FDR) test for a set of many p values? I wasthinking to compare the beta parameters of the true distribution of about 1000p values with p values of permuted data, and test whether the two distr

[R] about change columns for specific rows

2016-01-30 Thread lily li
Hi R users, I have a data frame, and I generate a date column like this: df$date = seq(as.Date('2012-01-01'), as.Date('2014-12-31')) df A B C 1 2 1 2 2 3 3 2 4 So the data frame has 4 columns now. But when I want to change the values of column A for specific dates, such as 2012-01-01

[R] R help

2016-01-30 Thread Anukriti Gupta
Hi I am running a ordinal logistic regression, however its giving me an error like Error: cannot allocate vector of size 58.8 GbIn addition: Warning messages:1: In rep.int(c(1, numeric(n)), n - 1L) : Reached total allocation of 8057Mb: see help(memory.size)2: In rep.int(c(1, numeric(n)), n - 1L