Re: [R] row.names(), rownames(), colnames(), names() ...?

2016-04-02 Thread Boris Steipe
Ah, that makes immediate sense. On Apr 2, 2016, at 9:11 PM, Jeff Newmiller wrote: > Data frames are lists of columns. The names() function is appropriate for > lists. > > It doesn't pay to fall into the trap of thinking that data frames are truly > symmetric

Re: [R] row.names(), rownames(), colnames(), names() ...?

2016-04-02 Thread Jeff Newmiller
Data frames are lists of columns. The names() function is appropriate for lists. It doesn't pay to fall into the trap of thinking that data frames are truly symmetric between columns and rows, because there is a performance penalty for accessing rows that is greater than the cost of accessing

[R] row.names(), rownames(), colnames(), names() ...?

2016-04-02 Thread Boris Steipe
The help text for row+colnames {base} states: "For a data frame, rownames and colnames eventually call row.names and names respectively, but the latter are preferred." Why are they "preferred"? Why is it names(), not col.names()? I have only ever used names() for vectors - I'm surprised it

Re: [R] apply mean function to a subset of data

2016-04-02 Thread Jim Lemon
Hi Pedro, This may not be much of an improvement, but it was a challenge. selvec<-as.vector(matrix(c(nsel,unlist(by(toy$diam,toy$group,length))-nsel), ncol=2,byrow=TRUE)) TFvec<-rep(c(TRUE,FALSE),length.out=length(selvec)) toynsel<-rep(TFvec,selvec)

Re: [R] p values from GLM

2016-04-02 Thread Heinz Tuechler
Bert Gunter wrote on 01.04.2016 23:46: ... of course, whether one **should** get them is questionable... http://www.nature.com/news/statisticians-issue-warning-over-misuse-of-p-values-1.19503#/ref-link-1 This paper repeats the common place statement that a small p-value does not necessarily

Re: [R] apply mean function to a subset of data

2016-04-02 Thread Boris Steipe
Your toy code does not reproduce what you describe: mean(toy$diam[1:nsel[i]]) both times selects from elements of group 1. YOu probably want to subset like toy$diam[toy$group == i]. Also, if there is any real inefficiency here, it is _not_ because you are executing a for-loop for two

[R] BCa Bootstrap confidence intervals

2016-04-02 Thread varin sacha via R-help
Dear R-Experts, Thanks to Prof. Bonnett, I have got an R script working to calculate confidence intervals around the semipartial correlation coefficients. Now, I would like to calculate BCa bootstrap CIs using the boot library and the boot.ci(results, type="all") function. How could I modify my

[R] apply mean function to a subset of data

2016-04-02 Thread Pedro Mardones
Dear all; This must have a rather simple answer but haven't been able to figure it out: I have a data frame with say 2 groups (group 1 & 2). I want to select from group 1 say "n" rows and calculate the mean; then select "m" rows from group 2 and calculate the mean as well. So far I've been using

Re: [R] p values from GLM

2016-04-02 Thread Michael Artz
Maybe it's not the article itself for sale. Sometimes a company will charge a fee to have access to its knowledge base. Not because it owns all of the content, but because the articles, publications, etc have been tracked down and centralized. This is also the whole idea behind paying a company

Re: [R] p values from GLM

2016-04-02 Thread Spencer Graves
On 4/2/2016 11:07 AM, David Winsemius wrote: On Apr 1, 2016, at 5:01 PM, Duncan Murdoch wrote: On 01/04/2016 6:46 PM, Bert Gunter wrote: ... of course, whether one **should** get them is questionable... They're just statistics. How could it hurt to look at them?

[R] Extending the beta period for R 3.3.0 till April 25, Final release on May 3

2016-04-02 Thread Peter Dalgaard
Due to delays in implementing an updated Windows toolchain for CRAN, R Core has found it unsafe to go with our usual 1-week beta testing period. Combined with other scheduling issues, we have decided to postpone the transition to 3.3.0 RC until April 26, with the final release happening on May

Re: [R] p values from GLM

2016-04-02 Thread David Winsemius
> On Apr 1, 2016, at 5:01 PM, Duncan Murdoch wrote: > > On 01/04/2016 6:46 PM, Bert Gunter wrote: >> ... of course, whether one **should** get them is questionable... > > They're just statistics. How could it hurt to look at them? Like Rolf, I thought that this

Re: [R] How to convert XML file to R Data Frame?

2016-04-02 Thread jim holtman
Check out the XML package for complete information, and the xml2 package for extracting data from XML. I don't think you can directly read the XML into a dataframe because of the hierarchical structure of the data. There are functions to read an HTML table into a dataframe. I think you have to

Re: [R] (no subject)

2016-04-02 Thread Sarah Goslee
You don't have enough closing parentheses. Using a text editor written for programmers helps a lot because it will highlight that kind of error. Sarah On Friday, April 1, 2016, MEHER DIVYA BARATAM wrote: > dear sir/madam, > > > while i am trying to

[R] How to convert XML file to R Data Frame?

2016-04-02 Thread Muhammad Bilal
Hi All, I'm new to R and wants to read XML file as R data frame. Is there any package that could be used for this purpose. I will really appreciate your response. Many Thanks and Kind Regards -- Muhammad Bilal Research Assistant and PhD Student, Bristol Enterprise, Research and

[R] (no subject)

2016-04-02 Thread MEHER DIVYA BARATAM
dear sir/madam, while i am trying to convert the data into timeseries using xts command.i am getting this error. please help me to resolve this issue xts(mydata$MCP, as.Date(rdate, format='%d-%m-%Y') + xts(mydata$MCP, as.Date(rdate, format='%d-%m-%Y') Error: unexpected

Re: [R] [Rd] TensorFlow in R

2016-04-02 Thread Bernd Bischl
Hi, from what I know there is a current GSOC 2016 project proposal. (but not accepted yet) https://github.com/rstats-gsoc/gsoc2016/wiki https://github.com/rstats-gsoc/gsoc2016/wiki/DeepLearnR-tensorFlow-Object-system-for-R Is that of interest? Best, Bernd On 01.04.2016 18:32, Axel Urbiz