[R] cforest Single Tree Output for Categorical Variable

2017-01-13 Thread Sparks, John James
Hello R Helpers, I am building a random forest using the cforest method in the party package. I then want to have a look at the characteristics of a few of the trees. I get the output for one of the trees by executing pt <- party:::prettytree(cforest@ensemble[[3]], names(cforest@data@get("input

Re: [R] Match ISO 8601 week-of-year numbers to month-of-year numbers on Windows with German locale

2017-01-13 Thread David Winsemius
> On Jan 13, 2017, at 3:20 AM, Janko Thyson wrote: > > Hi David, > > thanks for replying and sorry about the HTML/non-plain-text email (I > forgot to change that, shouldn't have happened). > > Might just be me, but reading "The documentation for R datetime format > parameters ?strptime says %V

Re: [R] JSON data in data frame

2017-01-13 Thread Archit Soni
Thanks Jeremiah, I'll try this. On Jan 13, 2017 11:23 PM, "jeremiah rounds" wrote: I TAd a course in R computing and the first thing I told students was "inspect. inspect. inspect." d1 <- fromJSON('http://api.openweathermap.org/data/2.5/ group?id=524901,703448,2643743&units=metric&appid= ec0313

Re: [R] JSON data in data frame

2017-01-13 Thread jeremiah rounds
I TAd a course in R computing and the first thing I told students was "inspect. inspect. inspect." d1 <- fromJSON(' http://api.openweathermap.org/data/2.5/group?id=524901,703448,2643743&units=metric&appid=ec0313a918fa729d4372555ada5fb1f8 ') names(d1) str(d1) d1 d1$list your_data = d1$list On Fri,

Re: [R] [FORGED] file.exists() on device files

2017-01-13 Thread Jeff Newmiller
Of course they have separate criteria for determining existence... they do different things, and therefore have different requirements for access permissions. -- Sent from my phone. Please excuse my brevity. On January 13, 2017 3:54:35 AM PST, Benjamin Tyner wrote: >Thank you for the insights,

Re: [R] what is f_eval? It has broken the HH package

2017-01-13 Thread Richard M. Heiberger
That solved it. Thank you. On Fri, Jan 13, 2017 at 6:27 AM, Duncan Murdoch wrote: > On 13/01/2017 12:46 AM, Richard M. Heiberger wrote: >> >> I am preparing for the new semester and have downloaded and installed >> R-3.3.2 for Macintosh and Windows, and then the HH package and its >> dependenci

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

2017-01-13 Thread Bob Rudis
Hey folks, epidata — https://cran.r-project.org/package=epidata — hit CRAN a few days ago. It provides tools to retrieve Economic Policy Institute data library extracts from their "hidden"-but-well-conceived API, returning pristine data frames. EPI provides researchers, medi

Re: [R] [FORGED] file.exists() on device files

2017-01-13 Thread Benjamin Tyner
Thank you for the insights, Rolf and Henrik. To give another example, this time in non-interactive mode, Rscript -e "file.exists(commandArgs(TRUE))" <(echo "Hi") [1] TRUE versus Rscript -e "normalizePath(commandArgs(TRUE))" <(echo "Hi") [1] "/dev/fd/63" Warning message: In n

Re: [R] what is f_eval? It has broken the HH package

2017-01-13 Thread Duncan Murdoch
On 13/01/2017 12:46 AM, Richard M. Heiberger wrote: I am preparing for the new semester and have downloaded and installed R-3.3.2 for Macintosh and Windows, and then the HH package and its dependencies for both. Everything fresh off CRAN. All works correctly on the Macintosh. On the Windows 10 I

Re: [R] Match ISO 8601 week-of-year numbers to month-of-year numbers on Windows with German locale

2017-01-13 Thread Janko Thyson
Hi David, thanks for replying and sorry about the HTML/non-plain-text email (I forgot to change that, shouldn't have happened). Might just be me, but reading "The documentation for R datetime format parameters ?strptime says %V is ignored on input." in the documentation doesn't really tell me all

[R] JSON data in data frame

2017-01-13 Thread Archit Soni
Hi All, Warm greetings, I am stuck at an issue to convert incoming json response to data frame. I am using below code to get the data library(jsonlite) d1 <- fromJSON(' http://api.openweathermap.org/data/2.5/group?id=524901,703448,2643743&units=metric&appid=ec0313a918fa729d4372555ada5fb1f8 ') d