[R] Restructuring Star Wars data from rwars package

2017-08-03 Thread Matt Van Scoyoc
I'm having trouble restructuring data from the rwars package into a dataframe. Can someone help me? Here's what I have... library("rwars") library("tidyverse") # These data are json, so they load into R as a list people <- get_all_people(parse_result = T) people <- get_all_people(getElement(peop

Re: [R] find similar words in text

2017-08-03 Thread Patrick Casimir
Use tm package and create a corpus to capture terms from the TDM within the corpus. Then you can apply as.matrix() to display terms' occurences. Go to CRAN and read about tm package. From: R-help on behalf of Boris Steipe Sent: Thursday, August 3, 2017 6:40:09

Re: [R] find similar words in text

2017-08-03 Thread Boris Steipe
Please keep messages on the list so others can pitch in. _Which_ words do you want to consider identical for the purpose of frequency count? _What_ do you want to plot? B. > On Aug 3, 2017, at 4:36 PM, Riaan Van Der Walt > wrote: > > Hallo Boris, > I've loaded the Rstem, Snowball. > But

Re: [R] Strange behaviour to download zip file using R

2017-08-03 Thread David Winsemius
> On Aug 3, 2017, at 11:38 AM, Christofer Bogaso > wrote: > > Hi again, > > I was trying to download stock market data from below link : > > https://www.nseindia.com/products/content/equities/equities/archieve_eq.htm > > Input choice : > > Select Report: Bhavcopy > Date(DD-MM-): 03-03-2

[R] Strange behaviour to download zip file using R

2017-08-03 Thread Christofer Bogaso
Hi again, I was trying to download stock market data from below link : https://www.nseindia.com/products/content/equities/equities/archieve_eq.htm Input choice : Select Report: Bhavcopy Date(DD-MM-): 03-03-2010 If you put manual input as above, then we will get option for manual download o

Re: [R] find similar words in text

2017-08-03 Thread Bert Gunter
You really need to spend some time learning R if you wish to use R. See ?grep and note the "value" argument. So you want: whales.v <- grep(*^whal.*", moby.word.v,value = TRUE) -- Bert On Thu, Aug 3, 2017 at 5:14 AM, Riaan Van Der Walt wrote: > I received this from Matt Jockers and it worked

Re: [R] test for proportion or concordance

2017-08-03 Thread Bert Gunter
This list is about R programming, not statistics, although admittedly there is a nonempty intersection. However, I think you would do better posting this on a statistics list like stats.stackexchange.com. -- Bert Bert Gunter "The trouble with having an open mind is that people keep coming along

[R] find similar words in text

2017-08-03 Thread Riaan Van Der Walt
I received this from Matt Jockers and it worked! I missed something. How can I now see(display) this list? Hi Riann, There are a couple of ways that you could do this. . . the best approach would probably be to use *grep* instead of *which*, but let me show you both ways. On page 30, replace wha

[R] test for proportion or concordance

2017-08-03 Thread Adrian Johnson
Hello group, my question is deciding what test would be appropriate for following question. An experiment 'A' yielded 3200 observations of which 431 are significant. Similarly, using same method, another experiment 'B' on a different population yielded 2541 observations of which 260 are significa

Re: [R] climate data-set; aggregate date (day)

2017-08-03 Thread Thierry Onkelinx
library(dplyr) library(lubridate) data %>% group_by(floor_date(Timestamp, unit = "day")) %>% summarise(rain = sum(Rain_mm_tot)) ir. Thierry Onkelinx Instituut voor natuur- en bosonderzoek / Research Institute for Nature and Forest team Biometrie & Kwaliteitszorg / team Biometrics & Quality Assuran

[R] climate data-set; aggregate date (day)

2017-08-03 Thread T Wan
Hi there, I am trying to get the sum of rain per day. That is what the data-set looks like: TimestampRain_mm_Tot 2017-05-29 23:40:00 4.780 2017-05-29 23:50:00 1.200 2017-05-30 00:10:00 2.580 2017-05-30 00:20:00 1.2009600 2017-0

[R] Results of vcovCL (sandwich) and of cluster() in Stata

2017-08-03 Thread Igor Sosa Mayor
Hi, I'm trying to reproduce with R the results of this study: https://learn.gold.ac.uk/mod/resource/view.php?id=262406 More precisely I want to reproduce the results of the table 6 (pag.280), which can also be seen here: http://picpaste.de/pics/table-robin-llKCOeWV.1501745645.png Let's take the

Re: [R] switch of cex adjustment with mfrow?

2017-08-03 Thread S Ellison
> use > > par(mfrow=c(2,2), cex = 1) This does work as written. But when I first checked single-call setting, an mfrow change to cex in the same call superseded cex=1; hence my suggestion to use separate calls to par(). Further checking confirms that the result of a call to par is dependent on

Re: [R] Use case for HDF5 dataspace interface

2017-08-03 Thread Koustav Pal
1. This relates to the package *rhdf5* and its implementation of the HDF5 dataspace interface. I am asking for an example of how other people who use this package make use of the HDF5 data space interface exposed by the library. Longer answer: As per my understanding, the dataspace interface expo