Re: [R] nested for loop with data table

2017-05-02 Thread Jim Lemon
Hi Ek, I think you want your example to look like this: Sample<-read.table(text= "Num Color Grade Value Month Day 1 yellow A 20 May 1 2 green B 25 June 2 3 green A 10 April 3 4 black A 17 August 3 5 red C 5 December 5 6 orange D 0 January 13 7 orange E 12 January 5 8 orange F 11 February 8 9

Re: [R] install lapack for mac

2017-05-02 Thread William Michels via R-help
Have you tried R-GUI, in the R-distribution available below? https://cran.r-project.org/bin/macosx/ Here's a similar question on SO: http://stackoverflow.com/questions/13476736/r-lapack-routines-cannot-be-loaded HTH, Bill. William Michels, Ph.D. On Tue, May 2, 2017 at 11:51 AM, Assa

Re: [R] memory issue

2017-05-02 Thread Jeff Newmiller
Suggestions... Post plain text (you reduce your own chances of getting feedback by failing to do this in your email program) Provide sample data and code Buy more RAM use data.table package and fread load and analyze subsets of data Put the data into a database (e.g. sqlite?) If these

Re: [R] nested for loop with data table

2017-05-02 Thread Boris Steipe
There's a lot that doesn't make sense here. I think what you need to do is produce a small, reproducible example, post that with dput() and state your question more clearly - including what you have tried and what didn't work. You'll probably be amazed how quickly you will get good advice if

[R] memory issue

2017-05-02 Thread Amit Sengupta via R-help
HI,I am unable to read a 2.4 gig file into a table (using read.table) in a 64 bit R environment. Do you have any suggestions?Amit [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see

[R] install lapack for mac

2017-05-02 Thread Assa Yeroslaviz
Hi, I am running R under Rstudio for the analysis of single-cell RNA-Seq data. When trying to analyse some data I keep getting the message > slicer_traj_lle <- lle(t(deng[slicer_genes,]), m = 2, k)$Y finding neighbours calculating weights Error in eigen(G, symmetric = TRUE, only.values = TRUE)

[R] memory problem

2017-05-02 Thread Amit Sengupta via R-help
Hi,I was unable to read a 2.4 gig file into an R object using read.table in 64 bit R environment. Please let me have your suggestions.Amit Sengupta [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and

[R] nested for loop with data table

2017-05-02 Thread Ek Esawi
I have a huge data file; a sample is listed below. I am using the package data table to process the file and I am stuck on one issue and need some feedback. I used fread to create a data table. Then I divided the data table (named File1) into 10 general subsets using common table commands such as:

Re: [R] clip a raster according to a shape file in R.

2017-05-02 Thread Jeff Newmiller
The answer is yes. However there are quite a few online resources (including blogs and the CRAN Spatial Task View and vignettes for packages mentioned there) that describe various tools and step you through how to do this, and you have not provided a reproducible example, and there is a whole

Re: [R] Unusual behavior in e1071?

2017-05-02 Thread Uwe Ligges
Look more carefully at y. If this is a factor, please note what is the first (reference) level and what the second. This determines the rule, not the value of the first observation. Best, Uwe Ligges On 02.05.2017 07:25, Daniel Jeske wrote: Hello - I have noticed that when I run svm() the

Re: [R] cannot load .sav-files in R 3.4.0

2017-05-02 Thread Anthony Damico
are you able to install anything from github? like devtools::install_github( "hadley/dplyr" ) On Tue, May 2, 2017 at 9:36 AM, wrote: > unfortunately it failed with the installation of lodown: > >> devtools::install_github("ajdamico/lodown") >> > Downloading

Re: [R] How create columns for squared values from previous columns?

2017-05-02 Thread Mike C
Ah, that works! Thank you! From: PIKAL Petr Sent: Tuesday, May 2, 2017 7:56:33 AM To: C W; r-help Subject: RE: [R] How create columns for squared values from previous columns? Hi you can use data.frame data.frame(dat, dat[,1:3]^2) and

Re: [R] How create columns for squared values from previous columns?

2017-05-02 Thread PIKAL Petr
Hi you can use data.frame data.frame(dat, dat[,1:3]^2) and you can set names afterwards by names function. Cheers Petr > -Original Message- > From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of C W > Sent: Saturday, April 29, 2017 3:22 AM > To: r-help

[R] Unusual behavior in e1071?

2017-05-02 Thread Daniel Jeske
Hello - I have noticed that when I run svm() the order of my data matters. If the first case in the data frame has y=+1 I get the expected decision rule that says to classify as +1 if f(x)>0. However, if the first case in the data frame has y=-1 then apparently the decision rule being used says

[R] clip a raster according to a shape file in R.

2017-05-02 Thread M.M saifuddin
I have a grid data which has values of a variable (e.g: Temperature). My data has 6069 data points where each data point refers to different latitude and longitude. I want to transform this data to a raster file so that I can clip it according to a shapefile that has much smaller boundaries than

Re: [R] Lattice xyplot

2017-05-02 Thread array chip via R-help
Thanks all for the clarification! From: Jeff Newmiller To: r-help@r-project.org; Bert Gunter ; array chip Cc: "r-help@r-project.org" Sent: Monday, May 1, 2017 10:53 AM Subject: Re: [R]