[R] reshape() not dropping varaibles

2023-12-10 Thread Bob O'Hara
, idvar = "Subject", timevar = "time", v.names = "conc", sep= "_") names(wide) There are some obvious work-arounds and alternatives, but it would be nice to have this sorted. Can anyone help? Bob Bob -- Bob O'Hara Institutt

Re: [R] Downloading a directory of text files into R

2023-07-25 Thread Bob Green
Rui, Many thanks for your reply and coding, I was not expecting so much work was required. It worked perfectly. The only thing I needed to do, was create a Temp file in the Documents folder. Thanks again, Bob At 03:52 PM 7/26/2023, Rui Barradas wrote: Às 23:06 de 25/07/2023, Bob Green

[R] Downloading a directory of text files into R

2023-07-25 Thread Bob Green
> x = readtext("http://home.brisnet.org.au/~bgreen/Data/Dir/()") Error in download_remote(file, ignore_missing, cache, verbosity) : Remote URL does not end in known extension. Please download the file manually. Any suggestions are appreciated. Bob ___

Re: [R] Package httr::GET() question

2020-02-22 Thread Bob Rudis
d_q=handle_url So {httr} relies on the quintessential standard in URL escaping — which is libcurl's — for all URL machinations. -boB On Wed, Feb 19, 2020 at 10:36 AM Roy Mendelssohn - NOAA Federal via R-help wrote: > > Thanks. Yes. I did that, it also has a verbose mode so that I cou

Re: [R] Loop Repetition

2019-08-06 Thread Bob O'Hara
te and debug the function on its own, and then use replicate() to run the loop (there are also functions like vapply() and apply() if you need to pass different arguments into the function for different iterations). Bob On Tue, 6 Aug 2019 at 11:28, Tolulope Adeagbo wrote: > > Thanks guys

Re: [R] Loop Repetition

2019-08-06 Thread Bob O'Hara
top the repeat (something I never knew existed in R!). Bob On Tue, 6 Aug 2019 at 10:54, Tolulope Adeagbo wrote: > > Hey guys, > > I'm trying to write a loop that will repeat an action for a stipulated > number of times. I have written some code but i think i'm missin

Re: [R] [FORGED] Re: Regarding R licensing usage guidance

2019-07-27 Thread Bob Rudis
irectly to end users then I'd highly suggest seeking legal assistance from a firm that specializes in reviewing licensing situations. They abound these days and it'll ultimately be worth the expense (it shouldn't be too bad). -Bob > On Jul 24, 2019, at 6:07 PM, Andrew Robinso

Re: [R] Blocking and Nesting ANOVA

2019-07-02 Thread Bob O'Hara
ex and Maturity have the same effect in each population. If you think their effects vary between populations, then you would want lm (PAC ~ Season + Population*Sex + Population*Maturity) which is the same as lm (PAC ~ Season + Population*(Sex + Maturity)). Bob On Tue, 2 Jul 2019 at 15:27, Elef

Re: [R] very slow code execution

2019-02-07 Thread Bob O'Hara
,K=K["k"]) fit <- auto.arima(data,, xreg =cbind(z1,z2,z3), seasonal = FALSE) fit$aicc } # smaller MaxOrders used so if you run it like this, it won't take 5 hours MaxOrders <- expand.grid(i = 1:3, j=1=7, k=1:8) AICc <- apply(MaxOrders, FitModel, data=demand) Bob

Re: [R] How to visualise what code is processed within a for loop

2018-04-24 Thread Bob O'Hara
meric() around the right hand side. Or hope that R does type conversion for you when you need it) HTH Bob On 24 April 2018 at 09:30, Luca Meyer wrote: > Hi, > > I am trying to debug the following code: > > for (i in 1:10){ > t <- paste("d0$V",i,sep="") >

Re: [R] arguments imply differing number of rows

2017-09-20 Thread Bob O'Hara
4000:6000 gives you 4000, 4001, ..., 6000. I suspect you want population= c(seq(4000, 6000, length=5), seq(3500, 4300, length=5), seq(3000, 3200, length=5)) Bob On 20 September 2017 at 17:07, Shivi Bhatia wrote: > Hi Team, > > I using the syntax as: > > data.df<- data.frame(

[R] [R-pkgs] New CRAN Package Announcement: splashr

2017-08-30 Thread Bob Rudis
stions and even more thanks to the CRAN team for a speedy onboarding. -Bob ___ R-packages mailing list r-packa...@r-project.org https://stat.ethz.ch/mailman/listinfo/r-packages __ R-help@r-project.org mailing

Re: [R] Help : glm p-values for a factor predictor

2017-06-29 Thread Bob O'Hara
: look at the anova() function. Bob On 29 June 2017 at 11:13, Benoît PELE wrote: > Hello, > > i am a newby on R and i am trying to make a backward selection on a > binomial-logit glm on a large dataset (69000 lines for 145 predictors). > > After 3 days working, the stepAIC functi

Re: [R] Factors and Alternatives

2017-05-09 Thread Bob O'Hara
ming, and put some checks in the code, to make sure your factors have the right number of levels. Bob On 9 May 2017 at 13:36, wrote: > Hi Bob, > > many thanks for your reply. > > I have read the documentation. In my current project I use "item > batteries" for dimensions

Re: [R] Factors and Alternatives

2017-05-09 Thread Bob O'Hara
act". It now doesn't care that they were 1 and 0, because you've told it to change the labels. If you want to filter by the original values, then don't change the labels (or at least not until after you've filtered by the original labels), or convert the filter to the new

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

2017-02-27 Thread Bob Rudis
s and enhancement requests are most welcome as GitHub issues. -Bob ___ R-packages mailing list r-packa...@r-project.org https://stat.ethz.ch/mailman/listinfo/r-packages __ R-help@r-project.org mailing list

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

2017-01-13 Thread Bob Rudis
rs over time and among demographic groups. Their data is usually updated monthly. Code (with extended examples in the README) is at: https://github.com/hrbrmstr/epidata Issues, enhancements (etc) are — as always — welcome. -Bob ___ R-packages mailing l

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

2017-01-12 Thread Bob Rudis
Aye, but this: some_dates <- as.POSIXct(c("2015-12-24", "2015-12-31", "2016-01-01", "2016-01-08")) (year_week <- format(some_dates, "%Y-%U")) ## [1] "2015-51" "2015-52" "2016-00" "2016-01" (year_week_day <- sprintf("%s-1", year_week)) ## [1] "2015-51-1" "2015-52-1" "2016-00-1" "2016-01

Re: [R] Help with decrypting

2016-11-07 Thread Bob Rudis
Perhaps https://cran.r-project.org/web/packages/bcrypt/index.html might be of assistance. If not, drop a note back to the list as it'll be trivial to expand on that to give you an R alternative to Perl. On Mon, Nov 7, 2016 at 5:47 PM, MacQueen, Don wrote: > I have a file containing encrypted con

Re: [R] The equivalent of which() when accessing slots in an object

2016-10-31 Thread Bob Rudis
> quicker than sapply(), uses less memory, gives the right results > when given a vector of length 0, and gives an error when FUN does > not return the specified sort of result. > > > Bill Dunlap > TIBCO Software > wdunlap tibco.com > > On Mon, Oct 31, 2016 at 7:3

Re: [R] The equivalent of which() when accessing slots in an object

2016-10-31 Thread Bob Rudis
which(purrr::map_dbl(buylist, slot, "reqstock") > 100) or which(sapply(buylist, slot, "reqstock") > 100) ought to do the trick. On Mon, Oct 31, 2016 at 10:09 AM, Thomas Chesney wrote: > I have the following object > > setClass("buyer", > representation( > reqstock="numeric", > buyout="

Re: [R] About converting files in R

2016-10-25 Thread Bob Rudis
Can you tell us where you got the file from and perhaps even send a link to the file? I know of at least 11 types of files that use `.bin` as an extension which are all different types of data with different binary formats. On Tue, Oct 25, 2016 at 5:40 PM, Bob Rudis wrote: > I'm afra

Re: [R] About converting files in R

2016-10-25 Thread Bob Rudis
I'm afraid we'll need more information that that since the answer from many folks on the list to such a generic question is going to be a generic "yes". What's the source of the binary files? If you know the type, there may even be an R package for it already. On Tue, Oct 25, 2016 at 5:28 PM, lil

Re: [R] rsync: failed to connect to cran.r-project.org (137.208.57.37): No route to host (113)

2016-10-24 Thread Bob Rudis
I ran traceroutes & BGP traces from Marseille & Paris routers to that CRAN IPv4 address (it's 10hrs after your mail, tho) and there's no network errors. You can use any CRAN mirror, though. You aren't limited to that one. On Mon, Oct 24, 2016 at 9:49 AM, Etienne Borocco wrote: > I still have the

Re: [R] gtools Gator infected...

2016-10-22 Thread Bob Rudis
I think your tool is a bit overzealous. VirusTotal - https://virustotal.com/en/file/5fd1b2fc5c061c0836a70cbad620893a89a27d9251358a5c42c3e49113c9456c/analysis/ & https://virustotal.com/en/file/e133ebf5001e1e991f1f6b425adcfbab170fe3c02656e3a697a5ebea961e909c/analysis/ - shows no sign of any malware

Re: [R] function which returns number of occurrences of a pattern in string

2016-10-20 Thread Bob Rudis
`stringi::stri_count()` I know that the `stringr` pkg saves some typing (it wraps the `stringi` pkg), but you should really just use the `stringi` package. It has many more very useful functions with not too much more typing. On Thu, Oct 20, 2016 at 5:47 PM, Jan Kacaba wrote: > Hello dear R-help

Re: [R] create n suffixes of length 1:n from string of length n

2016-10-19 Thread Bob Rudis
purrr::map(paste0(letters, collapse=""), ~purrr::map2_chr(., 1:nchar(.), ~substr(.x, 1, .y)))[[1]] seems to crank really fast at least on my system what did you try that was slow? On Wed, Oct 19, 2016 at 11:01 AM, Witold E Wolski wrote: > Is there a build in function, which creates n suffixes o

Re: [R] JSON to Dataframe

2016-10-18 Thread Bob Rudis
If those are in "ndjson" files or are indeed single records, `ndjson` functions will be a few orders of magnitude faster and will produce perfectly "flat" data frames. It's not intended to be a replacement for `jsonlite` (a.k.a. the quintessential JSON pkg for R) but it's tailor made for making qui

Re: [R] Reg : R : How to capture cpu usage, memory usage and disks info using R language

2016-10-17 Thread Bob Rudis
You can do something like: https://www.simple-talk.com/sql/performance/collecting-performance-data-into-a-sql-server-table/ and avoid the R step. Let the log perf data directly. On Mon, Oct 17, 2016 at 6:03 AM, jim holtman wrote: > within the VBS script you can easily access remote computers. > >

Re: [R] Compatible version of R software for OEL v6.5 Linux OS

2016-10-14 Thread Bob Rudis
Having worked in big pharma for over 10 years, I'm _fairly_ certain AstraZeneca can afford some paid R consulting. On Fri, Oct 14, 2016 at 2:14 PM, David Winsemius wrote: > >> On Oct 14, 2016, at 12:05 AM, Vijayakumar, Sowmya >> wrote: >> >> Hi R-Help team, >> >> >> Greeting from AstraZeneca In

Re: [R] Share R.net dll without having to share R script code?

2016-10-14 Thread Bob Rudis
Ugly idea/option, but you could base64 encode the R script (solely to avoid the need to do string quoting) and have that string in the source of the R.net code, then pass it in to the eval portion or write it out to a temp dir and pass that to the eval portion of the code. That way the script is em

Re: [R] sort()ing strings

2016-10-13 Thread Bob O'Hara
Thanks - strangely capabilities("ICU") is FALSE (I'm using ubuntu 16.04, and icu-devtools is installed). So I guess I'll conclude that there's something odd, but I don't want to delve into these issues (a new locale & new computer for me in a couple of months).

Re: [R] (no subject)

2016-10-13 Thread Bob O'Hara
Yes, thanks. That seems to be it: thing <- c("M1", "M2", "M.1", "M.2") > sort(thing) [1] "M1" "M.1" "M2" "M.2" The only documentation I can find is from ?Comparison: "Collation of non-letters (spaces, pu

[R] (no subject)

2016-10-13 Thread Bob O'Hara
Platform: x86_64-pc-linux-gnu (64-bit) Running under: Ubuntu 16.04.1 LTS locale: [1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C LC_TIME=en_GB.UTF-8LC_COLLATE=en_US.UTF-8 [5] LC_MONETARY=en_GB.UTF-8LC_MESSAGES=en_US.UTF-8 LC_PAPER=en_GB.UTF-8 LC_NAME=C [9] LC_ADDRESS=C

Re: [R] turning comma separated string from multiple choices into

2016-10-11 Thread Bob Rudis
Take a look at tidyr::separate() On Fri, Oct 7, 2016 at 12:57 PM, silvia giussani wrote: > Hi all, > > > > could you please tell me if you find a solution to this problem (in > Subject)? > > > > June Kim wrote: > >>* Hello,* > >> > >>* I use google docs' Forms to conduct surveys online. Multiple

Re: [R] Antwort: RE: How to plot a bunch of dichotomous code variables in one plot using ggplot2

2016-10-05 Thread Bob Rudis
st-mortem examination: he may be able to say > what the experiment died of. ~ Sir Ronald Aylmer Fisher > The plural of anecdote is not data. ~ Roger Brinner > The combination of some data and an aching desire for an answer does not > ensure that a reasonable answer can be extracted

Re: [R] Antwort: RE: How to plot a bunch of dichotomous code variables in one plot using ggplot2

2016-10-05 Thread Bob Rudis
(s/marplot/barplot) On Wed, Oct 5, 2016 at 10:35 AM, Bob Rudis wrote: > No need to bring in so many dependencies for a simple ggplot2 marplot: > > ds <- stack(ds) > ggplot(ds[ds$values==1,], aes(ind)) + geom_bar() > > On Wed, Oct 5, 2016 at 10:17 AM, Thierry Onkel

Re: [R] Problem installing rgdal.

2016-10-04 Thread Bob Rudis
errors and helped debug your issue, but it went in flawlessly. -Bob ​ On Tue, Oct 4, 2016 at 8:31 PM, Rolf Turner wrote: > On 05/10/16 12:56, ProfJCNash wrote: > >> Can you build/install the source package? I had a problem once where my >> libraries were "too recent&

[R] [R-pkgs] A few new packages on CRAN

2016-10-03 Thread Bob Rudis
efault plotting for this weather API. https://cran.r-project.org/web/packages/darksky/index.html Issues/enhancement requests are most welcome at each pkg's GH issues page. -Bob [[alternative HTML version deleted]] ___ R-packages maili

Re: [R] Convert a list with NULL to a dataframe with NA

2016-10-02 Thread Bob Rudis
It's fairly straightforward with help from the purrr package: library(purrr) map_df(OB1, function(x) { if (length(x) == 0) { data.frame(id=NA_character_, nam=NA_character_, stringsAsFactors=FALSE) } else { data.frame(id=x[1], nam=names(x), stringsAsFactors=FALSE) } }, .id="V1") O

Re: [R] Opening or activating a URL to access data, alternative to browseURL

2016-09-29 Thread Bob Rudis
The rvest/httr/curl trio can do the cookie management pretty well. Make the initial connection via rvest::html_session() and then hopefully be able to use other rvest function calls, but curl and httr calls will use the cached in-memory handle info seamlessly. You'd need to store and retrieve cooki

Re: [R] Accelerating binRead

2016-09-17 Thread Bob Rudis
You should probably pick a forum — here or SO : http://stackoverflow.com/questions/39547398/faster-reading-of-binary-files-in-r : - vs cross-post to all of them. On Sat, Sep 17, 2016 at 11:04 AM, Ismail SEZEN wrote: > I noticed same issue but didnt care much :) > > On Sat, Sep 17, 2016, 18:01 ji

Re: [R] Better use of regex

2016-09-15 Thread Bob Rudis
Base: Filter(Negate(is.na), sapply(regmatches(dimInfo, regexec("HS_(.{1})", dimInfo)), "[", 2)) Modernverse: library(stringi) library(purrr) stri_match_first_regex(dimInfo, "HS_(.{1})")[,2] %>% discard(is.na) They both use capture groups to find the matches and return ju

Re: [R] impossible # of errors in a simple code

2016-09-04 Thread Bob Rudis
pretty sure you just missed the `{` at the beginning of the `function` definition block. On Sun, Sep 4, 2016 at 7:38 AM, Michael Dewey wrote: > A useful rule is to fix the first error you understand and hope that the > others go away. > > On 04/09/2016 04:05, Tamar Michaeli wrote: > >> Any help

Re: [R] paste0 in file path

2016-08-31 Thread Bob Rudis
if the files are supposed to be "1r.xlsx", "2r.xlsx" (etc) then you need to ensure there's a "/" before it. It's better to use `file.path()` to, well, build file paths since it will help account for differences between directory separators on the various operating systems out there. On Wed, Aug 3

Re: [R] Retrieving data from survey in R Studio

2016-08-18 Thread Bob Rudis
Ulrik: you can absolutely read from a URL in read.csv() with that syntax. The error `## Error in attach(survey): object 'survey' not found` suggests that the OP mis-typed something in the `survey` name in the assignment from `read.csv()`. However, the OP has quite a bit more to be concerned about

[R] [R-pkgs] New package uaparserjs 0.1.0 - Slice up browser user agent strings

2016-08-09 Thread Bob Rudis
uap-r since I'd eventually like to replace this with that. -Bob ___ R-packages mailing list r-packa...@r-project.org https://stat.ethz.ch/mailman/listinfo/r-packages __ R-help@r-project.org mailing lis

Re: [R] Ocr

2016-07-26 Thread boB Rudis
https://cran.rstudio.com/web/packages/abbyyR/index.html https://github.com/greenore/ocR https://electricarchaeology.ca/2014/07/15/doing-ocr-within-r/ that was from a Google "r ocr" search. So, yes, there are options. On Tue, Jul 26, 2016 at 6:43 PM, Achim Zeileis wrote: > On Wed, 27 Jul 2016,

Re: [R] Please assist me to download this data

2016-07-25 Thread boB Rudis
Valid parameters for the form would be super-helpful. On Mon, Jul 25, 2016 at 3:52 PM, Ulrik Stervbo wrote: > Hi Christofer, > > If you can load all the data into R you don't need to query the website - > you simply filter the data by your dates. > > I think that's the easiest solution. > > Best

Re: [R] Has R recently made performance improvements in accumulation?

2016-07-19 Thread boB Rudis
Ideally, you would use a more functional programming approach: minimal <- function(rows, cols){ x <- matrix(NA_integer_, ncol = cols, nrow = 0) for (i in seq_len(rows)){ x <- rbind(x, rep(i, 10)) } x } minimaly <- function(rows, cols){ x <- matrix(NA_integer_, ncol = cols, nrow = 0)

Re: [R] Aggregate rainfall data

2016-07-13 Thread boB Rudis
use `gsub()` after the `as.character()` conversion to remove everything but valid numeric components from the strings. On Wed, Jul 13, 2016 at 6:21 AM, roslinazairimah zakaria wrote: > Dear David, > > I got your point. How do I remove the data that contain "0.0?". > > I tried : balok <- cbind(ba

Re: [R] Can R read Word fonts and comments?

2016-07-05 Thread boB Rudis
I'll dig into that (was hoping the small feature addition wld cause enhanced feature requests :-) On Tue, Jul 5, 2016 at 1:02 PM, John wrote: > Thank you, David and Bert, for the info. > Thank you, Bob, for this excellent function. Allow me to request a feature: > You highlighted

Re: [R] Can R read Word fonts and comments?

2016-07-02 Thread boB Rudis
I just added `docx_extract_all_cmnts()` (and a cpl other comments-related things) to the dev version of `docxtractr` (https://github.com/hrbrmstr/docxtractr). You can use `devtools::install_github("hrbrmstr/docxtractr")` to install it. There's an example in the help for that function. Give it a go

Re: [R] merging df with world map

2016-06-20 Thread boB Rudis
you also don't need to do a merger if you use a base `geom_map()` layer with the polygons and another using the fill (or points, lines, etc). On Fri, Jun 17, 2016 at 5:08 PM, MacQueen, Don wrote: > And you can check what David and Jeff suggested like this: > > intersect( df$COUNTRY, world_map$reg

Re: [R] Kendall heat map

2016-06-17 Thread boB Rudis
Did you try: cor(mat, method="kendall", use="pairwise") That only provides the matrix (so the equiv of the $r list component), but that seems to be all you need. On Fri, Jun 17, 2016 at 5:47 AM, Shane Carey wrote: > Hi, > > I was hoping someone could help me. I was wondering are there any l

Re: [R] Help: How to Convert Binary Data into Text Using R

2016-06-12 Thread boB Rudis
a few packages that also help with reading "binary" data. But, without knowing more specifics, that's about as much direction as any of us wld be able to give. -Bob On Sat, Jun 11, 2016 at 9:06 PM, Fahman Khan via R-help wrote: > Good Evening, > Just started learning R and one

Re: [R] Map of Italy data filled at the level of the province

2016-06-02 Thread boB Rudis
nsider binning data and using a discrete fill (IMO that's usually a better choice for most choropleths). -Bob On Thu, Jun 2, 2016 at 5:37 AM, francesca Pancotto wrote: > Dear Users > I am very new to the use of ggplot. I am supposed to make a plot of > Italian provinces in which I ha

Re: [R] How to replace all commas with semicolon in a string

2016-05-27 Thread boB Rudis
You can use gsub() instead of sub() On Fri, May 27, 2016 at 11:10 AM, Jun Shen wrote: > Dear list, > > Say I have a data frame > > test <- data.frame(C1=c('a,b,c,d'),C2=c('g,h,f')) > > I want to replace the commas with semicolons > > sub(',',';',test$C1) -> test$C1 will only replace the first com

Re: [R] R help - Web Scraping of Google News using R

2016-05-24 Thread boB Rudis
What you are doing wrong is both trying yourself and asking others to violate Google's Terms of Service and (amongst other things) get your IP banned along with anyone who aids you (or worse). Please don't. Just because something can be done does not mean it should be done. On Tue, May 24, 2016 at

Re: [R] web scraping tables generated in multiple server pages

2016-05-11 Thread boB Rudis
stackoverflow.com/questions/27080920/how-to-check-if-page-finished-loading-in-rselenium> would probably also be better (waiting for a full page load signal), but I try to not use [R]Selenium at all if it can be helped. -Bob On Wed, May 11, 2016 at 2:00 PM, boB Rudis wrote: > Hey David, >

Re: [R] web scraping tables generated in multiple server pages

2016-05-11 Thread boB Rudis
a on to a single page but requires a server call for the next 10). I also keep firefox scarily out-of-date (back in the 33's rev) b/c I only use it with RSelenium (not a big fan of the browser). Let me update to the 46-series and see if I can replicate. -Bob On Wed, May 11, 2016 at 1:48 PM, D

Re: [R] web scraping tables generated in multiple server pages

2016-05-10 Thread boB Rudis
} ret }) -> tabs final_dat <- bind_rows(tabs) final_dat <- final_dat[, c(1, 2, 5, 7, 8, 13, 14)] # the cols you want final_dat <- final_dat[complete.cases(final_dat),] # take care of NAs remDr$quit() Prbly good ref code to have around, but you can gra

Re: [R] Assistance with httr package with R version 3.3.0

2016-05-10 Thread boB Rudis
I don't fully remember, but I doubt httr::content() ever returned a character vector without using the `as="text"` parameter. Try switching that line to: html <- content(r, as="text") On Tue, May 10, 2016 at 3:27 AM, Luca Meyer wrote: > Hi Jim, > > Thank you for your suggestion. I have act

Re: [R] CRAN package check results tabulated ... wasRe: Number of package in Ubuntu

2016-04-24 Thread boB Rudis
Or grab https://cran.r-project.org/web/checks/check_results.rds and read it w/o the need for scraping. On Sat, Apr 23, 2016 at 10:43 AM, David Winsemius wrote: > >> On Apr 23, 2016, at 6:56 AM, David Winsemius wrote: >> >> >>> On Apr 22, 2016, at 11:51 AM, mylistt...@gmail.com wrote: >>> >>> Dea

Re: [R] Mean of hexadecimal numbers

2016-04-16 Thread boB Rudis
erage" color determination. -Bob On Sat, Apr 16, 2016 at 12:03 PM, Duncan Murdoch wrote: > On 16/04/2016 8:47 AM, Atte Tenkanen wrote: >> >> Hi, >> >> How would you calculate the "mean colour" of several colours, for >> example c("#FF7C00&quo

Re: [R] Microsoft R Server

2016-04-14 Thread boB Rudis
Yes. Yes. That info is on their site. That info is on their site. They have paid support for their customers and non-Microsoft-R-platform-dependent packages will (most likely) still be answered by the community. This is just a re-branding and expansion of what was Revolution R which has been aroun

Re: [R] Solution to communicating with UDP and other interfaces (under Linux) using R

2016-04-09 Thread boB Rudis
Hey Bob, If you're interested, I'd be glad to see what I can do to make doing UDP comms from R accessible across platforms without the need for a `system()` call. Mind shooting me a private e-mail to see what your needs are so I can try to generalize a solution from them? -Bob On

Re: [R] issue -- Packages unavailable for R version 3.2.3

2016-02-24 Thread boB Rudis
>'It's not unlikely that you will need a copy of "Writing R Extensions" at >hand.' + a few bottles of Scotch. It might be worth approaching rOpenSci https://ropensci.org/ to take over resurrection/maintenance of this. But, it seems others are in your predicament: https://www.researchgate.net/p

Re: [R] issue -- Packages unavailable for R version 3.2.3

2016-02-24 Thread boB Rudis
Will you be able to fix the issues that crop up (or even notice the issues) for these unsupported packages? (There _is_ a reason they aren't in CRAN anymore.) That particular one (which is, indeed, archived in CRAN) also depends on Rstem, which is also archived on CRAN, and now (according to CRAN)

Re: [R] Password-Shiny

2016-02-23 Thread boB Rudis
What would cause you to think this mailing list is a free code-writing service? Perhaps post your question on Amazon's Mechanical Turk service? Alternatively: purchase a license for Shiny Server Pro. On Tue, Feb 23, 2016 at 12:45 AM, Venky wrote: > Hi R users, > > Please anyone help me how to cr

Re: [R] 'tcltk' in R2.3.3

2016-02-18 Thread Bob Kot
I believe you mean - "tcltk2" which refers to Tcl/Tk Additions - https://cran.r-project.org/web/packages/tcltk2/index.html Kind regards, Bob -Original Message- From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of Divakar Reddy Sent: Thursday, February 18, 2016 3:0

[R] Error in loading caret

2016-01-29 Thread Bob Kot
rtest' In addition: Warning message: package 'caret' was built under R version 3.2.3 Error: package or namespace load failed for 'caret' Any thoughts on to resolve this error are greatly appreciated. Best, Bob [[alternative HTML version deleted]] __

Re: [R] qplot Error Message

2016-01-23 Thread boB Rudis
Assuming that's qplot from ggplot2, it's trying to pass span to the Point Geom which doesn't recognize it. I highly suggest moving away from using qplot and working with the stat_s and geom_s directly with ggplot(). On Sat, Jan 23, 2016 at 8:46 AM, Jeff Reichman wrote: > R-Users > > > > Anyone se

Re: [R] Error opening SHP file

2016-01-22 Thread boB Rudis
houldn't be using readShapeSpatial anyway, as it has >> a habit of not reading the coordinate system in the .prj file. I find >> it much easier to use `raster::shapefile` which *does* read the >> coordinate system *and* gives a more explicit error message for a >> missing shap

Re: [R] Error opening SHP file

2016-01-21 Thread boB Rudis
Agreed with the others. After finding that shapefile and getting it to work you are definitely not in the proper working directory. On Thu, Jan 21, 2016 at 8:40 PM, David Winsemius wrote: > >> On Jan 21, 2016, at 4:39 PM, Amoy Yang via R-help >> wrote: >> >> Any advice for the following errors?

Re: [R] R editor for Mac

2016-01-21 Thread boB Rudis
Aye. You can make source/editor windows consume the entire area or have them as separate windows and can define a consistent line-ending vs platform native (I run RStudio Preview and [sometimes] dailies and can confirm these are in there). The addition of full R (C/C++/HTML/javascript/etc) code dia

Re: [R] R editor for Mac

2016-01-21 Thread boB Rudis
Here you go Ista: https://atom.io/packages/repl (Atom rly isn't bad for general purpose data sci needs, I still think RStudio is the best environment for working with R projects). On Thu, Jan 21, 2016 at 12:48 PM, Ista Zahn wrote: > On Jan 21, 2016 12:01 PM, "Philippe Massicotte" > wrote: >> >>

Re: [R] R editor for Mac

2016-01-20 Thread boB Rudis
If you don't want to run RStudio, Sublime Text has both great R code syntax highlighting/formatting and a REPL mode for an interactive console in-editor. Atom also has decent R support. They both play well with "Dash" which is an alternative way (separate app) to lookup R docs on OS X. On Wed, J

Re: [R] Ordinal regression with some categories combined for some data

2016-01-17 Thread Bob O'Hara
Thanks, Thierry & Duncan. I'll go down the survival analysis route. The data are for central American epiphytes, so not your usual species. Visually there's definitely differences in the times of germination, but not in eventual germination, so that's straightforward. Bob On

[R] Ordinal regression with some categories combined for some data

2016-01-15 Thread Bob O'Hara
e categories are interval censored? Or is it easier to go straight to a full interval-censored survival analysis? Bob -- Bob O'Hara Biodiversity and Climate Research Centre Senckenberganlage 25 D-60325 Frankfurt am Main, Germany Tel: +49 69 798 40226 Mobile: +49 1515 888 5440 WWW: http

Re: [R] printing a data.frame that contains a list-column of S4 objects

2016-01-14 Thread boB Rudis
getting shoehorned into a data.frame. That happens more often than I'd like in modern API calls (really complex/nested JSON being returned). On Thu, Jan 14, 2016 at 3:34 AM, Martin Maechler wrote: >>>>>> boB Rudis >>>>>> on Tue, 12 Jan 2016 13:51:50 -0500

Re: [R] printing a data.frame that contains a list-column of S4 objects

2016-01-12 Thread boB Rudis
I wonder if something like: format.list <- function(x, ...) { rep(class(x[[1]]), length(x)) } would be sufficient? (prbly needs more 'if's though) On Tue, Jan 12, 2016 at 12:15 PM, Jenny Bryan wrote: > Is there a general problem with printing a data.frame when it has a > list-column of S4 obj

Re: [R] Mixed Beta Disrubutions

2016-01-06 Thread Bob Aronoff
I am working to understand the same issues with my datasets. Adapting Dr Zeileis' posting I have written a humble function. It creates a two cluster beta mix on a vector of data. It seems to be working well on my datasets. You are welcome to try on yours. regards, Bob _ bi.modal

Re: [R] Error: could not find function "VectorSource" in package tm

2015-12-30 Thread boB Rudis
Do you have any code? Any more logs from the error? It's hard to help when you've provided little more than an error message. What does the output of: library(tm) docs <- c("This is a text.", "This another one.") (vs <- VectorSource(docs)) generate? On Wed, Dec 30, 2015 at 2:32 PM, Davi

Re: [R] Modifying graphs in 'survrec' package

2015-10-25 Thread boB Rudis
As answered here: http://stackoverflow.com/a/1444/1457051 palette(c("red", "blue", "orange")) par(lty=3) plot(fit,ylim=c(0,1),xlim=c(0,2000)) though, as indicated in that post, you'll need to customize the survrec:::plot.survfitr function to do more detailed customization. On Sun

Re: [R] r-markdown - keeping figures

2015-10-21 Thread Bob O'Hara
The figures should be saved somewhere. e.g. if you have x.Rmd, you should have a X_files/ folder with subfolders for the figures (e.g. X-html or X-latex). At least that's what I have. Bob On 20 October 2015 at 18:18, Witold E Wolski wrote: > I am running r-markdown from r-studio and ca

Re: [R] Does R work on Mac OS 10.11?

2015-10-05 Thread boB Rudis
I use it daily (hourly, really) on 10.11 (including the new betas). No issues. On Mon, Oct 5, 2015 at 10:03 AM, R Martinez wrote: > Has anyone tried to use R 3.2.2 on a Mac running OS 10.11 El Capitan? Did it > work? Were any problems installing and running it? > > Thanks in advance, > > Raul Ma

Re: [R] extracting a value from XML

2015-09-21 Thread boB Rudis
The " > observation_start="2015-09-01" observation_end="2015-09-01" > units="lin" output_type="1" file_type="xml" > order_by="observation_date" sort_order="asc" count="1" offset="0" > limit="10"> > date="2015-09-01" value="0.46"/> > ' > > doc <- read_xml(txt) > xml_attr(xml_find_all(doc, "//o

Re: [R] extracting a value from XML

2015-09-21 Thread boB Rudis
This is how (one way) in both the xml2 package and XML package: library(xml2) library(XML) txt <- ' ' doc <- read_xml(txt) xml_attr(xml_find_all(doc, "//observation"), "value") doc1 <- xmlParse(txt) xpathSApply(doc1, "//observation", xmlGetAttr, "value") On Mon, Sep 21, 2015 at 2:01 PM,

Re: [R] Problem R markdown document

2015-08-27 Thread boB Rudis
Try increasing the memory for pandoc via knitr YAML options: -- title: "TITLE" output: html_document: pandoc_args: [ "+RTS", "-K64m", "-RTS" ] --- ref: http://stackoverflow.com/a/28015894/1457051 you can bump up those #'s IIRC, too, if they don't work at first. On Thu, Aug

Re: [R] How to download this data

2015-08-25 Thread boB Rudis
Looks like you can get what you need from http://www.nseindia.com/homepage/Indices1.json on that page. On Tue, Aug 25, 2015 at 2:23 PM, Bert Gunter wrote: > This is not a simple question. The data are in an html-formatted web > page. You must "scrape" the html for the data and read it into an R >

Re: [R] data frame formatting

2015-08-18 Thread boB Rudis
Here's one way in base R: df <- data.frame(id=c("A","A","B","B"), first=c("BX",NA,NA,"LF"), second=c(NA,"TD","BZ",NA), third=c(NA,NA,"RB","BT"), fourth=c("LG","QR",NA,NA)) new_df <- data.frame(do.call(rbind, by(df, df$id, functi

Re: [R] Knit R and Book Publishing

2015-08-06 Thread boB Rudis
https://github.com/hadley/adv-r is how it was done. On Thu, Aug 6, 2015 at 8:33 AM, Bert Gunter wrote: > I would have thought that the first place to look was R Studio support > site. You will find a lot of (Imo well done) docs there as well as links to > Hadley's and Yihui's books and online doc

Re: [R] help_ReverseGeocoding

2015-07-28 Thread boB Rudis
You should use ggmap::revgeocode (it calls google's api) and google will rate-limit you. There are also packages to use HERE maps geo/revgeo lookups http://blog.corynissen.com/2014/10/making-r-package-to-use-here-geocode-api.html and the geocode package has GNfindNearestAddress, so tons of options

Re: [R] modifying a package installed via GitHub

2015-07-18 Thread boB Rudis
You can go to the package directory: cd /some/path/to/package and do R CMD install . from a command-line there. Many github-based packages are also made using RStudio and you can just open the .Rproj file (i.e. load it into R studio) and build the package there which will install it.

Re: [R] Maxent Jarfile

2015-07-09 Thread Bob O'Hara
() first to see if it works. If it does then the problem is elsewhere, so use find("niche.equivalency.test") to find out what package that function is in, and email the maintainer of that package for help. Oh, and also read the posting guide: <http://www.r-project.org/posting-guid

Re: [R] Web crawling amazon website using R

2015-06-30 Thread boB Rudis
You might want to read Amazon's terms of service before crawling their site: http://www.amazon.in/gp/help/customer/display.html/ref=footer_cou/276-8549425-3823542?ie=UTF8&nodeId=200545940 On Tue, Jun 30, 2015 at 3:33 AM, Abhinaba Roy wrote: > Hi R helpers, > > I want to crawl the amazon.in websi

Re: [R] Call to a function

2015-06-23 Thread boB Rudis
You can do something like: aaa <- function(data, w=w) { if (class(w) %in% c("integer", "numeric", "double")) { out <- mean(w) } else { out <- mean(data[, w]) } return(out) } (there are some typos in your function you may want to double check, too) On Tue, Jun 23, 2015 at 5:39 PM,

[R] [R-pkgs] Version 0.8.5 of metricsgraphics is on CRAN

2015-06-22 Thread boB Rudis
rid.arrange'-like functionality for laying out multiple charts. -Bob ___ R-packages mailing list r-packa...@r-project.org https://stat.ethz.ch/mailman/listinfo/r-packages __ R-help@r-project.org mailing li

Re: [R] reading daily snow depth data

2015-06-16 Thread boB Rudis
This look similar to snow data I used last year: https://github.com/hrbrmstr/snowfirst/blob/master/R/snowfirst.R All the data worked pretty well. On Tue, Jun 16, 2015 at 3:21 PM, jim holtman wrote: > Here is an example of reading in the data. After that it is a data frame > and should be able t

  1   2   3   >