[R] R 3.5.0, vector memory exhausted error on readBin

2018-06-11 Thread Valerie Cavett
I�ve been reading in binary data collected via LabView for a project, and after upgrading to R 3.5.0, the code returns an error indicating that the 'vector memory is exhausted�. I�m happy to provide a sample binary file; even ones that are quite small (12 MB) generate this error. (I wasn�t sure

Re: [R] Changing selected columns to factor

2018-06-11 Thread Jim Lemon
Hi Jeff, jrdf<-data.frame(A=rnorm(10),B=rnorm(10),C=rnorm(10), D=rnorm(10),E=rnorm(10),F=rnorm(10),G=rnorm(10), H=rnorm(10),I=rnorm(10),J=rnorm(10)) for(i in c(2,7,8,9)) jrdf[,i]<-factor(jrdf[,i]) sapply(jrdf,"class") Jim On Tue, Jun 12, 2018 at 9:57 AM, Jeff Reichman wrote: > R-Help Forum >

[R] Changing selected columns to factor

2018-06-11 Thread Jeff Reichman
R-Help Forum If I have a data frame consisting of say ten (10) variables (A,B,C,D,E,F,G,H,I,J) and I want to change Variables 2,7,8,and 9 to factors is there a command such that I can do it in one line or do I simply have to convert each separately? Jeff [[alternative HTML version

Re: [R] Issues when Trying to Install Packages in R

2018-06-11 Thread Hasan Diwan
Paul, install.packages('lubridate', type='source', repos='https://cran.rstudio.com') # worked for me You should be able to copy/paste the line into an R session. -- H -- OpenPGP: https://sks-keyservers.net/pks/lookup?op=get&search=0xFEBAD7FFD041BBA1 If you wish to request my time, please do so us

Re: [R] Issues when Trying to Install Packages in R

2018-06-11 Thread Duncan Murdoch
On 11/06/2018 5:15 PM, Paul Bernal wrote: Dear friends, I recently installed the following R version: R version 3.5.0 (2018-04-23) -- "Joy in Playing" Copyright (C) 2018 The R Foundation for Statistical Computing Platform: x86_64-w64-mingw32/x64 (64-bit) However, when trying to install packag

[R] Issues when Trying to Install Packages in R

2018-06-11 Thread Paul Bernal
Dear friends, I recently installed the following R version: R version 3.5.0 (2018-04-23) -- "Joy in Playing" Copyright (C) 2018 The R Foundation for Statistical Computing Platform: x86_64-w64-mingw32/x64 (64-bit) However, when trying to install package lubridate (it also happened when I tried t

Re: [R] shaded area with polygon

2018-06-11 Thread William Dunlap via R-help
Does polygon(c(x,rev(x)), c(y, rev(z)), col="orange") do what you want? Bill Dunlap TIBCO Software wdunlap tibco.com On Mon, Jun 11, 2018 at 12:35 PM, L... L... wrote: > Dear All, I know this is a trivial question .. but .. I want to shade the > area between 2 curves. For example: > > x <- 1:

[R] Using MAP with a function returning a vector

2018-06-11 Thread Veerappa Chetty
Hi Experts, The following codes work when the return value is a scalar. But I like to get the whole vector instead of one element of the vector x using map as a data frame instead getting one element of the vector using of map_dbl. In other words, I would like a data frame with one row for each