[R] difftime result for days not an integer?

2010-02-11 Thread Jonathan
Anybody have an idea why I would get a non-integer value for the number of days here? > difftime('2004-08-05','2001-01-03',units='days') Time difference of 1309.958 days Would you just round off? Best, Jon __ R-help@r-project.org mailing list https:/

Re: [R] logical operations with lists

2010-02-12 Thread Jonathan
This is probably not the best way, but (assuming you had vectors and not lists, since I'm not sure what your list looks like): C <- B[which(B %in% A ==FALSE)] Regards, Jonathan On Fri, Feb 12, 2010 at 5:06 PM, Zoppoli, Gabriele (NIH/NCI) [G] wrote: > Sorry, maybe it's easy but

[R] difftimes; histogram; memory problems

2010-02-15 Thread Jonathan
ctor of size 732.4 Mb Since it seems these matrices are too large, I'm wondering whether there's a better way to call a hist command without actually building the said matrix.. I'd greatly appreciate any ideas! Best, Jonathan __ R-help@r-p

Re: [R] difftimes; histogram; memory problems

2010-02-15 Thread Jonathan
gt; expandedCondition2 <- matrix(rep(Condition2[[1]], nrow(Condition1)), > byrow=FALSE, nrow=nrow(Condition2)) Error: cannot allocate vector of size 732.4 Mb Since it seems these matrices are too large, I'm wondering whether there's a better way to call a hist command without actua

[R] plotting ecdf; R is stalled

2010-03-04 Thread Jonathan
whether this a reasonable experience (and if so, is there a way to get the desired effect, or am I SOL)? I can't find anything in the help archives. OS: Windows 7 64-bit; R version 2.10.1; RAM: 4 gb Thanks, Jonathan __ R-help@r-project.org maili

[R] ks.test; memory problems

2010-03-09 Thread Jonathan
ks.test(rep(1:940,10),rep(1:940,800)) Error: cannot allocate vector of size 358.6 Mb Any ideas? OS: Windows 7 64-bit, R ver. 2.10.1, Memory: 4 gb Best, Jonathan Best, Jonathan __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman

Re: [R] ks.test; memory problems

2010-03-09 Thread Jonathan
t find some cluster with a lot of memory to run this code on (presumably I'd be able to allocate those vectors then)? Jonathan On Tue, Mar 9, 2010 at 4:11 PM, Jonathan wrote: > Hi R-help, >    I am interested in comparing two vectors of data > observations to see if they come from t

[R] reordering of matrix rows to maximize the sum of the diagonal

2010-04-23 Thread Jonathan
pts of my own, but I figured I'd ask if one of you R-ninjas might know of an existing function (or algorithm I could look up and then code) that can do this somewhat efficiently (or even just correctly!). Best, Jonathan __ R-help@r-proje

Re: [R] reordering of matrix rows to maximize the sum of the diagonal

2010-04-23 Thread Jonathan
ood pseudocode: http://www.public.iastate.edu/~ddoty/HungarianAlgorithm.html Actually, it appears the "seriation" package in R could come in handy here.. I'll write back if I find more. Jonathan On Fri, Apr 23, 2010 at 4:20 PM, David Winsemius wrote: > Can you specify how you

Re: [R] reordering of matrix rows to maximize the sum of the diagonal

2010-04-23 Thread Jonathan
er the same. For example, row 1 of the original matrix was 13 9 2, and in the second matrix, it is 13 1 2. I'm looking to conserve the rows, but only reorder them vertically. Thanks, Jonathan On Fri, Apr 23, 2010 at 4:32 PM, Dimitris Rizopoulos wrote: > one way is: > > M <- ma

Re: [R] reordering of matrix rows to maximize the sum of the diagonal

2010-04-26 Thread Jonathan
11 > a[order(rowSums(a)),] [,1] [,2] [,3] [1,]11 20 [2,] 3011 [3,]1 501 In this case, I would like to rearrange the original matrix into: [,1] [,2] [,3] [1,] 3011 [2,]1 501 [3,] 11 20 Best, Jonathan On Sat, Apr 24, 2

[R] integer(0) and NA do not equal FALSE

2009-12-19 Thread Jonathan
Hi, A noobie question: I'm simply trying to run a conditional statement that evaluates if a substring is found within a larger string. I find that if it IS found, my function returns TRUE (great!), but if not, the condition does not evaluate to FALSE. ex): if( grep("hi", "hop", fixed = TRUE)

Re: [R] integer(0) and NA do not equal FALSE

2009-12-19 Thread Jonathan
our substring is not in your string') > [1] "no, your substring is not in your string" > > > > > On Sat, Dec 19, 2009 at 3:47 PM, Jonathan wrote: > >> Hi, >> A noobie question: I'm simply trying to run a conditional statement >> that &g

[R] read.table: mysterious line omissions

2009-12-19 Thread Jonathan
troubleshooting. I generated it with some grep, gawk commands using Cygwin in a Windows environment (though subsequently converted it to Windows format - R loads it exactly the same way, regardless of whether it's in linux or windows format) Regards,

Re: [R] read.table: mysterious line omissions

2009-12-19 Thread Jonathan
Tried deleting several line above and below line 362; did that and changed the extension. Still finds the same number of rows (362). Strange! Jonathan On Sun, Dec 20, 2009 at 12:19 AM, David Winsemius wrote: > > On Dec 20, 2009, at 12:07 AM, David Winsemius wrote: > > >> O

[R] how to count the total number of (INCLUDING overlapping) occurrences of a substring within a string?

2009-12-19 Thread Jonathan
#x27;aa','aaa')[[1]]) [1] 1 returns 1. **What I want to do:** I'm looking for a way to count all occurrences of the substring, including overlapping sets (so 'aa' would be found in 'aaa' two times, because the middle 'a' gets counted twice).

Re: [R] read.table: mysterious line omissions

2009-12-20 Thread Jonathan
Thanks everyone! The problem was definitely with the apostrophe being interpreted as a single quote. Jonathan On Sun, Dec 20, 2009 at 7:49 AM, jim holtman wrote: > Most likely an unbalanced quote. put the following option in the > read.table: > > quote='', comment.char

[R] bio3d package not installing

2010-01-03 Thread Jonathan
Is it just me, or is the bio3d package no longer available? Is there another way to do a reasonable nucleic acid sequence alignment in R? Thanks, Jonathan [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https

[R] unidentifiable problem..

2010-01-26 Thread Jonathan
Hi All, My R installation is acting strangely and I'm hoping somebody might have an idea what's going on: I can't seem to load the "RMySQL" function. It seems to have installed without a problem, but when I enter: library(RMySQL) R tells me: Error in utils::readRegistry("SOFTWARE\\MySQL AB"

Re: [R] unidentifiable problem..

2010-01-26 Thread Jonathan
ed a fresh copy today before emailing the list). I installed MySQL, but I get the same error. My operating system is Windows 7 64-bit. Any ideas? Best, Jonathan On Tue, Jan 26, 2010 at 5:05 PM, Duncan Murdoch wrote: > On 26/01/2010 4:54 PM, Jonathan wrote: > >> Hi All, >>My R i

[R] Fwd: unidentifiable problem..

2010-01-26 Thread Jonathan
ng than I did with the version I installed from the server via install.packages("RMySQL"), so perhaps I'll be alright with the older version. Best, Jonathan -- Forwarded message -- From: Phil Spector Date: Tue, Jan 26, 2010 at 5:07 PM Subject: Re: [R] unidentif

Re: [R] unidentifiable problem..

2010-01-26 Thread Jonathan
) : access to 'http://www.r-project.org <http://www.r-project.org/>'<http://www.r-project.org/%3E'>denied Any other ideas? Jon On Tue, Jan 26, 2010 at 5:39 PM, Duncan Murdoch wrote: > On 26/01/2010 5:32 PM, Jonathan wrote: > >> Hi Duncan, >> I tried: &g

[R] Problem accessing help files

2010-02-03 Thread Jonathan
in shell.exec(url) : access to 'http://www.r-project.org' denied Any thoughts? Thanks! Regards, Jonathan [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do r

Re: [R] Problem accessing help files

2010-02-03 Thread Jonathan
): > setInternet2() [1] FALSE Warning message: In setInternet2() : internet routines were already initialized -- I'm open to further suggestions! Thanks again, Jonathan On Wed, Feb 3, 2010 at 4:34 PM, RICHARD M. HEIBERGER wrote: > In addition to Marc's comments, you might want to use > setI

Re: [R] Problem accessing help files

2010-02-03 Thread Jonathan
and paste the URL into a browser every time I want to read the entry for a particular function.. Happy to hear any other ideas! Best, Jonathan On Wed, Feb 3, 2010 at 5:00 PM, RICHARD M. HEIBERGER wrote: > If you paste > > > http://127.0.0.1:12300/library/base/html/sum.html > > &

Re: [R] Problem accessing help files

2010-02-03 Thread Jonathan
files. Then I rebooted my machine. I'm still getting the same error. Any other ideas? Thanks, Jon On Wed, Feb 3, 2010 at 5:57 PM, Duncan Murdoch wrote: > On 03/02/2010 5:14 PM, Jonathan wrote: > >> Rich: >>Both IE and Firefox are unable to find the link you supplied.

Re: [R] Problem accessing help files

2010-02-04 Thread Jonathan
is pretty good. Thanks so much, Jonathan On Thu, Feb 4, 2010 at 6:29 AM, S Ellison wrote: > Might this be a firewall-like issue and nothing to do with html or R? > > If I understand the 2.10 help system, it operates by starting R as an > http server - effectively a web server,

[R] data frames; matching/merging

2010-02-08 Thread Jonathan
V1 V2 1 a2 2 b9 3 c4 If somebody could (relatively easily) figure out how to get closer to a solution, I'd appreciate hearing how. Also, I'd be interested to hear how you came upon the answer (so I can get bet

[R] Follow-up Question: data frames; matching/merging

2010-02-08 Thread Jonathan
1x 1 1 7008 2 2 6593 3 3 9996 What I'm looking for, of course, is: > aggregate(as.Date(df$V2),df['V1'],min) V1V2 1 1 1996-11-18 2 2 1988-01-20 3 3 1997-05-15 Any idea how to produce the desired output? Thanks, Jonathan On Mon, Feb 8, 2010 at 12:11 PM, Gabor

Re: [R] using "sample()" for a vector of length 1

2010-07-22 Thread Jonathan
t; >> Actual: >>> sample(10,1) >> [1] 2 >>> sample(10,1) >> [1] 9 >>> sample(10,1) >> [1] 4 >> >> >> Desired: >>> sample(10,1) >> [1] 10 >>> sample(10,1) >> [1] 10 >>> sample(10,1) >>

Re: [R] from table to matrix

2010-12-14 Thread jonathan
then do a filled.contour plot on the data. I think this is the same as what Jessica is asking... Regards and many thanks, Jonathan UCL Computer Science -- View this message in context: http://r.789695.n4.nabble.com/from-table-to-matrix-tp3087972p3088096.html Sent from the R help mailing list

Re: [R] from table to matrix

2010-12-14 Thread jonathan
ns, e.g. standard plot() seem to work fine and display in a Quartz window, but when I run this I'm not getting anything =/ Any tips? Jonathan -- View this message in context: http://r.789695.n4.nabble.com/from-table-to-matrix-tp3087972p3088161.html Sent from the R help mailing list archive

Re: [R] from table to matrix

2010-12-14 Thread jonathan
nder other operating systems but that's the basic idea. Jonathan -- View this message in context: http://r.789695.n4.nabble.com/from-table-to-matrix-tp3087972p3088187.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-pr

Re: [R] from table to matrix

2010-12-14 Thread jonathan
there... and I should be good to go! Hope that you got your stuff to work Jessica, and thanks to everyone for your help :-) I'm sure I will be posting here again very soon! Jonathan -- View this message in context: http://r.789695.n4.nabble.com/from-table-to-matrix-tp3087972p3088230.html Sen

[R] levelplot blocks size

2010-12-15 Thread jonathan
he question is: how do I do this? Any help much appreciated! Thanks, Jonathan -- View this message in context: http://r.789695.n4.nabble.com/levelplot-blocks-size-tp3089972p3089972.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-proje

Re: [R] levelplot blocks size

2010-12-19 Thread jonathan
Sorry to bump this up again, but I've been continuing to look for a solution to this including a look into stats.bin but I still can't find any solution to do this within R. Any help would be much appreciated! Thanks, Jonathan -- View this message in context: http://r.789695.n4.

Re: [R] levelplot blocks size

2010-12-19 Thread jonathan
might be able to explain how to go about rounding the values? Thanks, Jonathan -- View this message in context: http://r.789695.n4.nabble.com/levelplot-blocks-size-tp3089972p3094797.html Sent from the R help mailing list archive at Nabble.com. __ R-h

Re: [R] levelplot blocks size

2010-12-26 Thread jonathan
iagram), there are bigger points, so say 0<=x<10, 0<=y<10 is one point in the lower left, rather than having 100 points for each x,y value. The same strategy should then be applied to the whole graph. Any ideas how to achieve this? I'm sure this is quite a common thing to do

Re: [R] levelplot blocks size

2010-12-27 Thread jonathan
tions to solve my problem. Thanks, Jonathan -- View this message in context: http://r.789695.n4.nabble.com/levelplot-blocks-size-tp3089972p3165638.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org mailing list

[R] Quick q. on lists

2010-08-19 Thread Jonathan
Hi All, Anyone know how to quickly query some summary information on the components of a list? For example, I have a list that contains dataframes (originally generated by using split() on one large data frame). I simply want to know the number of rows in the longest dataframe from the list.

Re: [R] factors

2011-05-05 Thread Jonathan
have to use the dyadic(?). But I have a rather complicated conditional, so if my dataframes were huge or I had to do this many, many times, I would think about how to vectorize this, but in my case, just running through in a loop suits my needs. Thanks! Jonathan On Thu, May 5, 2011 at 6:

[R] operations between two aggregated data frames?

2010-05-14 Thread Jonathan
erations for previous values of i, increment i to the next value, and repeat. Ideally, I could accomplish this in some sort of vectorized manner, although the Force is not yet strong with me. Any ideas would be appreciated! Regards, Jonathan [[alternative HTML version deleted]]

Re: [R] operations between two aggregated data frames?

2010-05-15 Thread Jonathan
lying the function (in my case, 'outer') to category 3 vs 4 (and 4 vs 5, etc.), instead of skipping category 3 altogether and moving to 4 vs 4. There's probably a way to mitigate that, but I suppose at this point, I can implement the method using merge(). Regards, Jonathan

[R] max number from a list of numbers

2010-05-20 Thread Jonathan
x27;type' (list) of argument > max(husk[[]]) Error in husk[[]] : invalid subscript type 'symbol' > max(husk[[1:length(husk)]]) Error in husk[[1:length(husk)]] : recursive indexing failed at level 2 > max(husk[1:length(husk)]) Error in max(husk[1:length(husk)]) : inva

[R] intersect() without discarding duplicates?

2010-05-20 Thread Jonathan
or am I going to need to program something from scratch (something like ordering the vectors and then looping through them)? ex: > a <- c(2,4,2,3) > b<-c(6,6,5,2,2,8,4) > intersect(a,b) [1] 2 4 I'd hope the answer to be 2 2 4. Regards, Jonathan [[alterna

Re: [R] intersect() without discarding duplicates?

2010-05-20 Thread Jonathan
ill show only one 2. Consider: > a <- c(2,4,3) > b<-c(6,6,5,2,2,8,4) > b[b %in% a] [1] 2 2 4 > a[a%in%b] [1] 2 4 The second answer is correct, but I can't predict which variable to put in which position in the statement, so I'd need them both to be correct. Best,

Re: [R] intersect() without discarding duplicates?

2010-05-21 Thread Jonathan
Thank you, David and Gabor, for the creative solutions, and for introducing me to pmin() Jonathan On Thu, May 20, 2010 at 9:55 PM, Gabor Grothendieck wrote: > Try this one liner. The first argument of rep is the sorted > intersection and the second argument is the calculated fr

[R] Getting many substrings but only loading the original string one time.

2011-04-11 Thread Jonathan
"ThisI" "lo" Then I'd like to concatenate them (there will be many of them) > result <- paste(longerString,collapse='') > result [1] "ellThisIlo" (perhaps the paste command as I've done it is the best way, but depending on ho

Re: [R] Getting many substrings but only loading the original string one time.

2011-04-11 Thread Jonathan
e, and the large number of substrings to fetch), ie is it much slower than C++, or in the same ballpark? Thanks! Jonathan On Mon, Apr 11, 2011 at 4:14 PM, Duncan Murdoch wrote: > On 11/04/2011 3:48 PM, Jonathan wrote: > >> Hi All, >> I'm looking for a way to get man

[R] problem plotting in a grid

2012-07-29 Thread Jonathan
Hi all, I'm trying to generate a grid of four plots. The first 2 appear just fine, but the final 2 will not appear in the grid, instead overwriting the first two.Any ideas on how to get them all in the same window would be greatly appreciated. Cheers, Jonathan library(fields) par(

[R] Applying 'cbind/rbind' among different list object

2011-02-06 Thread B. Jonathan B. Jonathan
Hi, I am wondering whether we can apply 'cbind/rbind' on many **equivalent** list objects. For example please consider following: > list1 <- list2 <- vector("list", length=2); names(list1) <- names(list2) <- c("a", "b") > list1[[1]] <- matrix(1:25, 5) > list1[[2]] <- matrix(2:26, 5) > list2[[1]] <

[R] Solving a equation

2011-08-14 Thread B. Jonathan B. Jonathan
Hi there, I have following equations to be solved for a and b: a/(a+b) = x1 ab/((a+b)^2 (a+b+1)) = x2 Is there any direct function available to solve them without disentangling them manually? Thanks for your help. __ R-help@r-project.org mailing list h

[R] Changing a matrix based on eigen value

2011-07-20 Thread B. Jonathan B. Jonathan
Dear all, my question is not directly related to R, however I believe that experts here would not mind anything to have a look on my problem. Please consider a symmetric matrix and it's eigen values: > set.seed(1) > mat <- matrix(rnorm(36), 6) > mat <- mat %*% t(mat) # symmetric matrix > mat

Re: [R] Changing a matrix based on eigen value

2011-07-20 Thread B. Jonathan B. Jonathan
It is not any homework problem. I just need some pointer. Given that I think I would be able to carry forward. Thanks, On Thu, Jul 21, 2011 at 4:52 AM, Bert Gunter wrote: > A homework problem? > -- Bert > > On Wed, Jul 20, 2011 at 10:06 AM, B. Jonathan B. Jonathan > wrote: &

Re: [R] Changing a matrix based on eigen value

2011-07-20 Thread B. Jonathan B. Jonathan
formation"). I want to have a control on: How far min eigen value I want from zero. Please let me should I need to give more information. Thanks, On Thu, Jul 21, 2011 at 9:27 AM, David Winsemius wrote: > > On Jul 20, 2011, at 11:17 PM, B. Jonathan B. Jonathan wrote: > > It is

[R] Checking for a proper "stop" statement...

2018-02-21 Thread Jonathan Greenberg
27;m having a hard time figuring out how to do this test. --j -- -- Jonathan A. Greenberg, PhD Randall Endowed Professor and Associate Professor of Remote Sensing Global Environmental Analysis and Remote Sensing (GEARS) Laboratory Natural Resources & Environmental Science University of Nevada, R

[R] Odd results from rpart classification tree

2017-05-14 Thread Marshall, Jonathan
t <- gini(prop.table(table(y))) impurity_L <- gini(prop.table(table(obs_L))) impurity_R <- gini(prop.table(table(obs_R))) impurity <- impurity_root * n - (n_L*impurity_L + n_R*impurity_R) # 2.880952 Thus, an improvement of 2.88 should result in a split. It does not. Why? Jonathan __

Re: [R] Odd results from rpart classification tree

2017-05-15 Thread Marshall, Jonathan
replicate(1000, test_split(0.5))) # 2-12, i.e. splits only sometimes... Adding a constant to y and getting different trees is a bit strange, particularly stochastically. Will see if I can track down a copy of the CART book. Jonathan From: Therneau, Terry

[R] [R-pkgs] New package: rDotNet

2017-09-04 Thread Jonathan Shore
rg/web/packages/rDotNet/index.html <https://cran.r-project.org/web/packages/rDotNet/index.html> The package is stable, as has been in use for some years, but only now packaged up for public use on CRAN. Feel free to contact with questions or suggestions on GitHub or by email. Regards -- Jo

[R] [R-pkgs] New package: ggghost 0.1.0 - Capture the spirit of your ggplot2 calls

2016-08-08 Thread Jonathan Carroll
me any feedback or suggestions you may have. Kind regards, - Jonathan Carroll. [[alternative HTML version deleted]] ___ R-packages mailing list r-packa...@r-project.org https://stat.ethz.ch/mailman/listinfo/r-pa

[R] R command to open a file "browser" on Windows and Mac?

2015-08-03 Thread Jonathan Greenberg
Folks: Is there an easy function to open a finder window (on mac) or windows explorer window (on windows) given an input folder? A lot of times I want to be able to see via a file browser my working directory. Is there a good R hack to do this? --j [[alternative HTML version deleted]]

[R] Correlation question

2015-02-21 Thread Jonathan Thayn
I recently compared two different approaches to calculating the correlation of two variables, and I cannot explain the different results: data(cars) model <- lm(dist~speed,data=cars) coef(model) fitted.right <- model$fitted fitted.wrong <- -17+5*cars$speed When using the OLS fitted values, the

Re: [R] Correlation question

2015-02-21 Thread Jonathan Thayn
a linear function of speed! Hence > cor(cars$dist,fitted.right)^2 and cor(x=cars$dist,y=fitted.wrong)^2 must be > the same. > > HTH > d > > Feladó: R-help [r-help-boun...@r-project.org] ; meghatalmazó: Jonathan > Thayn [jth...@il

[R] Using PCA to filter a series

2014-10-02 Thread Jonathan Thayn
to have created the clean pattern I want, but I would like to project the first component back into the original axes? Is there a simple way to do that? Jonathan B. Thayn [[alternative HTML version deleted]] __ R-help@r-project.org mai

Re: [R] Using PCA to filter a series

2014-10-02 Thread Jonathan Thayn
p. It's been a long time since I've played with PCA. Jonathan Thayn On Oct 2, 2014, at 4:59 PM, David L Carlson wrote: > I think you want to convert your principal component to the same scale as d1, > d2, d3, and d4. But the "original space" is a 4-dimensional space

Re: [R] Using PCA to filter a series

2014-10-04 Thread Jonathan Thayn
This is exactly what I was looking for. Thank you. Jonathan Thayn On Oct 3, 2014, at 10:32 AM, David L Carlson wrote: > You can reconstruct the data from the first component. Here's an example > using singular value decomposition on the original data matrix: > >> d <

[R] kknn::predict and kknn$fitted.values

2015-08-28 Thread Jonathan Henkelman
2 3 5 6 7 1 70 0 0 0 0 0 2 0 76 0 0 0 0 3 0 0 17 0 0 0 5 0 0 0 13 0 0 6 0 0 0 0 9 0 7 0 0 0 0 0 29 Can anyone clarify what fitted.values and predict actually do? I would have expected they would give the same output. Thanks... Jonathan -- View t

Re: [R] kknn::predict and kknn$fitted.values

2015-08-29 Thread Jonathan Henkelman
oses kknn$best.parameters, but want to verify this. Hopefully that clarifies the issue. I post here in case future users have a similar question. Thanks to any who took the time to think about this! Jonathan -- View this message in context: http://r.789695.n4.nabble.com/kknn-predi

[R] Replace NaN with value from the same row

2015-10-18 Thread Jonathan Reardon
eplace any mean row NaN's with the offset value from that very same row? I don't want to use any pasting etc as this needs to be used as part of a function working over a large dataset than the one shown here. Cheers Jonathan

[R] Replace NaN from 1 column with a value from the same row

2015-10-18 Thread Jonathan Reardon
Hi everyone, Ignore my previous post, i realised that the rows and columns i typed into the email were unreadable, sincere apologies for this. A simple question, but i cannot figure this out. I have a data-frame with 4 columns (onset, offset, outcome, mean): df<-data.frame(onset=c(72071,142598,293

Re: [R] Replace NaN with value from the same row

2015-10-18 Thread Jonathan Reardon
- > Sent from my phone. Please excuse my brevity. > > On October 18, 2015 12:24:42 PM PDT, Jonathan Reardon > wrote: > >Hi, Sorry to be a pain. Would you be kind enough to briefly explain > >what the lines

[R] R Licensing Question

2016-01-26 Thread Jonathan Gellar
I could not find an answer elsewhere. Thank you, Jonathan __ Jonathan Gellar Statistician Mathematica Policy Research 1100 First Street NE, 12th Floor Washington, DC 20002 __ R-help@r-project.org mailing list -- To

[R] 2x2x2 rm ANOVA, varying results

2016-05-15 Thread Jonathan Reardon
Hello, I ran a 2x2x2 repeated measures ANOVA which turned out fine: DfSum Sq Mean Sq F value Pr(>F) Attend1 0.5540 0.55402 7.03740.01079 *PercGrp 1

Re: [R] RPro

2008-08-10 Thread Jonathan Baron
27;s extremely clever algorithm. > That said, does anyone have any techniques for Googling for info on some > particular R functionality? I've had some luck with the term "R-help" > or "R-sig" but that leaves out an awful lot of websites. RSiteSearch() is one. T

Re: [R] psychometric functions

2008-08-21 Thread Jonathan Baron
exp(x)/(1+exp(x))} astart <- c(.5,.8,.8,.8,.65,.8,.8,.5,.5,.5,.5, NA,NA,.5,.5,.5,.5,.5,.5,.5,.5,.5, .5,.5,.5,.5,.5,.5,.5,.5,.5,.5,.5) icc <- matrix(NA,nitems,4) # A,B,C,D coefficients # the loop is over the items for (i in 1:ns) { icc.tmp<-nls(score[,

Re: [R] psychometric functions

2008-08-21 Thread Jonathan Baron
many other options. The model I fit made exactly the same assumption you describe, namely, that the upper asymptote was less than 1, because (for example) some of the best students understand the question differently from what the test makers intended. And the lower asymptote depends on what th

Re: [R] How to do a meta-analysis plot

2008-08-26 Thread Jonathan Baron
Another way to do it (based on summary data): http://finzi.psych.upenn.edu/R/Rhelp02a/archive/131342.html -- Jonathan Baron, Professor of Psychology, University of Pennsylvania Home page: http://www.sas.upenn.edu/~baron __ R-help@r-project.org

[R] biOps load problem

2009-08-12 Thread Jonathan Lees
### I am not clear what is missing - the installation did not indicate any problem, or any missing libraries. Thanks for any help on this. -- == Prof. Jonathan M. Lees Department of Geological Sciences 104 South Road, CB #3315, Mitchell Hall University o

Re: [R] lmer with random slopes for 2 or more first-level factors?

2009-08-19 Thread Jonathan Baron
subject effect for the INTERACTION of IV1 and IV2? lmer(DV ~ IV1 + IV2 + (1 + IV1 * IV2 | Subject)) -- Jonathan Baron, Professor of Psychology, University of Pennsylvania Home page: http://www.sas.upenn.edu/~baron __ R-help@r-project.org mailing list http

[R] Best R text editors?

2009-08-27 Thread Jonathan Greenberg
Quick informal poll: what is everyone's favorite text editor for working with R? I'd like to hear from people who are using editors that have some level of direct R interface (e.g. Tinn-R, Komodo+SciViews). Thanks! --j -- Jonathan A. Greenberg, PhD Postdoctoral Scholar Center f

[R] Stochastic (transition) matrices: how to determine distributions and variance?

2009-08-30 Thread Jonathan Greenberg
around these mean values? Since pXY are stochastic probabilities, it seems that the distribution and variance should be calculable. Thanks! --j -- Jonathan A. Greenberg, PhD Postdoctoral Scholar Center for Spatial Technologies and Remote Sensing (CSTARS) University of California, Davis One

Re: [R] eps file with embedded font

2009-09-04 Thread Jonathan Baron
and tell you whether they are embedded. Jon -- Jonathan Baron, Professor of Psychology, University of Pennsylvania Home page: http://www.sas.upenn.edu/~baron __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE

Re: [R] Working with large matrix

2009-09-12 Thread Jonathan Baron
he matrix on the > left hand side. > > __ > R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-

[R] INSTALL html help (and vignettes) only?

2009-09-15 Thread Jonathan Baron
y again. That's the logically best way, but I don't know how to do it so that it works. Jon -- Jonathan Baron, Professor of Psychology, University of Pennsylvania Home page: http://www.sas.upenn.edu/~baron __ R-help@r-project.org mailing list ht

[R] data frames; maybe aggregate?

2010-02-12 Thread Jonathan Reichel
Example: > df <- data.frame('id'=c('a','b','a','c','b','a'),'value'=c(6,4,2,9,1,7)) > df id value 1 a 6 2 b 4 3 a 6 4 c 9 5 b 1 6 a 7 I'd like some kind

Re: [R] axes limits in do3d

2010-02-23 Thread Jonathan Christensen
de4 is not a "standard" r package. That said, the made4 documentation says that do3d uses scatterplot3d. The scatterplot3d package documentation says that "setting enlarged limits may not work as exactly as expected (a known but unfixed bug)." So that may be your problem. Best o

[R] Problem with strptime generating missing values where none appear to exist

2010-02-23 Thread Jonathan Williams
4-05" "1927-04-05" "1927-04-05" "1927-04-05" "1939-04-08" "1939-04-08" "1939-04-08" "1939-04-08" "1938-10-24" "1938-10-24" "1938-10-24" [35] "1938-10-24

[R] subtracting 100 from strptime year vector generates missing values in POSIXct where none appear to exist in strptime year vector

2010-02-23 Thread Jonathan Williams
Thanks Don MacQueen for this reply to my initial query - please SEE MY REPLIES TO THESE IDEAS AND FURTHER INFORMATION BELOW >From: Don MacQueen [m...@llnl.gov] >Sent: 23 February 2010 21:25 >To: Jonathan Williams; r-help@r-project.org > >Subject: Re: [R] Problem with strptime gen

[R] R and screen (UNIX question)

2010-03-03 Thread Jonathan Greenberg
I'm having a mixed experience with using R and UNIX's screen function -- sometimes when I close a connection that used screen, the R process is killed (which, in theory, it shouldn't be -- it should be running in the background). Does anyone have any ideas on how well (or not) R behaves with scree

Re: [R] see the example and help me

2010-03-11 Thread Jonathan Christensen
nt to take into account the fact that it's actually a time series, R has plenty of tools for that too. Jonathan > > Thanks in advance > chinna. > -- > View this message in context: > http://n4.nabble.com/see-the-example-and-help-me-tp1587

Re: [R] Vertical subtraction in dataframes

2010-03-12 Thread Jonathan Christensen
<- a[(a$stain=="none"), "Count"] a$calib <- a$Count - b[a$rep] Note that it only works if the values of rep are integers starting with 1 and increasing sequentially (1, 2, 3, ...) Jonathan > > Thanks in advance. > > Sam > > Note: I've already calculat

Re: [R] R on Linux - a primer

2010-03-14 Thread Jonathan Baron
. I use Fedora on both 64 and 32 bit systems. Jon -- Jonathan Baron, Professor of Psychology, University of Pennsylvania Home page: http://www.sas.upenn.edu/~baron __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLE

Re: [R] Memory issues on a 64-bit debian system (quantreg)

2009-07-01 Thread Jonathan Greenberg
h a large dataset. url:www.econ.uiuc.edu/~rogerRoger Koenker emailrkoen...@uiuc.eduDepartment of Economics vox: 217-333-4558University of Illinois fax: 217-244-6678Urbana, IL 61801 On Jun 24, 2009, at 5:04 PM, Jonathan Gr

Re: [R] "Error: cannot allocate vector of size 332.3 Mb"

2009-07-01 Thread Jonathan Greenberg
_ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Jonathan A. Greenberg, PhD Post

Re: [R] "Error: cannot allocate vector of size 332.3 Mb"

2009-07-01 Thread Jonathan Greenberg
and provide commented, minimal, self-contained, reproducible code. -- Jonathan A. Greenberg, PhD Postdoctoral Scholar Center for Spatial Technologies and Remote Sensing (CSTARS) University of California, Davis One Shields Avenue The Barn, Room 250N Davis, CA 95616 Cell: 415-7

Re: [R] Testing memory limits in R??

2009-07-06 Thread Jonathan Greenberg
anks! -scz __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Jonathan A. Gree

[R] file.copy returning "FALSE"?

2009-07-09 Thread Jonathan Greenberg
I'm running the command: file.copy(fnhdr,outdir,overwrite=TRUE) Which successfully copies the file I want to the directory I want, but each time it prints "FALSE" -- what does this mean, and how do I suppress this output? --j -- Jonathan A. Greenberg, PhD Postdoctoral

[R] strata -- really slow performance

2009-07-11 Thread Jonathan Greenberg
pling algorithm? Any help would be appreciated -- thanks -- I don't see why a stratified sampling would take hours to run -- I am about to recode this as a series of subset statements which I'm sure will take only minutes... --j -- Jonathan A. Greenberg, PhD Postdoctoral Scholar C

Re: [R] Multi-line comments?

2009-07-22 Thread Jonathan Baron
it.el and .emacs files: (global-set-key "\M-r" 'comment-region) So now I do it with "alt-R". That key may have had some other purpose, but not one I ever used. I think the alt key is something else on a Mac. And I have no idea whether this will work on Windows. J

Re: [R] Adding picture to graph?

2009-07-29 Thread Jonathan Baron
_ > R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. -- Jo

  1   2   3   4   5   6   >