Re: [R] Skip error in downloading file in loop

2017-10-21 Thread Jeff Newmiller
One of the recommendations in the Posting Guide is to read the archives before posting... even following along with recent posts would have pointed out the existence of the tryCatch function. ?tryCatch -- Sent from my phone. Please excuse my brevity. On October 21, 2017 8:01:02 AM PDT, Miluji

Re: [R] Problem when trying to run Java in R:

2017-10-22 Thread Jeff Newmiller
I suggest asking a Mac-OS-specific question like this on the r-sig-mac mailing list. A common problem is attempting to access a 64-bit implementation of Java from a 32-bit version of R, or vice versa, but you may want to include the output of sessionInfo() and a reproducible example (both input

Re: [R] How to define proper breaks in RFM analysis

2017-10-23 Thread Jeff Newmiller
Using quantiles does not imply assumption of normality, unless you drag that assumption in separately. Please go review statistics again, offlist, and come back when you need help with R. -- Sent from my phone. Please excuse my brevity. On October 22, 2017 10:02:57 PM PDT, Hemant Sain wrote: >

Re: [R] How to save and restore a workspace

2017-10-23 Thread Jeff Newmiller
To be specific, the effect of loading packages with the "library" function is NOT saved when you save the workspace... and if you come back much later after you have updated some packages the old saved objects may not work well with those new packages. At the very least you have to re-load all n

Re: [R] read.table(..., header == FALSE, colClasses = )

2017-10-23 Thread Jeff Newmiller
You are constructing the equivalent of a two-line data file, and complaining that it is not treating it like it was one line. If it did used to accept this silently [skeptical] then I for one am glad it produces a warning now. -- Sent from my phone. Please excuse my brevity. On October 23, 201

Re: [R] Creating a data table (frame?) from a SQL Statement?

2017-10-24 Thread Jeff Newmiller
Your question desperately needs a reproducible example (a.k.a. "reprex"), because you have to be using contributed packages to do any of this. You also need to clarify whether you are intending to access data already in an external database, or are planning to load it using R and manipulate it w

Re: [R] Creating a data table (frame?) from a SQL Statement?

2017-10-24 Thread Jeff Newmiller
Please always cc the list... the group usually has better answers than any one person, and I don't do private consulting on the net. For future reference, there is also an r-sig-db mailing list where this question really belongs. Since I almost never use jdbc, I would need a reprex (hint you ar

Re: [R] Help needed with aggregate or other solution

2017-10-25 Thread Jeff Newmiller
12-04-15 00:00:00", "2012-04-15 06:00:00", "2012-04-15 12:00:00", "2012-04-15 18:00:00", "2012-04-16 00:00:00", "2012-04-16 06:00:00", "2012-04-16 12:00:00", "2012-04-16 18:00:00", "2012-04-17 00:00:00", "2012

Re: [R] Help needed with aggregate or other solution

2017-10-26 Thread Jeff Newmiller
2012-04-27 18:00:00", "2012-04-28 00:00:00", "2012-04-28 06:00:00", "2012-04-28 12:00:00", "2012-04-28 18:00:00", "2012-04-29 00:00:00", "2012-04-29 06:00:00", "2012-04-29 12:00:00", &q

Re: [R] run r script in r-fiddle

2017-10-29 Thread Jeff Newmiller
You can't. Use R on your computer instead. -- Sent from my phone. Please excuse my brevity. On October 29, 2017 5:56:55 PM PDT, Frank Mei wrote: >Hi All, > >I want to know how to run an R file on my computer in R-Fiddle? > >I tried source("filename.r"), but not working. > >thanks, >Frank > >

Re: [R] Pass Parameters to RScript?

2017-10-30 Thread Jeff Newmiller
I do not do this either, and technically this list is not the right place to ask this multi-language question, rather apparently [1] is because the alternative to using a system call is to use the Rserve service. You should use a search engine to look for info on using rjava and rserve. [1] htt

Re: [R] error to run this package

2017-10-31 Thread Jeff Newmiller
Please read the Posting Guide mentioned at the bottom of this and every message on this list. Things like the following you should consider: What did you do between the time you started R and this error occurred? There is a presumption that we can reproduce your actions and perhaps get the same

Re: [R] error to run this package

2017-10-31 Thread Jeff Newmiller
or ‘car’ in get(Info[i, 1], >envir >= env): > cannot allocate memory block of size 2.5 Gb > >On Tue, Oct 31, 2017 at 8:50 PM, Jeff Newmiller > >wrote: > >> Please read the Posting Guide mentioned at the bottom of this and >every >> message on this list. Things li

Re: [R] Help with Nesting

2017-10-31 Thread Jeff Newmiller
R does not look inside strings for language objects like your symbol variable. Nor does it magically figure out that it needs to keep previous values in a loop. And you need to be able to use valid syntax to ask clear questions in this list, so some more time with a tutorial should occur before

Re: [R] Data invisible to read.csv

2017-11-01 Thread Jeff Newmiller
You are using terms and concepts that apply to spreadsheets, but do not apply to R or CSV files. Please conform to the Posting Guide and make a reproducible example [1][2][3] using R code to demonstrate your problem. I suspect you will find that your problem begins in your spreadsheet and not in

Re: [R] R-3.4.2: make check stops at line 698 of tests/reg-tests-1d.R

2017-11-01 Thread Jeff Newmiller
This idea of hijacking failed connections has been tried before and it breaks many things beyond R software and most ISPs have given up on doing this. If you, who have this "feature" at hand can figure out a reliable way to detect this then it might be "considered". However, it seems unlikely th

Re: [R] R

2017-11-04 Thread Jeff Newmiller
Sorry, but there are restrictions on mailing list attachments (read the Posting Guide) and your attachments did not get through. However, even if they had come through, we would need you to describe the sequence of actions you took, because computers in general respond to your actions, and mos

Re: [R] Multiple CSV files in different sheets of an Excel file

2017-11-06 Thread Jeff Newmiller
You need to be more specific about what you mean by "merge" (read e.g. ?merge and ?rbind) and show what you did already using a reproducible example [1][2][3]. The fact that you mentioned sheets suggests you are writing to Excel files... they can be troublesome for storing data (NA values, siz

Re: [R] For each entry type in column?

2017-11-06 Thread Jeff Newmiller
All data frames "look like" matrices, but none of them "are" matrices. I think we need you to follow the Posting Guide and supply an R reproducible example that gives us a concrete idea what the data structure is that you are working with, and an example of what you expect to get out of the code

Re: [R] For each entry type in column?

2017-11-06 Thread Jeff Newmiller
Maybe you are thinking of the levels function rather than the names function? Which still presumes the column is a factor column, when it might actually be a character column (in which case you might use the unique function). Again, a reproducible example would stop the guessing. -- Sent from

Re: [R] Pathview xml issue

2017-11-07 Thread Jeff Newmiller
Between the lack of a reproducible example and the question being about a Bioconductor package, you probably won't see much response here. Try the Bioconductor mailing list? -- Sent from my phone. Please excuse my brevity. On November 7, 2017 11:15:51 AM PST, Yin wrote: >Hi, > >I'm using GAGE

Re: [R] R and LINGO?

2017-11-10 Thread Jeff Newmiller
That is interesting that you are having difficulty. Well, not really... please read the Posting Guide: a) No homework questions. Use the resources offered in your educational environment (school, MOOC, etc.). b) If this is not homework then frame your question with example R code... this is a

Re: [R] update R version in windows

2017-11-10 Thread Jeff Newmiller
That only works if you use apt-get for all package installs... I don't even know if that is possible. Use of install.packages within R works the same on all platforms... that is, upgrading R by a minor version (3.3 to 3.4) causes R to go looking for user-installed packages in a new library direc

Re: [R] Primer for working with survey data in R

2017-11-11 Thread Jeff Newmiller
You really should have pointed out that you cross-posted this question [1] so we wouldn't repeat things. You were already pointed at the task view on this subject there. Be sure to look for vignettes in the relevant packages. I cannot point you to domain-specific examples, though I came across s

Re: [R] create waveform sawtooth

2017-11-12 Thread Jeff Newmiller
Ccing the maintainer if the tuneR package. Looks to me like sawtooth (and square) don't behave as expected when using xunit="samples". Workaround is to use xunit="time" instead: sawtooth(110,duration=1/100,samp.rate=sample_rate,xunit="time") I looked at the code but found it to be opaque. --

Re: [R] Convert poly line to polygon in R

2017-11-13 Thread Jeff Newmiller
Might want to post this on R-sig-geo. Might also want to post in plain text format... see below how your message got messed up coming through the mailing list. -- Sent from my phone. Please excuse my brevity. On November 12, 2017 9:58:56 PM PST, Javad Bayat via R-help wrote: >I have a shape f

Re: [R] Dates to numeric in for loop

2017-11-14 Thread Jeff Newmiller
"Date" means "numeric with an attribute of class='Date' ", so what actually happened was that the for loop dropped the class attribute. In most cases using the seq_along() function lets you step through index values to extract values from your original vectors. In general, any S3 object will beh

Re: [R] R6 object that is a list of referenced object

2017-11-15 Thread Jeff Newmiller
org mailing list -- To UNSUBSCRIBE and more, see 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. --- Jeff NewmillerThe . .

Re: [R] Risks of using "function <- package::function" ?

2017-11-16 Thread Jeff Newmiller
Obvious? How about "obscurity"? Just directly use pkg::fun if you have name collision. -- Sent from my phone. Please excuse my brevity. On November 16, 2017 4:46:15 PM PST, Duncan Murdoch wrote: >On 16/11/2017 4:53 PM, Boris Steipe wrote: >> Large packages sometimes mask each other's functio

Re: [R] RStudio blank upon opening

2017-11-17 Thread Jeff Newmiller
You should ask this in the RStudio support forums.. it is not about R. I will say anecdotally regarding such behavior that RStudio expects certain directories that it creates to be hidden (e.g. the .Rproj.user directory for projects) so if you copied or otherwise messed with those files then th

Re: [R] family

2017-11-17 Thread Jeff Newmiller
This question is about algorithm help... or rather, "do my work for me", not about R. Study up on "directed acyclic graphs" [1]... there actually are some packages related to such data structures on CRAN (e.g. pooh::tsort, Task View gR "gRaphical Models in R"), but you should at least be aware

Re: [R] Σχετ: change colour in barplot

2017-11-20 Thread Jeff Newmiller
Just so you know, your attachments were stripped on the mailing list both times. It was your direct cc to Duncan that allowed him to see your attachments. Please avoid using attachments in the future, and if you must anyway then read the Posting Guide about which MIME type attachments are allow

Re: [R] Cursor lag: Mac High Sierra, R 3.4.2, Macbook Air 2017

2017-11-20 Thread Jeff Newmiller
This is an excellent example of a question that would be appropriate for the R-sig-mac mailing list. Do read the Posting Guide. -- Sent from my phone. Please excuse my brevity. On November 20, 2017 7:27:44 AM PST, kevin bleakley wrote: >Hi, > >I'm running High Sierra on a new "2017" Macbook A

Re: [R] help

2017-11-21 Thread Jeff Newmiller
Your example is incomplete... as the bottom of this and every post says, we need to be able to proceed from an empty R environment to wherever you are having the problem (reproducible), in as few steps as possible (minimal). The example needs to include data, preferably in R syntax as the dput f

Re: [R] help

2017-11-21 Thread Jeff Newmiller
PST, yadav neog wrote: >thank you for your valuable reply. I have attached my commands, >results, and >data with this mail..maybe it will be beneficial for you to feedback. > >On Tue, Nov 21, 2017 at 9:13 PM, Jeff Newmiller > >wrote: > >> Your example is incomplet

Re: [R] Best way to study internals of R ( mix of C, C++, Fortran, and R itself)?

2017-11-21 Thread Jeff Newmiller
1) What is easy for one person may be very hard for another, so your question is really unanswerable. You do need to know C and Fortran to get through the source code. Get started soon reading the R Internals document if it sounds interesting to you... you are bound to learn something even if yo

Re: [R] ccomp Composition and ggtern plot...

2017-11-22 Thread Jeff Newmiller
I have no clue what this package is for, but reading the help page for the ccomp function tells you that it returns a numeric vector or matrix. How do YOU want to display information from this numeric vector? That will determine how you would put it into a data frame. -- Sent from my phone. Ple

Re: [R] Scatterplot of many variables against a single variable

2017-11-27 Thread Jeff Newmiller
You do not appear to have read the Posting Guide mentioned at the bottom if this and every posting on the mailing list. Only a very few attachment types are allowed through the mailing list... and due to the way many email programs fail to identify them properly, even those few types may not m

Re: [R] SAMseq errors

2017-11-29 Thread Jeff Newmiller
A) This list is a general interest list on the R language... you have posed your question as if you were looking for domain experts such as you might be more likely to find on the Bioconductor mailing list. B) Example is not reproducible. [1][2][3] C) Just because your data don't have missing

Re: [R] Dynamic reference, right-hand side of function

2017-12-04 Thread Jeff Newmiller
il: pd@cbs.dk Priv: pda...@gmail.com -- Peter Dalgaard, Professor, Center for Statistics, Copenhagen Business School Solbjerg Plads 3, 2000 Frederiksberg, Denmark Phone: (+45)38153501 Office: A 4.23 Email: pd@cbs.dk Priv: pda...@gmail.com

Re: [R] Remove

2017-12-06 Thread Jeff Newmiller
subset( DM, "B" != x ) This is covered in the Introduction to R document that comes with R. -- Sent from my phone. Please excuse my brevity. On December 6, 2017 3:21:12 PM PST, David Winsemius wrote: > >> On Dec 6, 2017, at 3:15 PM, Ashta wrote: >> >> Hi all, >> In a data set I have group(GR

Re: [R] trying to find the multiple combinations...

2017-12-08 Thread Jeff Newmiller
Solve for one of your variables and it will be given in terms of the other two. That is, there is a whole infinite plane of solutions. No, aggregate will not be sufficient to enumerate the solution set.. -- Sent from my phone. Please excuse my brevity. On December 7, 2017 10:37:37 PM PST, Benj

Re: [R] lmerTest Issues

2017-12-08 Thread Jeff Newmiller
Have you read the error and installed package "purrr"? On Windows at least, previously-installed packages can get removed if you attempt to update them while you have another instance of R open at that time using said packages. Best to close all your instances of R before updating, but you can d

Re: [R] Remove

2017-12-08 Thread Jeff Newmiller
a Zahn wrote: Hi Ashta, There are many ways to do it. Here is one: vars <- sapply(split(DM$x, DM$GR), var) DM[DM$GR %in% names(vars[vars > 0]), ] Best Ista On Wed, Dec 6, 2017 at 6:58 PM, Ashta wrote: Thank you Jeff, subset( DM, "B" != x ), this works if I know the group only. Bu

Re: [R] Gaussian Process Classification R packages

2017-12-11 Thread Jeff Newmiller
While a plea about struggling may seem appropriate to you, it is just as content-free as a reply telling you to use Google... and like it or not, that tit-for-tat arises due to frustration with lack of specificity as detailed by Charles. That is, if you are constructive about documenting your is

Re: [R] Add vectors of unequal length without recycling?

2017-12-12 Thread Jeff Newmiller
Better get over it, because it isn't going to change. To avoid it, always work with vectors of the same length. This is a logical extension of the idea that a scalar adds to every element of a vector. -- Sent from my phone. Please excuse my brevity. On December 12, 2017 9:41:06 PM PST, Maing

Re: [R] something weird has happened....!!!!!!!!!!

2017-12-15 Thread Jeff Newmiller
Entry 250 is different between the two. However, I (we?) have no idea what that function is so it might be using randomness as part of its calculation. -- Sent from my phone. Please excuse my brevity. On December 15, 2017 7:11:30 AM PST, Duncan Murdoch wrote: >On 15/12/2017 7:45 AM, akshay kul

Re: [R] something weird has happened....!!!!!!!!!!

2017-12-15 Thread Jeff Newmiller
x27;s , right? Is this the randomness you are speaking about? > > >I will test the function again tomorrow. Hope you are right!! > > >Thanks a lot.. > > >yours > >AKSHAY M KULKARNI > > >From: Jef

Re: [R] Errors in reading in txt files

2017-12-15 Thread Jeff Newmiller
Your times are formatted as 01.01.2001-24:00:00 but the default format is 2001-01-01 24:00:00 so you need to specify a format argument with as.POSIXct. Read about format strings in ?strptime. -- Sent from my phone. Please excuse my brevity. On December 15, 2017 9:21:54 AM PST, lily li wrote

Re: [R] Nonlinear regression

2017-12-19 Thread Jeff Newmiller
Your text has unreadable characters in it. Use plain text. Also, your attachments are not coming through. Read the Posting Guide about attachments... best results are usually obtained by inserting the R code in the body of your email and not attaching anything. -- Sent from my phone. Please e

Re: [R] Nonlinear regression

2017-12-19 Thread Jeff Newmiller
You also need to reply-all so the mailing list stays in the loop. -- Sent from my phone. Please excuse my brevity. On December 19, 2017 4:00:29 PM PST, Timothy Axberg wrote: >Sorry about that. Here is the code typed directly on the email. > >qe = (Qmax * Kl * ce) / (1 + Kl * ce) > >##The data

Re: [R] Error when trying to install package rggobi

2017-12-26 Thread Jeff Newmiller
Have you read [1]? Specifically the SystemRequirements and URL fields? If you have installed GGobi previously, perhaps you need to do it again? [1] https://cran.r-project.org/web/packages/rggobi/index.html -- Sent from my phone. Please excuse my brevity. On December 26, 2017 8:27:52 AM PST, Pau

Re: [R] Writing text files out of a dataset

2017-12-29 Thread Jeff Newmiller
This presumes that 'data[["material"]]' is numeric. It is unnecessary to put the output data into a separate vector d (it is already in a vector that is part of the 'data' data frame). I would just overwrite `d` (or `d1`) each time through the loop: for (i in seq_along( data[["material"]] ) )

Re: [R] RQuantLib

2017-12-30 Thread Jeff Newmiller
Sometimes that message appears when using a CRAN mirror that is not up-to-date or has communication problems. Might also try another mirror. -- Sent from my phone. Please excuse my brevity. On December 30, 2017 5:25:15 AM PST, Michael Dewey wrote: >Dear Bob > >In fact the current release is 3.

Re: [R] RQuantLib

2017-12-30 Thread Jeff Newmiller
t;The output of the View command showed numerous packages available but >it >did not show RQuantLib. > >Bob Sherry > >On 12/30/2017 8:48 AM, Jeff Newmiller wrote: >> Sometimes that message appears when using a CRAN mirror that is not >up-to-date or has communication problems

Re: [R] Error in adabag

2018-01-01 Thread Jeff Newmiller
Not reproducible [1][2][3]. (Missing references to packages and "b" data frame.) Also, posting with html format makes extracting your code unreliable, so set your email program to send plain text for this mailing list. [1] http://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reprod

Re: [R] Help with first S3-class

2018-01-02 Thread Jeff Newmiller
Function arguments are not pass-by-reference... they are pass-by-value. You need to return the altered object to the caller when you are done messing with it. Note that R is a data processing language... your example will not scale to real world use cases because you make no use of vectorizatio

Re: [R] Replace NAs in split lists

2018-01-07 Thread Jeff Newmiller
Why do you want to modify df1? Why not just reassemble the parts as a new data frame and use that going forward in your calculations? That is generally the preferred approach in R so you can re-do your calculations easily if you find a mistake later. -- Sent from my phone. Please excuse my bre

Re: [R] Replace NAs in split lists

2018-01-08 Thread Jeff Newmiller
F 2 #> 3 a acF 2 #> 4 b aaT 5 #> 5 b abF 5 # On Sun, 7 Jan 2018, Jeff Newmiller wrote: Why do you want to modify df1? Why not just reassemble the parts as a new data frame and use that going forward in your calculations? Th

Re: [R] foverlaps data.table error

2018-01-08 Thread Jeff Newmiller
ommented, minimal, self-contained, reproducible code. ------- Jeff NewmillerThe . . Go Live... DCN:Basics: ##.#. ##.#. Live Go... L

Re: [R] Replace NAs in split lists

2018-01-08 Thread Jeff Newmiller
, Value = ifelse( is.na( Value ) >> , Value[ !is.na( Value ) ][ 1 ] >> , Value >> ) >> ) >> }) >>

Re: [R] Replace NAs in split lists

2018-01-08 Thread Jeff Newmiller
m my phone. Please excuse my brevity. On January 8, 2018 6:41:33 AM PST, Eric Berger wrote: >You can enforce these assumptions by sorting on multiple columns, which >leads to > >na.locf(df1[ order(df1$ID,df1$Value), ]) > > > >On Mon, Jan 8, 2018 at 4:19 PM, Jeff Newmiller > &

Re: [R] Replace NAs in split lists

2018-01-08 Thread Jeff Newmiller
> >Thanks again > >EK > > >On Mon, Jan 8, 2018 at 3:12 AM, Jeff Newmiller > wrote: >> Upon closer examination I see that you are not using the split >version of >> df1 as I usually would, so here is a reproducible example: >> >> # >> df

Re: [R] No keyboard control in the R terminal

2018-01-08 Thread Jeff Newmiller
Unlikely. My guess is you compiled it yourself without having readline development support installed where the configure script could find it. -- Sent from my phone. Please excuse my brevity. On January 8, 2018 6:23:34 PM PST, Olson Roman wrote: >Dear R Users, > >There is no R keyboard control

Re: [R] UseDevel: version requires a more recent R

2018-01-09 Thread Jeff Newmiller
Wrong forum. https://support.bioconductor.org/ -- Sent from my phone. Please excuse my brevity. On January 9, 2018 10:32:15 AM PST, "Sariya, Sanjeev" wrote: >Hello R experts: > >I need a developer version of a Bioconductor library. > >> sessionInfo() >R version 3.4.2 (2017-09-28) >Platform: x8

Re: [R] R-hts

2018-01-10 Thread Jeff Newmiller
You are the one with data. Supply what you have (or a simulated version of same, hence the reading recommendation) using dput, and someone may suggest how to transform it. In most cases a simple tabular format (data frame) is sufficient. -- Sent from my phone. Please excuse my brevity. On Jan

Re: [R] R-hts

2018-01-10 Thread Jeff Newmiller
break. That is, 10 rows will likely be insufficient for a dry run. -- Sent from my phone. Please excuse my brevity. On January 10, 2018 2:02:29 PM PST, Jeff Newmiller wrote: >You are the one with data. Supply what you have (or a simulated version >of same, hence the reading recommen

Re: [R] application of R

2018-01-11 Thread Jeff Newmiller
Because many technical people need to accomplish statistical data analysis with computers that depend on existing algorithms applied in new ways, or with new algorithms that are not implemented by commercial software. Often such people have no desire to provide step-by-step support of their too

Re: [R] sum multiple csv files

2018-01-15 Thread Jeff Newmiller
Your message seems unclear, and as evidence the respondents are giving various answers. You should provide a small sample of input and output data as it would look in R to avoid this kind of thrashing about. See [1][2][3] for guidance. Note that you also really need to figure out how to make sur

Re: [R] barplot that displays sums of values of 2 y colums grouped by different variables

2018-01-15 Thread Jeff Newmiller
Thanks. __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see 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, repro

Re: [R] Steps to create spatial plots

2018-01-15 Thread Jeff Newmiller
d, reproducible code. --- Jeff NewmillerThe . . Go Live... DCN:Basics: ##.#. ##.#. Live Go... Live: OO#.. Dead: OO#.. Playing Research Engineer (Solar/Batteries

Re: [R] flatpak installation package?

2018-01-16 Thread Jeff Newmiller
Of course... R _is_ open source. However, it is unwise to assume that the volunteers scratching itches for their preferred distros will take on additional work... it is more likely that you will need to take on scratching that new itch. -- Sent from my phone. Please excuse my brevity. On Janua

Re: [R] error while loading ggplot2

2018-01-17 Thread Jeff Newmiller
Please post using plain text... the mailing list will strip HTML anyway and mess up what you send. Send the output of sessionInfo() so we know what versions of R and packages you have. -- Sent from my phone. Please excuse my brevity. On January 17, 2018 4:37:06 PM PST, shijin mathew via R-he

Re: [R] Time-dependent coefficients in a Cox model with categorical variants

2018-01-18 Thread Jeff Newmiller
Offlist... for your information... It is unfair to suggest that the mailing list participants are at fault for using old software. Even if the mailing list participants use email programs that can handle HTML, any email that goes through the list gets the formatting stripped, which leaves it d

Re: [R] Specification: Bi variate minimization problem

2018-01-20 Thread Jeff Newmiller
You probably ought to read the CRAN Optimization Task View. [1] You should also read the Posting Guide mentioned at the bottom of every R-help email (e.g. no homework, use plain text email). You should also read some guides on asking questions online (e.g. [2][3][4]). [1] https://cran.r-project

Re: [R] Scraping from different level URLs website

2018-01-23 Thread Jeff Newmiller
They seem to release their data in xml and csv formats also... why are you scraping? -- Sent from my phone. Please excuse my brevity. On January 23, 2018 9:31:01 AM PST, Ilio Fornasero wrote: >I am doing a research on World Bank (WB) projects on developing >countries. To do so, I am scraping

Re: [R] Newbie - Scrape Data From PDFs?

2018-01-24 Thread Jeff Newmiller
And a warning to the OP... PDF files are like packages a wide variety of things can be inside, including text in semi-random order, or bitmap images of text... so having a tool that extracts text from the file will only be of use if your PDF files happen to be of the type that contain reason

Re: [R] Function gutenberg_download in the gutenbergr package

2018-01-24 Thread Jeff Newmiller
I have never used that package, but it seems obvious to me that you need to "reflect" on the meaning of the word "mirror". There is no reason to assume that a site hosting a mirror of the CRAN archive is also going to host a mirror of Project Gutenberg [1]. If, after you know you are giving rea

Re: [R] Geometry delaunayn and deldir results, differing results from Octave due to decimal precision?

2018-01-24 Thread Jeff Newmiller
tained, reproducible code. [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/p

Re: [R] Issue with concatenation of URL losing

2018-01-24 Thread Jeff Newmiller
ycode")) result2 <- content(sample2) height <- result2$height[[1]] Can you please suggest a way around this, it has been driving me mad! Thank you so much. Oliver [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and

Re: [R] Portable R in zip file for Windows

2018-01-24 Thread Jeff Newmiller
I have never used it, but Google sez look here [1]. You should learn to speak Google also. [1] https://sourceforge.net/projects/rportable/ -- Sent from my phone. Please excuse my brevity. On January 24, 2018 7:11:49 PM PST, Juan Manuel Truppia wrote: >I read a message from 2009 or 2010 where

Re: [R] Problem saving .RData file with save.image

2018-01-26 Thread Jeff Newmiller
Google is your friend (e.g. [1]). Gist of story is that that an existing file of that name is being "protected" by the operating system and you need to use filesystem utilities or reboot your machine to release the existing file from this condition. [1] https://stat.ethz.ch/pipermail/r-help/20

Re: [R] Add ablines

2018-01-29 Thread Jeff Newmiller
A) Without your data, it is very difficult to see what your problem is. You need to include both data and code to create a reproducible example. [1][2][3] B) Please follow the guidance in the Posting Guide mentioned in the footer of every message on this list; in particular note that this is a p

Re: [R] variable names in lm formula ~.

2018-01-30 Thread Jeff Newmiller
Functions are first class objects, so some kind of collision is bound to happen if you do this... so don't. -- Sent from my phone. Please excuse my brevity. On January 30, 2018 3:11:56 AM PST, "Vito M. R. Muggeo" wrote: >dear all, >Is the following intentional? Am I missing anything in docume

Re: [R] Calculating angle of a polyline

2018-01-30 Thread Jeff Newmiller
A polyline by definition has many angles, so your question is ill-formed. And this is a question about math, not R, so is off topic here. I suggest reading Wikipedia. -- Sent from my phone. Please excuse my brevity. On January 29, 2018 11:10:02 PM PST, javad bayat wrote: >Dear R users >I am tr

Re: [R] Problems with "predict" function ii

2018-01-31 Thread Jeff Newmiller
This is the kind of thing that leads experienced R users to avoid attach for data analysis. Read "The R Inferno". Use the "data" argument to lm, and the "newdata" argument to predict.lm. -- Sent from my phone. Please excuse my brevity. On January 31, 2018 9:20:10 AM PST, WRAY NICHOLAS via R-hel

Re: [R] Error while working with png output on linux server

2018-02-01 Thread Jeff Newmiller
FAQ 7.19? Also, read the Posting Guide, in particular about posting using plain text. -- Sent from my phone. Please excuse my brevity. On February 1, 2018 6:50:42 AM PST, "Sariya, Sanjeev" wrote: >I'm working on linux server: >Linux 4.9.0-4-amd64 #1 SMP Debian 4.9.51-1 (2017-09-28) x86_64 >G

Re: [R] Error while working with png output on linux server

2018-02-01 Thread Jeff Newmiller
, February 01, 2018 10:57 AM >To: Sariya, Sanjeev >Cc: Jeff Newmiller ; r-help@r-project.org >Subject: Re: [R] Error while working with png output on linux server > >Dear Sanjeev, > >It seems that you system neither supports X11 devices nor cairo >devices. See http://lmgtfy.com/

Re: [R] Data Table Merge Help

2018-02-01 Thread Jeff Newmiller
I rarely use data.table, but I think the vignette for the package discusses rolling joins. Also, Google popped up [1]. [1] https://www.r-bloggers.com/understanding-data-table-rolling-joins/ -- Sent from my phone. Please excuse my brevity. On February 1, 2018 9:45:53 AM PST, "Graeve, Nick" wr

Re: [R] Updating Rcpp package when it is claimed by dplyr

2018-02-01 Thread Jeff Newmiller
Your last statement is extremely unlikely to be true. The dplyr package should not be present in a vanilla environment, so there should be no such conflict. -- Sent from my phone. Please excuse my brevity. On February 1, 2018 11:00:01 PM PST, Patrick Connolly wrote: >When i tried to install

Re: [R] Updating Rcpp package when it is claimed by dplyr

2018-02-02 Thread Jeff Newmiller
ne >yesterday. Why it didn't work yesterday is a mystery. > >I've had a few other things behaving strangely on this machine so >there might be an OS issue, not an R issue. > >Thanks for taking the time. > >Patrick > >|> >|> -pd >|> >|&g

Re: [R] copy/paste of large amount of code to terminal leads to scrambled/missing characters

2018-02-03 Thread Jeff Newmiller
This sounds like a problem with your editor or the OS clipboard support rather than R. You might get a response here, but R-sig-mac seems more appropriate to me for such discussion. -- Sent from my phone. Please excuse my brevity. On February 3, 2018 4:23:54 PM PST, Martin Batholdy via R-help

Re: [R] rJava garbage collect

2018-02-05 Thread Jeff Newmiller
rJava offers a mechanism to call arbitrary methods in Java. Wouldn't you use that mechanism to call whatever you would call if you were programming in Java (e.g. System.gc)? -- Sent from my phone. Please excuse my brevity. On February 5, 2018 7:34:17 PM PST, Benjamin Tyner wrote: >Hi > >Does

Re: [R] gdistance::shortestPath throws error "not a symmetric matrix"

2018-02-06 Thread Jeff Newmiller
It is really hard to help you fix a function usage error if you don't show us how you used the function. [1][2][3] As for helping a customer by asking for help on the wrong list... you are not an expert on the topic, and are asking a group that might or might not know the theory behind your que

Re: [R] Aggregate behaviour inconsistent (?) when FUN=table

2018-02-06 Thread Jeff Newmiller
The normal input to a factory that builds cars is car parts. Feeding whole trucks into such a factory is likely to yield odd-looking results. Both aggregate and table do similar kinds of things, but yield differently constructed outputs. The output of the table function is not well-suited to be

Re: [R] please help me a little

2018-02-09 Thread Jeff Newmiller
I don't use coxphf, but it is generally a bad idea to reference variables via multiple environments (e.g. global and the data= argument in this case) directly from within a formula. Just use FAM138A.chr wherever you have used test[,6] and it should work. -- Sent from my phone. Please excuse my

Re: [R] Using gutenbergr with a firewall

2018-02-13 Thread Jeff Newmiller
Saying "a firewall" is like saying "a weapon". Some firewalls are much more strict than others, and yours may be different than any someone here might have encountered. You might also be having trouble with anti virus software. -- Sent from my phone. Please excuse my brevity. On February 13, 20

Re: [R] long vectors not supported yet

2018-02-14 Thread Jeff Newmiller
This looks to me like a package development issue... which may be under discussion in R-sig-geo (search the archives), but more likely to be appropriate to discuss with the maintainer by email or through their development repository (R-forge, though it looks unused). -- Sent from my phone. Plea

Re: [R] using cat to log to file with sapply

2018-02-14 Thread Jeff Newmiller
Your call to catf in testit is after the return, so it is never called. FWIW my antibugging strategy (and readability strategy) is to never use the return function... I structure my logic to end up at the end with my desired function result in a variable and I simply put that variable on the l

Re: [R] long vectors not supported yet

2018-02-15 Thread Jeff Newmiller
M PST, Loris Bennett wrote: >Hi Jeff, > >Jeff Newmiller writes: > >>> Hi, >>> >>> I am running R 3.3.3 and getting the following error: >>> >>> Error in add_edges(res, edges = t(as.matrix(el[, 1:2])), attr = >weight) >>> : &g

  1   2   3   4   5   6   7   8   9   10   >