Re: [R] Noob question re: writing while loops on one line

2015-02-15 Thread Jeff Newmiller
Best not to be pedantic, John, unless you are going to be right. Please read section 10.3.5 in the R Language Definition document. This is R, not C. --- Jeff NewmillerThe . . Go

Re: [R] list of list

2015-02-16 Thread Jeff Newmiller
You have two named objects when your goal is to have one that contains five others. ASL <- vector( "list", 5 ) for (j in 1:5){ ASL[[j]] <- vector( "list", 5 ) for (i in 1:5) { ASL[[j]][[i]] <- i^j } } ---

Re: [R] Numerical stability of eigenvalue and hessian matrix in R

2015-02-18 Thread Jeff Newmiller
r specific problem as such tricks are not R-specific. --- Jeff NewmillerThe . . Go Live... DCN:Basics: ##.#. ##.#. Live Go... Live: OO#.

Re: [R] return named list from foreach

2015-02-20 Thread Jeff Newmiller
not a good name to use. --- Jeff NewmillerThe . . Go Live... DCN:Basics: ##.#. ##.#. Live Go... Live: OO#.. Dead: OO#.. Playing Research En

Re: [R] creating a distinct zip file

2015-02-20 Thread Jeff Newmiller
R CMD INSTALL --build packagename --- Jeff NewmillerThe . . Go Live... DCN:Basics: ##.#. ##.#. Live Go... Live: OO#.. Dead: OO

Re: [R] Replacing 9999 and 999 values with NA

2015-02-20 Thread Jeff Newmiller
posting using plain text (a setting in your email program) so we don't get garbled info from you, and providing a reproducible example. --- Jeff NewmillerThe . . Go Live..

Re: [R] Example of Calling a DLL

2015-02-20 Thread Jeff Newmiller
-visualstudio-and-gcc --- Jeff NewmillerThe . . Go Live... DCN:Basics: ##.#. ##.#. Live Go... Live: OO#.. Dead: OO#.. Playing Research

Re: [R] creating a distinct zip file

2015-02-20 Thread Jeff Newmiller
On Windows it builds a zip file. If you are on Linux, you might [1] need [2]. [1] https://stat.ethz.ch/pipermail/r-help/2005-January/063596.html [2] http://cran.r-project.org/doc/contributed/cross-build.pdf --- Jeff Newmiller

Re: [R] creating a distinct zip file

2015-02-21 Thread Jeff Newmiller
d does not do what you want it to, I am not sure we are speaking of the same kind of file. If we are, then you may not have your system configured correctly. --- Jeff NewmillerThe .

Re: [R] Issue wit Package installation and download.file()

2015-02-22 Thread Jeff Newmiller
This sounds like you should read FAQ 2.19. Next time you post, please read the Posting Guide first. In particular, please use plain text since your HTML-formatted email was messed up on the mailing list. --- Jeff Newmiller

Re: [R] HELP asin transformation

2015-02-22 Thread Jeff Newmiller
This is a math question, not an R question. You cannot give numbers to asin that are less than -1 or greater than 1 and get a defined answer. --- Jeff NewmillerThe . . Go Live... DCN

Re: [R] Error with using windRose function from the open air package

2015-02-23 Thread Jeff Newmiller
cible-example ------- Jeff NewmillerThe . . Go Live... DCN:Basics: ##.#. ##.#. Live Go... Live: OO#.. Dead: OO#.. Playing Research Engineer (So

Re: [R] plotting multiple time series under one panel

2015-02-25 Thread Jeff Newmiller
reproducible-example --- Jeff NewmillerThe . . Go Live... DCN:Basics: ##.#. ##.#. Live Go... Live: OO#.. Dead: OO#.. Playing Research Engineer (Solar/BatteriesO.O#. #

Re: [R] plotting multiple time series under one panel

2015-02-25 Thread Jeff Newmiller
et_wrap function with ggplot. If that tip is not >sufficient, then re-read my previous response to guide you in posting a more >complete question. ------- Jeff NewmillerThe . . Go Live

Re: [R] Processing key_column, begin_date, end_date in R

2015-02-26 Thread Jeff Newmiller
) %>% ungroup %>% select( -gp ) %>% as.data.frame ) --- Jeff NewmillerThe . . Go Live... DCN:Basics: ##.#. ##.#.

Re: [R] covert entire dataset to numeric while persuing percentage values

2015-02-26 Thread Jeff Newmiller
ile into your example so we could troubleshoot your input process better if that is where your problem is. [1] http://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example --- Jeff Newmiller

Re: [R] aggregating variables (sum within groups)

2015-02-26 Thread Jeff Newmiller
. --- Jeff NewmillerThe . . Go Live... DCN:Basics: ##.#. ##.#. Live Go... Live: OO#.. Dead: OO#.. Playing Research Engineer (Solar/BatteriesO.O#. #.O#. with

Re: [R] Summing certain values within columns that satisfy a certain condition

2015-02-26 Thread Jeff Newmiller
col=ncol( dtam ), nrow=nrow( dtam ), byrow=TRUE ) ) --- Jeff NewmillerThe . . Go Live... DCN:Basics: ##.#. ##.#. Live Go... Live: OO#.. Dead: OO#.. Playing Research Engineer (Solar/Batteri

Re: [R] r script in web

2015-02-28 Thread Jeff Newmiller
I cannot see how that would be possible. R must be installed in order to use it. --- Jeff NewmillerThe . . Go Live... DCN:Basics: ##.#. ##.#. Live Go

Re: [R] figure resolution

2015-03-01 Thread Jeff Newmiller
roject.org/posting-guide.html [2] http://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example --- Jeff NewmillerThe . . Go Live... DCN:

Re: [R] Looping and break

2015-03-02 Thread Jeff Newmiller
ys to accomplish the kinds of things you might want to accomplish without them, and those alternatives often don't involve explicit loops at all. --- Jeff NewmillerThe . . Go L

Re: [R] Looping and break

2015-03-02 Thread Jeff Newmiller
Sigh. To be positive is to be wrong at the top of one's lungs. Next I will be told R has a goto statement. --- Jeff NewmillerThe . . Go Live... DCN:B

Re: [R] How to speed up a double loop?

2015-03-03 Thread Jeff Newmiller
. --- Jeff NewmillerThe . . Go Live... DCN:Basics: ##.#. ##.#. Live Go... Live: OO#.. Dead: OO#.. Playing Research Engineer (Solar/BatteriesO.O#. #.O#. with /Software/Embedded

Re: [R] table

2015-03-03 Thread Jeff Newmiller
I suspect that the tabular function in the tables package would handle this task. --- Jeff NewmillerThe . . Go Live... DCN:Basics: ##.#. ##.#. Live Go

Re: [R] Using a text file as a removeWord dictionary in tm_map

2015-03-03 Thread Jeff Newmiller
text where spaces are present. ------- Jeff NewmillerThe . . Go Live... DCN:Basics: ##.#. ##.#. Live Go... Live: OO#.. Dead: OO#.. Pl

Re: [R] help with RODBC

2015-03-04 Thread Jeff Newmiller
Why do you have single quotes inside your single quotes? --- Jeff NewmillerThe . . Go Live... DCN:Basics: ##.#. ##.#. Live Go

Re: [R] Find the name of the package with called the function

2015-03-05 Thread Jeff Newmiller
o call. If you need to manipulate an object, use some form of method dispatching (I like S3, but you have alternatives) on an object you pass in. --- Jeff NewmillerThe . . Go L

Re: [R] R 3.1.2 using a custom function in aggregate() function on Windows 7 OS 64bit

2015-03-05 Thread Jeff Newmiller
# so don't use cbind when making a data frame library( dplyr ) result <- dat %>% group_by( g ) %>% do( answer = d_rule( . ) ) %>% as.data.frame --- Jeff Newmiller

Re: [R] help with RODBC

2015-03-05 Thread Jeff Newmiller
is on topic... R-sig-db. ------- Jeff NewmillerThe . . Go Live... DCN:Basics: ##.#. ##.#. Live Go... Live: OO#.. Dead: OO#.. Playing Research Engineer (Solar/BatteriesO.O#.

Re: [R] R 3.1.2 using a custom function in aggregate() function on Windows 7 OS 64bit

2015-03-05 Thread Jeff Newmiller
is certainly not wisdom." >Clifford Stoll > > > > >On Thu, Mar 5, 2015 at 7:54 AM, Jeff Newmiller > wrote: >> The aggregate function applies FUN to vectors, not data frames. For >example, the default "mean" function accepts a vector such as a column >

Re: [R] R 3.1.2 using a custom function in aggregate() function on Windows 7 OS 64bit

2015-03-05 Thread Jeff Newmiller
n't use "aggregate" very often. ------- Jeff NewmillerThe . . Go Live... DCN:Basics: ##.#. ##.#. Live Go... Live: OO#.. Dead: OO#.

Re: [R] How to see a R function's code

2015-03-07 Thread Jeff Newmiller
location of your choice and dig in. --- Jeff NewmillerThe . . Go Live... DCN:Basics: ##.#. ##.#. Live Go... Live: OO#.. Dead: OO

Re: [R] Merge List element by name

2015-03-07 Thread Jeff Newmiller
/questions/5963269/how-to-make-a-great-r-reproducible-example --- Jeff NewmillerThe . . Go Live... DCN:Basics: ##.#. ##.#. Live Go

Re: [R] Rstudio R-devel libR.so

2015-03-09 Thread Jeff Newmiller
Please read the Posting Guide. Unreleased versions of R are off-topic in this mailing list (see the R-devel mailing list). RStudio-specific questions are also off-topic here (should be about R, not IDEs). --- Jeff Newmiller

Re: [R] calculate value in dependence of target value

2015-03-09 Thread Jeff Newmiller
//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 . . Go

Re: [R] Alpha not working in geom_rect

2015-03-09 Thread Jeff Newmiller
e this problem. --- Jeff NewmillerThe . . Go Live... DCN:Basics: ##.#. ##.#. Live Go... Live: OO#.. Dead: OO#.. Playing Research Engineer (Solar/BatteriesO.O#.

Re: [R] problem applying the same function twice

2015-03-10 Thread Jeff Newmiller
uncompelling, though. Of the information necessary to draw valid conclusions is absent, the results you obtain by doing so is going to be questionable at best. --- Jeff NewmillerThe . . Go

Re: [R] .Rprofile vs. First (more of an opinion question)

2015-03-10 Thread Jeff Newmiller
optional in my workflow because I always have R code that can regenerate them. .Rprofile files offer consistency of behavior regardless of which working directory you use, and you can comment them. --- Jeff Newmiller

Re: [R] R-studio stalls in arulesSequences

2015-03-11 Thread Jeff Newmiller
. --- Jeff NewmillerThe . . Go Live... DCN:Basics: ##.#. ##.#. Live Go... Live: OO#.. Dead: OO#.. Playing Research Engineer (Solar/BatteriesO.O#. #.O

Re: [R] .Rdata files -- fortune?

2015-03-12 Thread Jeff Newmiller
I was positive I knew WTF I was doing until you set me straight, Rolf. ;-) --- Jeff NewmillerThe . . Go Live... DCN:Basics: ##.#. ##.#. Live Go

Re: [R] R match - could be improved ?

2015-03-15 Thread Jeff Newmiller
seq(950L, 1000L) myvector5 <- match(myvector4, myvector3) I think the as.list is working because match is internally converting to character and comparing that... which makes the as.list solution rather inefficient art best.

Re: [R] Prevent line truncation in system2() output

2015-03-15 Thread Jeff Newmiller
You don't say which operating system you are using, but this sounds like it could easily be affected by your OS (even of in this case it isn't). My suggestion would be to use a temporary file. --- Jeff

Re: [R] xlims of box() function

2015-03-15 Thread Jeff Newmiller
This is nonsense. Please provide a reproducible example. --- Jeff NewmillerThe . . Go Live... DCN:Basics: ##.#. ##.#. Live Go

Re: [R] Plotting straight line

2015-03-15 Thread Jeff Newmiller
ou from scratch. --- Jeff NewmillerThe . . Go Live... DCN:Basics: ##.#. ##.#. Live Go... Live: OO#.. Dead: OO#.. Playing Research Engineer (

Re: [R] Add the Gauss curve on histogram

2015-03-16 Thread Jeff Newmiller
Not reproducible (sample data missing). http://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example --- Jeff NewmillerThe . . Go Live... DCN:Basics

Re: [R] Returning to parent function

2015-03-17 Thread Jeff Newmiller
Perhaps read ?try --- Jeff NewmillerThe . . Go Live... DCN:Basics: ##.#. ##.#. Live Go... Live: OO#.. Dead: OO#.. Playing

Re: [R] An easy question on package building/installation

2015-03-18 Thread Jeff Newmiller
topic here, but there is a button/menu item that will execute these commands for you in the GUI of that program. --- Jeff NewmillerThe . . Go Live... DCN:Basics: ##.#. #

Re: [R] Joining two datasets - recursive procedure?

2015-03-18 Thread Jeff Newmiller
producible-example --- Jeff NewmillerThe . . Go Live... DCN:Basics: ##.#. ##.#. Live Go... Live: OO#.. Dead: OO#.. Playing Researc

Re: [R] RSQLite will not install in R 2.15.0

2015-03-21 Thread Jeff Newmiller
. --- Jeff NewmillerThe . . Go Live... DCN:Basics: ##.#. ##.#. Live Go... Live: OO#.. Dead: OO#.. Playing Research Engineer (Solar/BatteriesO.O

Re: [R] My R stopped working

2015-03-22 Thread Jeff Newmiller
de by the time it gets to us. --- Jeff NewmillerThe . . Go Live... DCN:Basics: ##.#. ##.#. Live Go... Live: OO#.. Dead: OO#.. Pl

Re: [R] ggplot2 Error : cannot allocate vector of size 1.9 Gb

2015-03-24 Thread Jeff Newmiller
Upgrade your copy of R to the latest. --- Jeff NewmillerThe . . Go Live... DCN:Basics: ##.#. ##.#. Live Go... Live: OO#.. Dead

Re: [R] ggplot2 Error : cannot allocate vector of size 1.9 Gb

2015-03-24 Thread Jeff Newmiller
is corrupted because you are posting using HTML format email rather than plain text as the Posting Guide tells you to. --- Jeff NewmillerThe . . Go Live... DCN:Basics

Re: [R] ggplot2 Error : cannot allocate vector of size 1.9 Gb

2015-03-24 Thread Jeff Newmiller
Another thought... if you have a ".RData" file in your working directory, you might want to delete or rename it. --- Jeff NewmillerThe . . Go Live... DCN:

Re: [R] facets work in qplot but facet_wrap produces an error in ggplot

2015-03-24 Thread Jeff Newmiller
) <- c( "chrom", "start.pos", "end.pos", "hets", "het_stat", "homs", "hom_stat", "indiv" ) --- Jeff NewmillerT

Re: [R] facets work in qplot but facet_wrap produces an error in ggplot

2015-03-25 Thread Jeff Newmiller
Perhaps you had forgotten to use header=TRUE when you read the data in. --- Jeff NewmillerThe . . Go Live... DCN:Basics: ##.#. ##.#. Live Go

Re: [R] Graph with ggplot2.

2015-03-25 Thread Jeff Newmiller
It is difficult to read your code because the HTML format messes it up, but I think your ggplot function call is missing a parenthesis between fill=Prostate and the + sign. --- Jeff NewmillerThe

Re: [R] Converting charter string to vector of numbers

2015-03-25 Thread Jeff Newmiller
hood. --- Jeff NewmillerThe . . Go Live... DCN:Basics: ##.#. ##.#. Live Go... Live: OO#.. Dead: OO#.. Playing Research Engineer (Solar/BatteriesO.O#. #.O#. with /Software/Emb

Re: [R] y axis in a stacked bar plot

2015-03-25 Thread Jeff Newmiller
I don't understand what you expect. Stacked bar charts add the values together. Perhaps that is not really how you want to represent these data? --- Jeff NewmillerThe . . Go

Re: [R] basic help with as.Date()

2015-03-26 Thread Jeff Newmiller
%y') And why in the world are you converting to factor and back? Perhaps because you are not preventing conversion to factor when you read in your actual data? Do you know about the stringsAsFactors argument to read.table and friends? ---

Re: [R] cannot load midasr package

2015-03-28 Thread Jeff Newmiller
Have you read the error message? Can you load the other packages being complained about? Have you read and considered using the information supplied by "?maintainer" ? --- Jeff Newmiller

Re: [R] Help with POSIX

2015-03-30 Thread Jeff Newmiller
use your email program so you don't send us garbage to guess at. --- Jeff NewmillerThe . . Go Live... DCN:Basics: ##.#. ##.#. Live Go...

Re: [R] Multiple Plots using ggplot

2015-03-30 Thread Jeff Newmiller
--- Jeff NewmillerThe . . Go Live... DCN:Basics: ##.#. ##.#. Live Go... Live: OO#.. Dead: OO#.. Playing Research Engineer (Solar

Re: [R] Multiple Plots using ggplot

2015-03-31 Thread Jeff Newmiller
ollowed my other advice. --- Jeff NewmillerThe . . Go Live... DCN:Basics: ##.#. ##.#. Live Go... Live: OO#.. Dead: OO#.. Playing R

Re: [R] Using matlab code in R

2015-03-31 Thread Jeff Newmiller
The Posting Guide recommends searching the archives before posting. Consider [1] and learn. [1] https://stat.ethz.ch/pipermail/r-help/2007-March/127981.html --- Jeff NewmillerThe

Re: [R] Kruskal-Wallace power calculations.

2015-04-02 Thread Jeff Newmiller
Please stop... you are acting like a broken record, and are also posting in HTML format. Please read the Posting Guide and demonstrate that you have used a search engine on this topic before posting again. --- Jeff Newmiller

Re: [R] open xlsx file using read.xls function of gdata package

2015-04-03 Thread Jeff Newmiller
when it comes to Excel data. In most cases I just export the data to CSV and avoid the issue. --- Jeff NewmillerThe . . Go Live... DCN:Basics: ##.#. ##.#. Live Go

Re: [R] command help

2015-04-03 Thread Jeff Newmiller
your request using R do we can understand you. --- Jeff NewmillerThe . . Go Live... DCN:Basics: ##.#. ##.#. Live Go... Live: OO

Re: [R] Aggregating daily rainfall raster data to bimontly data

2015-04-05 Thread Jeff Newmiller
Please stop posting using HTML (as the Posting Guide warns you), and follow John Kane's advice. Your reply below is not helping us understand as well as you seem to think it should. --- Jeff Newm

Re: [R] problem in search function

2015-04-06 Thread Jeff Newmiller
. --- Jeff NewmillerThe . . Go Live... DCN:Basics: ##.#. ##.#. Live Go... Live: OO#.. Dead: OO#.. Playing Research Engineer (Solar/BatteriesO.O

Re: [R] Fast multiple match function

2015-04-07 Thread Jeff Newmiller
You might find the data.table package helpful. It uses an index sorted with a radix sort and minimizes moving the data around in memory. --- Jeff NewmillerThe . . Go Live... DCN

Re: [R] Windows Installation Without Third-Party Packages

2015-04-09 Thread Jeff Newmiller
ince users should normally be updating their personal libraries which will take precedence over the system-wide library. --- Jeff NewmillerThe . . Go Live... DCN:

Re: [R] Cannot run install binary package on Windows 8

2015-04-11 Thread Jeff Newmiller
. --- Jeff NewmillerThe . . Go Live... DCN:Basics: ##.#. ##.#. Live Go... Live: OO#.. Dead: OO#.. Playing Research Engineer (Solar/BatteriesO.O#. #.O

Re: [R] Obfuscate AES password

2015-04-12 Thread Jeff Newmiller
obfuscating a password is worse than leaving it plain, because that would be misleading the user about how securely the password is being managed. --- Jeff NewmillerThe . . Go Live... DCN

Re: [R] Obfuscate AES password

2015-04-12 Thread Jeff Newmiller
have specific questions that you can supply reproducible examples for then R-devel or one of the OS-specific R mailing lists would be more appropriate than this list. --- Jeff NewmillerThe

Re: [R] R studio installation

2015-04-14 Thread Jeff Newmiller
have better answers. --- Jeff NewmillerThe . . Go Live... DCN:Basics: ##.#. ##.#. Live Go... Live: OO#.. Dead: OO#.. Playing Research Engineer (Solar/BatteriesO.O#. #.O#. wit

Re: [R] Using Markov Regime Switching Model to Forecast

2015-04-14 Thread Jeff Newmiller
Perhaps you should learn to use Google? It came up easily there for me. There is also an R package called "sos" that can help you find capabilities among the thousands of contributed packages on CRAN. --- Jeff

Re: [R] Running R Remotely on LINUX

2015-04-14 Thread Jeff Newmiller
eap. Note that while you can set up Windows servers in the cloud, they are not as well suited to this remote use as Linux servers are, so it is worth the effort to learn enough to do that. --- Jeff Newmiller

Re: [R] Extracting unique entries by a column

2015-04-14 Thread Jeff Newmiller
In the same way they would be different in any programming language. See R FAQ 7.31. --- Jeff NewmillerThe . . Go Live... DCN:Basics: ##.#. ##.#. Live Go

Re: [R] (no subject)

2015-04-14 Thread Jeff Newmiller
successfully, and if you make your example reproducible [1]. [1] http://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example --- Jeff NewmillerThe . . Go Live... DCN

Re: [R] adding a bravais pearson test to spplot

2015-04-15 Thread Jeff Newmiller
ic of your question is probably best addressed on the R-sig-geo mailing list. It looks nontrivial to me, but there might be a canned solution out there. --- Jeff NewmillerThe . . Go

Re: [R] adding a bravais pearson test to spplot

2015-04-15 Thread Jeff Newmiller
le-example --- Jeff NewmillerThe . . Go Live... DCN:Basics: ##.#. ##.#. Live Go... Live: OO#.. Dead: OO#.. Playing Research Engineer (Solar/Batteries

Re: [R] Question with uniroot function

2015-04-15 Thread Jeff Newmiller
You really need to read the help page for uniroot. The sign needs to be different at the ends of the starting interval. This is a typical limitation of numerical root finders. --- Jeff NewmillerThe

Re: [R] melt function chooses wrong id variable with large datasets

2015-04-16 Thread Jeff Newmiller
Maybe what you really want is the ?stack function. --- Jeff NewmillerThe . . Go Live... DCN:Basics: ##.#. ##.#. Live Go... Live

Re: [R] RStudio 1.1.453 - Windows 10 - How to see detailed results of every calculation step

2018-07-27 Thread Jeff Newmiller
Debugging in R applies one statement at a time. If you want to debug within a statement you can "step into" the function calls within the statement or you can execute the function calls separately and inspect the result. Your function consists of one statement so the debugger only has one place

Re: [R] Grouped boxplots using ggplot() from ggplot2.

2018-07-27 Thread Jeff Newmiller
more before posting this, and thereby managed (mirabile dictu!) to answer them myself. Can anyone help me out with questions (1) --- (4)? Please keep it simple and very explicit, for I am a bear of very little brain and long words bother me! Thanks. cheers, Rolf Turner -- Tec

Re: [R] subsetting ls() as per class...

2018-07-27 Thread Jeff Newmiller
You can extract the names into a character vector with ls and then use grep(..., values=TRUE ) to select which ones you want to remove, and then pass that list to rm. However, due to the way R handles memory you are unlikely to see much savings by doing this. I would recommend focusing on creat

Re: [R] Grouped boxplots using ggplot() from ggplot2.

2018-07-28 Thread Jeff Newmiller
callr_2.0.4 magrittr_1.5 whisker_0.3-2scales_0.5.0 [37] backports_1.1.2 htmltools_0.3.6 assertthat_0.2.0 colorspace_1.3-2 stringi_1.2.3lazyeval_0.2.1 [43] munsell_0.5.0crayon_1.3.4 On Sat, 28 Jul 2018, Rolf Turner wrote: On 28/07/18 17:03, Jeff Newmiller wrote: Whe

Re: [R] a suggestion about the display of structural variants in R

2018-07-28 Thread Jeff Newmiller
cible code. --- Jeff NewmillerThe . . Go Live... DCN:Basics: ##.#. ##.#. Live Go... Live: OO#.. Dead: OO#.. Playing Research Engineer (Solar/Batteries

Re: [R] dbGetQuery() returns wrong value

2018-07-30 Thread Jeff Newmiller
If you have not read [1] already, you should. As to how JDBC handles this issue I don't know, but such a package-specific conversation belongs on r-sig-db. [1] http://www.win-vector.com/blog/2015/06/r-in-a-64-bit-world/ On July 30, 2018 6:06:04 AM PDT, Christofer Bogaso wrote: >The data type i

Re: [R] read txt file - date - no space

2018-07-30 Thread Jeff Newmiller
1) No. 2) The read.csv function is a s special case use of the more general read.table function that can handle any simple field separator. 3) Read the data in as character (I recommend using the stringsAsFactors=FALSE argument to read.table) and convert to an appropriate type from that form.

Re: [R] Unexpected YAML

2018-07-31 Thread Jeff Newmiller
... or deleting .RData and avoiding creating them in the future. Named save files (anything.RData) are useful but the autoload feature of .RData files is not and this particular behavior is one of the reasons why. On July 31, 2018 3:39:39 AM PDT, PIKAL Petr wrote: >Hi > >However if in .RData is

Re: [R] read txt file - date - no space

2018-07-31 Thread Jeff Newmiller
... and the most common source of NA values in time data is wrong timezones. You really need to make sure the timezone that is assumed when the character data are converted to POSIXt agrees with the data. In most cases the easiest way to insure this is to use Sys.setenv(TZ="US/Pacific") or wha

Re: [R] A slightly unorthodox matrix product.

2018-08-04 Thread Jeff Newmiller
HTH, Chuck __ 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] A slightly unorthodox matrix product.

2018-08-04 Thread Jeff Newmiller
] TRUE #' Created on 2018-08-04 by the [reprex package](http://reprex.tidyverse.org) (v0.2.0). ### On Sat, 4 Aug 2018, Berry, Charles wrote: On Aug 4, 2018, at 11:43 AM, Jeff Newmiller wrote: Sometimes a good old for loop performs best, even if it doesn't look sexy:

Re: [R] MASS::boxcox "object not found"

2018-08-06 Thread Jeff Newmiller
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] Help with finalfit and knitr

2018-08-08 Thread Jeff Newmiller
R syntax does not allow for objects to be plopped next to each other separated by a space. There should be a newline after the t1 variable. This kind of problem plagues people copying HTML into emails on this mailing list (losing newlines), and was probably introduced into your code during a cop

Re: [R] Plot function: hourly data and x-axis

2018-08-09 Thread Jeff Newmiller
Pre-process your data into per-day or per-month records, then plot it. There are many ways to do this... for example, base R has the aggregate function, and the dplyr package has the group_by/summarise functions, and the data.table package can do this as well (read the vignettes). All of these

Re: [R] Help reinstalling rgdal (Ubuntu 16.04)

2018-08-09 Thread Jeff Newmiller
Or ask on R-sig-debian... On August 9, 2018 3:13:38 PM PDT, "MacQueen, Don via R-help" wrote: >There are quite a few messages on R-sig-geo about installing rgdal on >Ubuntu. Maybe one of them contains your solution? >(I use Mac, so can't help directly) > >-Don > >-- >Don MacQueen >Lawrence Liver

Re: [R] source script file that contains Unicode non-English characters

2018-08-11 Thread Jeff Newmiller
... and read the Posting Guide... only a few file types will ever make it through the mailing list so repeatedly sending files not among those few types would just be frustrating for everyone. On August 11, 2018 4:51:43 PM PDT, Jim Lemon wrote: >Hi Farid, >Whatever you attached has not gotten t

Re: [R] Problem with loaded R packages

2018-08-15 Thread Jeff Newmiller
a) Raw URL text is not legal in R code. URLs MUST ALWAYS be enclosed in single (') or double (") quotes in R. b) The source function expects to go where you tell it to go and retrieve text composed of R statements. A PDF is a binary file... even if it happened to contain some R code that you co

<    5   6   7   8   9   10   11   12   13   14   >