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

Re: [R] How to Save the residuals of an LM object greater or less than a certin value to an R object?

2018-02-22 Thread Jeff Newmiller
Residuals are stored as a numeric vector. The R software comes with a document "Introduction to R" that discusses basic math functions and logical operators that can create logical vectors: abs( stdresiduals ) > 2.5 It also discusses indexing using logical vectors: stdresiduals[ abs( stdresidu

Re: [R] Regression Tree Questions

2018-02-24 Thread Jeff Newmiller
As Bert implies, you may be getting ahead of yourself. An 8 may be a number, or it may be the character 8, or it could be a factor, and you don't seem to know the difference yet (thus suggesting tutorials). If you go to the trouble of making a reproducible example [1][2][3] then you may find the

Re: [R] include

2018-02-25 Thread Jeff Newmiller
Jim has been exceedingly patient (and may well continue to be so), but this smells like "failure to launch". At what point will you start showing your (failed) attempts at solving your own problems so we can help you work on your specific weaknesses and become self-sufficient? -- Sent from my p

Re: [R] Precision in R

2018-02-26 Thread Jeff Newmiller
//cs.stackexchange.com/search?q=ieee+754 --- Jeff NewmillerThe . . Go Live... DCN:Basics: ##.#. ##.#. Live Go... Live: OO#.. Dead: OO#.. Playing Research

Re: [R] Random Seed Location

2018-02-26 Thread Jeff Newmiller
I am willing to go out on that limb and say the answer to the OP question is yes, the RN sequence in R should be reproducible. I agree though that it doesn't look like he is actually taking care not to run code that would disturb the generator. -- Sent from my phone. Please excuse my brevity.

Re: [R] Script file bug

2018-03-01 Thread Jeff Newmiller
-mac mailing list. b) I don't see this behavior on R3.4.3 on Windows. c) Are you perhaps using lattice or ggplot graphs, and are unfamiliar with R FAQ 7.16 or 7.22? --- Jeff Newmiller

Re: [R] how to make row.names based on column1 with duplicated values

2018-03-01 Thread Jeff Newmiller
s stored in `dta`, then you can do rownames( dta ) <- make.names( dta$gene, unique = TRUE, sep="-" ) --- Jeff NewmillerThe . . Go Live... DCN:Basics: ##.#. ##.#. Live Go...

Re: [R] Script file bug

2018-03-01 Thread Jeff Newmiller
acter in the Chinese. The >R.app won’t display any error messages. > >ಥ_ಥ > >> 在 2018年3月1日,16:04,Jeff Newmiller 写道: >> >>> On Thu, 1 Mar 2018, zn l wrote: >>> >>> Hi? >>> There is a bug in R 3.4.3(kite-eating tree) in mac os x 10.13.

Re: [R] Words near one another.

2018-03-01 Thread Jeff Newmiller
Problem is not that your question is obvious, but that it is not clear what you want. However, you should be aware that R is a powerful programing language in which almost any algorithm you can find can be implemented. If you don't find answers when you Google or read the Text analysis Task Vi

Re: [R] Desktop.ini hiddeln file creates during compilaiton

2018-03-02 Thread Jeff Newmiller
Make a reproducible example [1][2][3], because it doesn't happen for me. Then post your example at [4] or [5], because this is the wrong list for this question. You may find that the act of browsing the directory using a GUI is what creates that file rather than the compilation itself. [1] h

Re: [R] Help with apply and new column?

2018-03-05 Thread Jeff Newmiller
Read the Posting Guide... (see message footer) ... some relevant things you can find there: a) Yes, this appears to be about how to use an R base function so it is on topic b) Post a reproducible example (include some sample data, preferably using the dput function) c) Post using plain text so t

Re: [R] Help with apply and new column?

2018-03-05 Thread Jeff Newmiller
t;:" ) # gets the whole column splits at once # wildly guessing here rs_chrmatrix <- do.call( rbind, temp ) rs_DF <- as.data.frame( rs_chrmatrix, stringsAsFactors = FALSE ) names( rs_DF ) <- c( "CHR", "P", "X1", "X2" ) rs_DF$P <- as.integer( rs_DF$P ) str( rs_DF ) ##

Re: [R] package installation

2018-03-06 Thread Jeff Newmiller
There is the directory that the compressed file gets downloaded (Temp), and there is another directory where the the extracted files are "installed" ("library"). You can read all about this in the "R Administration and Installation Manual" that comes with R. The message about the download direct

Re: [R] Problems update version

2018-03-07 Thread Jeff Newmiller
Ubuntu standard distro is normally quite old. Read and perform the steps described at https://cran.r-project.org/bin/linux/ubuntu/ -- Sent from my phone. Please excuse my brevity. On March 6, 2018 8:15:03 PM PST, carlos alfredo barron gallardo wrote: >Hello. >I'm trying to install bioconductor

Re: [R] add single points to a level plot

2018-03-08 Thread Jeff Newmiller
library(sos) findFn( "layer" ) findFn( "levelplot" ) Also, experts in spatial analysis tend to answer questions on the special mailing list where the Posting Guide says they should. Read it to find out where that is. -- Sent from my phone. Please excuse my brevity. On March 8, 2018 7:11:34 AM

Re: [R] Package gamlss used inside foreach() and %dopar% fails to find an object

2018-03-09 Thread Jeff Newmiller
If the code you are running in parallel is complicated, maybe foreach is not sophisticated enough to find all the variables you refer to. Maybe use parallel::clusterExport yourself? But be a aware that passing parameters is much safer than directly accessing globals in parallel processing, so th

Re: [R] subsetting comparison problem

2018-03-11 Thread Jeff Newmiller
column , 1 # by rows , max ) ) result # show key pairings only result[ as.logical( result$IN ), c( "U", "R" ) ] ## --

Re: [R] Empirical density estimation

2018-03-11 Thread Jeff Newmiller
___ 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, reproducible code. ---

Re: [R] Equivalent of gtools::mixedsort in R base

2018-03-11 Thread Jeff Newmiller
producible 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/posting-gui

Re: [R] Understanding TS objects

2018-03-13 Thread Jeff Newmiller
ata.ts, "periodic") : > series is not periodic or has less than two periods. > >So am I missing a parameter or is there a more general/proper way to >create a time series object? First time I've run into this problem . I >ca

Re: [R] Warning for LC_CTYPE when R is ran through ssh

2018-03-14 Thread Jeff Newmiller
I don't think that warning is originating from R... LC_TYPE is an environment variable that the standard C library pays attention to, so could be either ssh on your local computer or ssh on the remote computer in response to something the local ssh is doing. IMO this question belongs in a forum

Re: [R] Fwd: Learning advanced R

2018-03-14 Thread Jeff Newmiller
I recommend reading it directly via the website, or buying the book. If you are trying to build a PDF, then the "obvious" question is whether you have LaTeX installed, which is an operating-system-dependent procedure handled outside of R. -- Sent from my phone. Please excuse my brevity. On Ma

Re: [R] Fwd: Learning advanced R

2018-03-14 Thread Jeff Newmiller
ggest that that the website is a complete rendering of the book and the for-sale version makes a worthwhile contribution to the author and the community. -- Sent from my phone. Please excuse my brevity. On March 14, 2018 9:58:38 AM PDT, Albrecht Kauffmann wrote: >Dear Jeff, > >

Re: [R] R project global options file

2018-03-17 Thread Jeff Newmiller
Alternatively refer to the R Installation and Administration manual, which discusses the various user and site configuration files. There may be a Windows registry entry also. -- Sent from my phone. Please excuse my brevity. On March 17, 2018 11:09:48 AM PDT, David Winsemius wrote: > >> On M

Re: [R] help needed on RcppEigen....

2018-03-19 Thread Jeff Newmiller
For loops are not usually the primary cause of slow processing in R... poor memory handling is. But the closest you seem to come to asking a question in your email seems to be about Rcpp, which is off topic on this mailing list. Try reading all of the Rcpp vignettes, and then if needed ask on

Re: [R] problem with rJAVA

2018-03-20 Thread Jeff Newmiller
Are you familiar with the sessionInfo function? -- Sent from my phone. Please excuse my brevity. On March 20, 2018 6:27:23 PM PDT, "Sorkin, John" wrote: >I have installed rJava into my Windows 10 (64-bit) R instillation using >the Tools > Install Packages command of my RStudion IDE. When I iss

Re: [R] Sum of columns of a data frame equal to NA when all the elements are NA

2018-03-21 Thread Jeff Newmiller
What do you mean by "should not"? NULL means "missing object" in R. The result of the sum function is always expected to be numeric... so NA_real or NA_integer could make sense as possible return values. But you cannot compute on NULL so no, that doesn't work. See the note under the "Value" se

Re: [R] Sum of columns of a data frame equal to NA when all the elements are NA

2018-03-22 Thread Jeff Newmiller
gt;> > >> >> On 21 Mar 2018, at 18:05 , Boris Steipe >> wrote: >> >> >> >> Surely the result of summation of non-existent values is not >defined, >> is it not? And since the NA values have been _removed_, there's >nothing >> left to s

Re: [R] GlobalEnv error

2018-03-22 Thread Jeff Newmiller
Error messages are useful, but without knowing what you did during your session it is hard to look more closely. It would also be helpful to see the output of the sessioInfo function, and the contents of your .Rprofile file in your home directory. Read the Posting Guide, which cautions you that

Re: [R] Get Specific Records from Another DataFrame

2018-03-24 Thread Jeff Newmiller
I suggest that you read the vignette for the data table package. That package uses some odd syntax compared to base R but has some features designed especially for these kinds of problems. -- Sent from my phone. Please excuse my brevity. On March 24, 2018 5:03:44 PM PDT, M Can wrote: >Hello >

Re: [R] Limit in Directory Hierarchy?

2018-03-25 Thread Jeff Newmiller
This is the wrong place to ask what RStudio can or cannot do. However, if your question is about R you should try invoking your reproducible example in RGui or the command line R.exe before posting here. R has no directory depth limit. There is an operating system limit on returning paths more

Re: [R] unable to move temporary installation of package

2018-03-26 Thread Jeff Newmiller
A) Don't try to "move" packages from one library (=directory of installed packages) to another. B) Although R Open is very close to CRAN R, it has some differences that you REALLY NEED TO READ about at their website. Pay particular attention to the checkpoint feature in this case. Note that tr

Re: [R] unable to move temporary installation of package

2018-03-26 Thread Jeff Newmiller
PM PDT, Paul Lantos wrote: >Thanks Jeff, > >So I initially when I got the computer moved my old packages into the >new directory rather than downloading and installing them again. That >was fine. I then just did a test to see if I could write in the folder >and indeed I can. Ju

Re: [R] unable to move temporary installation of package

2018-03-27 Thread Jeff Newmiller
-25 21:23:45 2018-03-25 21:23:08 2018-03-25 21:23:45 exe C:/Users/pl39/Documents/R/win-library/3.4 no C:/Program Files/R/R-3.4.4/library no -Original Message- From: Jeff Newmiller [mailto:jdnew...@dcn.davis.ca.us] Sent: Tuesday, March 27, 2018 1

Re: [R] Using R and the Tidyverse for an economic model

2018-03-27 Thread Jeff Newmiller
/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 Newmiller

Re: [R] unable to move temporary installation of package

2018-03-27 Thread Jeff Newmiller
I get the same error if I try and install packages to my documents, my desktop, wherever, so I sort of doubt that would fix the problem. Paul -Original Message- From: Jeff Newmiller [mailto:jdnew...@dcn.davis.ca.us] Sent: Tuesday, March 27, 2018 1:14 PM To: Paul Lantos Cc: r-help@r-pr

Re: [R] unable to move temporary installation of package

2018-03-27 Thread Jeff Newmiller
ted library. > >-Original Message- >From: Jeff Newmiller [mailto:jdnew...@dcn.davis.ca.us] >Sent: Tuesday, March 27, 2018 2:26 PM >To: Paul Lantos >Cc: r-help@r-project.org >Subject: RE: [R] unable to move temporary installation of package > >Do you have other instances of

Re: [R] R and Java 10 ➜ rJava not able to build

2018-03-27 Thread Jeff Newmiller
I am not a Mac user, but I do use Linux and I would recommend not running R with sudo unless you are an admin ninja. That defensive practice would render the answer to your question moot. It is possible that your problem may have started with inappropriate use of sudo in configuring java, but c

Re: [R] can not install package "matie"

2018-03-28 Thread Jeff Newmiller
Varin In the teaching you to fish department, you can find those dependencies Duncan appeared to pull out of thin air by looking at the CRAN contributed packages web pages, which can easily be found with Google. Start at the matie page and follow the dependency links and look at dependencies. I

Re: [R] Problem with my function using as.POSIXct

2018-03-28 Thread Jeff Newmiller
You have succeeded, but you just don't know it. The POSIXct object is representing that instant of time internally... you are just complaining about how it is printing it. So convert it to character explicitly with the desired format when you want to print it. as.character( my.bastimeToSynoptic

Re: [R] getting all circular arrangements without accounting for order

2018-03-29 Thread Jeff Newmiller
ide.html and provide commented, minimal, self-contained, reproducible code. --- Jeff NewmillerThe . . Go Live... DCN:Basics: ##.#.

Re: [R] getting all circular arrangements without accounting for order

2018-03-30 Thread Jeff Newmiller
;- rep( ix[ , 1L ], each = jxrows ) result[ , n1 ] <- rep( ix[ , 2L ], each = jxrows ) result } On Fri, 30 Mar 2018, Ranjan Maitra wrote: Jeff, I wanted to let you know that your function is faster than generating the directional circular permutations and weeding. Here is the time for n

Re: [R] Obtain gradient at multiple values for exponetial decay model

2018-04-05 Thread Jeff Newmiller
This smells like homework, which the Posting Guide indicates is off topic. I am not aware of "the function" that will solve this, but if you know what a gradient is analytically then you should be able to put together a solution very similar to the code you already have with the addition of usin

Re: [R] Obtain gradient at multiple values for exponetial decay model

2018-04-05 Thread Jeff Newmiller
wrote: >> Sent: Thursday, April 05, 2018 at 4:40 PM >> From: "Jeff Newmiller" >> >> the coef function. >> > >For the benefit of other novices, used the following command to read >the documentation: > >?coef > >Then tried and obtained: &g

Re: [R] Obtain gradient at multiple values for exponential decay model

2018-04-06 Thread Jeff Newmiller
You did not try my suggestion. You tried David's, which has a leftover mistake from your guesses about what the argument to coef should be. -- Sent from my phone. Please excuse my brevity. On April 6, 2018 3:30:10 AM PDT, g l wrote: >> Sent: Friday, April 06, 2018 at 4:53 AM >

Re: [R] Fast tau-estimator line does not appear on the plot

2018-04-06 Thread Jeff Newmiller
e http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the pos

Re: [R] Obtain gradient at multiple values for exponential decay model

2018-04-06 Thread Jeff Newmiller
___ 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, reproducible code. --

Re: [R] Doubt_merging data

2018-04-08 Thread Jeff Newmiller
I don't see how anyone can help you if you don't provide the input data (or a fake version of the data) you are using. On April 8, 2018 3:47:55 PM PDT, Lara Dutra Silva wrote: >Hello, > >I gather data from 5 objects and 5 data. frames and would like to join >information. > >join: pb_SM + pb_

Re: [R] Fail to save an object using name as string

2018-04-09 Thread Jeff Newmiller
Have you ever noticed that when you run x <- 1:5 y <- 2:6 plot( x, y+1 ) you get the expressions you used in your call to plot on the axis labels? `x` is an expression consisting of a single symbol and y+1 is an expression consisting of the addition operator and two arguments: the symbol x and

Re: [R] Spectral analisys for for R version 3.4.3

2018-04-10 Thread Jeff Newmiller
Please provide a reproducible example of the problem, with sample data. Notes: 1) The Posting Guide points out that this is a plain text mailing list, but does not emphasize how damaged your sent email may be if you fail to set your email program to plain text mode. 2) Technically, 3.4.3 is not

Re: [R] Information about compatibility R

2018-04-11 Thread Jeff Newmiller
The reason people like to pay companies for their commercial or "enterprise" operating system distributions is because the someone you pay can do all the legwork to confirm compatibility. You should be asking your commercial distro provider to render this service. If they deem it too far below t

[R] SparksR

2018-04-13 Thread Jeff Reichman
ay); because I can't image I would ever create a 53 billion record df. I'm starting to acquaint myself with e SparkR package, but I get confuse because it appears df and SparkDtaFrame are use interchangeable. Or maybe not. Looking for a good intro to SparkDataFrame. Jeff Reichma

Re: [R] Efficient way to subset rows in R for dataset with 10^7 columns

2018-04-13 Thread Jeff Newmiller
You have 10^7 columns? That process is bound to be slow. On April 13, 2018 5:31:32 PM PDT, Jack Arnestad wrote: >I have a data.table with dimensions 100 by 10^7. > >When I do > >trainIndex <- > caret::createDataPartition( >df$status, >p = .9, >list = FALSE, >

Re: [R] Efficient way to subset rows in R for dataset with 10^7 columns

2018-04-13 Thread Jeff Newmiller
... but I haven't done real work with such tools. On April 13, 2018 6:31:32 PM PDT, Jack Arnestad wrote: >Yes unfortunately. The goal of the "outer" is to do feature selection >before fitting it to a model. > >Is there a way it could be parallelized? > >Thanks! > &g

Re: [R] Adding a new conditional column to a list of dataframes

2018-04-15 Thread Jeff Newmiller
Your failure to send your question using plain text format means that the mailing list tried to fix that and we are seeing your code all messed up. Please learn how to use your email program... or we may not even be able to figure out your question at all. I think you need to pay attention to

Re: [R] Math kernel library from intel

2018-04-15 Thread Jeff Newmiller
Depends how desperate you are for processing speed and careful you have been with optimizing your own algorithms. The default build of R is IMO quite usable for many people, and without a doubt many complaints about its speed are misdirected and are instead due to poor handling of working memory

Re: [R] Hacked

2018-04-17 Thread Jeff Newmiller
Likely a spammer has joined the mailing list and is auto-replying to posts made to the list. Unlikely that the list itself has been "hacked". Agree that it is obnoxious. On April 17, 2018 5:01:10 AM PDT, Neotropical bat risk assessments wrote: >Hi all, > >Site has been hacked? >Bad SPAM arrivi

Re: [R] Understanding which

2018-04-18 Thread Jeff Newmiller
Look at which(x>100) This is a zero-length vector. The negative of nothing is nothing, not a list of all possible index values. Do you want x[ !( x > 100 ) ] ? On April 18, 2018 6:13:30 AM CDT, Ashim Kapoor wrote: >Dear All, > >Here is a reprex: > >> x<- 1:100 >> x[-which(x>100)] >integer(0

Re: [R] How to replace numeric value in the column contains Text (Factor)?

2018-04-18 Thread Jeff Newmiller
I would recommend that you avoid converting (or letting R convert for you) your textual data values into factors until you have finished doing this kind of modification. You can restore the column to character data type either re-reading it with the stringsAsFactors=FALSE option to read.table/r

Re: [R] Identifying columns with specific character

2018-04-18 Thread Jeff Newmiller
Your message came through all messed up because you did not tell your email program to use plain text format. This at best delays a responds and at worst prevents us from understanding your question as you intended. 1) The columns became factors when you created the data frame because you did n

Re: [R] Problem reading RDS files

2018-04-22 Thread Jeff Newmiller
Wouldn't the obvious problem be that your data file is corrupted or was never created using saveRDS in the first place? Can you show us a complete example of creating and attempting to read what was just created? On April 22, 2018 10:20:05 AM CDT, mohammad moradi wrote: >Hi there, > >I faced

Re: [R] Can't Get Lattice Histogram Minor Tick Marks to Work

2018-04-24 Thread Jeff Newmiller
Per the Posting Guide, why didn't you post the reproducible R code example? On April 24, 2018 8:22:15 PM PDT, Donald Macnaughton wrote: >I'm drawing a paneled histogram using the lattice package. I've >succeeded in >adding minor tick marks to the vertical axis, but I can't get the >desired >numb

Re: [R] how can I convert a long to wide matrix?

2018-05-01 Thread Jeff Newmiller
quot;A", "B"), class = "factor")), .Names = c("ID", "EventDate", "timeGroup", "SITE"), class = "data.frame", row.names = c(NA, -5L)) tmp <- split(dat, dat$ID) tmp1 <- do.call(rbind, lapply(tmp, function(dat){ tb <- table(dat$timeGroup) id

Re: [R] Converting a list to a data frame

2018-05-02 Thread Jeff Newmiller
project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. --- Jeff NewmillerThe . . Go Live... DCN:Basics: ##.#. ##.#. Live Go... Live: OO#.. Dead

Re: [R] Converting a list to a data frame

2018-05-02 Thread Jeff Newmiller
This is very nice to learn about, Denis, but it seems only fair to point out that the result of rbindlist is not a data frame. You can convert it to a data frame easily, but the copy and indexing semantics of data tables are quite different than data tables, which could be a real headache for s

Re: [R] Package for Molecular Properties

2018-05-04 Thread Jeff Newmiller
ml and provide commented, minimal, self-contained, reproducible code. --- Jeff NewmillerThe . . Go Live... DCN:Basics: ##.#. ##.#. Live Go...

[R] Discovering patterns in textual strings

2018-05-04 Thread Jeff Reichman
e to see the following results Abc Abc_1234 Bce Jeff Reichman [[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

Re: [R] Installing required packages with an R package

2018-05-07 Thread Jeff Newmiller
R-package-devel is the better venue, as r-packages is only for announcements. On May 7, 2018 12:17:34 PM PDT, Bert Gunter wrote: >This is better posted on the R-packages mailing list, not here. > >Cheers, >Bert > >Bert Gunter > >"The trouble with having an open mind is that people keep coming alo

Re: [R] Discovering patterns in textual strings

2018-05-07 Thread Jeff Reichman
d; etc. Cheers, Bert Bert Gunter "The trouble with having an open mind is that people keep coming along and sticking things into it." -- Opus (aka Berkeley Breathed in his "Bloom County" comic strip ) On Fri, May 4, 2018 at 9:00 PM, Jeff Reichman mailto:reichm...@s

Re: [R] NAs produced by integer overflow, but only some time ...

2018-05-09 Thread Jeff Newmiller
a) Numeric values may be either integers (signed 32 bit) or double precision (53 bit mantissa). b) Double precision constants are numeric with no decoration (e.g. 61224). Integer constants have an L (e.g. 61224L). c) 61224*61224 > 2^31-1 so that answer cannot fit into an integer. d) Exponentia

Re: [R] NAs produced by integer overflow, but only some time ...

2018-05-09 Thread Jeff Newmiller
When you have cooled down you may notice that the answer to your question was in items a-d, though Bill's use of str made it clearer. Also, there was in fact no call to yules.k1, much less one that includes sample data. You will find that the solution to problems in R are very often related to t

Re: [R] is there any method to defer the execution of code in r?

2018-05-13 Thread Jeff Newmiller
I am puzzled by the use of the term "cross-posted" here... I don't see the OP or their question or any similar words from the question involved the the given link, though that link seems worth bringing it to the OP's attention. But the function given in the question seems to have other problems:

Re: [R] is there any method to defer the execution of code in r?

2018-05-13 Thread Jeff Newmiller
actly the same. > >Rui Barradas > >On 5/13/2018 2:07 PM, Jeff Newmiller wrote: >> I am puzzled by the use of the term "cross-posted" here... I don't >see the OP or their question or any similar words from the question >involved the the given link, though that l

Re: [R] Systemfit

2018-05-15 Thread Jeff Newmiller
... and the mailing list is picky about attachments... whatever you attached did not conform to the stringent requirements mentioned in the Posting Guide. Pasting the code right into the email is usually safest, though you DO have to post using plain text (as the Posting Guide indicates) or your

Re: [R] Exporting to text files

2018-05-18 Thread Jeff Newmiller
?sink On May 18, 2018 9:47:25 AM PDT, Ed Siefker wrote: >I have dose response data analyzed with the package 'drc'. >'summary(mymodel)' prints my kinetic parameters. I want >that text in an ASCII text file. I want to get exactly what I >would get if I copied and pasted from the terminal window.

Re: [R] How to predict time series high-frequency data?

2018-05-19 Thread Jeff Newmiller
Your description does not indicate that you know what theory you want to apply to this data, and this mailing list is the wrong place to discuss which theory you want to apply. However, this sounds perfectly suitable to many time series or data frame based analytical methods. You may need to re

Re: [R] find the permutation function of a sorting

2018-05-22 Thread Jeff Newmiller
Perhaps the question was "what is indexing"? On May 23, 2018 5:06:39 AM GMT+02:00, David Winsemius wrote: > > >> On May 22, 2018, at 10:57 PM, John wrote: >> >> Thanks, David. >> I got the answer from the web. >> Is there any easy way to permute a set (e.g., a set of characters) by >the perm

Re: [R] Change the legend order by order function

2018-05-23 Thread Jeff Newmiller
There are two key concepts you seem to be unaware of regarding ggplot: 1) you really need to put your data in long format to work with multiple curves, and 2) the column containing the names of the curves should be a factor with levels in the order you wish them to be presented in the legend (bo

[R] Grouping by 3 variable and renaming groups

2018-05-26 Thread Jeff Reichman
ALCON I'm trying to figure out how to rename groups in a data frame after groups by selected variabels. I am using the dplyr library to group my data by 3 variables as follows # group by lat (StoreX)/long (StoreY) priceStore <- LapTopSales[,c(4,5,15,16)] priceStore <- priceStore[complete

Re: [R] Grouping by 3 variable and renaming groups

2018-05-26 Thread Jeff Reichman
Rui That did it Jeff -Original Message- From: Rui Barradas Sent: Saturday, May 26, 2018 8:23 AM To: reichm...@sbcglobal.net; 'R-help' Subject: Re: [R] Grouping by 3 variable and renaming groups Hello, See if this is it: priceStore_Grps$StoreID <- paste("St

<    1   2   3   4   5   6   7   8   9   10   >