Re: [R-es] Duda interpolación (package ' gstat ')

2015-08-08 Thread Marcos Bermejo
Muchas gracias por todo. Esta es la parte del código del variograma: vg.aux - variogram(radPcp~1, radar.spdf, cutoff=1) vg - as.data.frame(matrix(c(vg.aux$dist, vg.aux$gamma), nrow=15, ncol=2)) # El primer argumento de fit.variogram() es lo que hemos obtenido de variogram(). v.fit -

Re: [R] Piecewise (segmented) linear regression with center section slope constraint

2015-08-08 Thread David Winsemius
On Aug 7, 2015, at 12:05 PM, Drew Morrison wrote: Thanks, Jean. I've actually looked at that source before. The issue is that I can't constrain the slope of the /center/ section to be zero - in fact, I've applied similar code to a three-segment regression and I can get a zero slope either of

Re: [R] Error with predict and newdata

2015-08-08 Thread David Winsemius
On Aug 7, 2015, at 2:41 PM, kira taylor wrote: Hi! I am trying to use predict to apply my model to data from one time period to see what might be the values for another time period. I did this successfully for one dataset, and then tried on another with identical code and got the

Re: [R] Cant upgrade R in ubuntu 14.04

2015-08-08 Thread peter dalgaard
That is an Ubuntu issue, not an R one. - Peter D. On 08 Aug 2015, at 06:31 , boredstoog via R-help r-help@r-project.org wrote: I am trying to install R programming language and able to install rbase using this code without adding repository in *source.list* sudo apt-get install r-base

[R] parallel clustering, amap, hcluster

2015-08-08 Thread Ziqi Zhang
Hi I am looking for parallel implementation of hierarchical clustering, the equivalent to hclust in the fpc package. I found hcluster from amap package: hcluster(x, method = euclidean, diag = FALSE, upper = FALSE, link = complete, members = NULL, nbproc = 2, doubleprecision

Re: [R] creating a funct

2015-08-08 Thread John Kane
You sent the data but forgot the code :) It is better to use dput() to send data. Have a look at http://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example and http://adv-r.had.co.nz/Reproducibility.html John Kane Kingston ON Canada -Original Message-

Re: [R] Error with predict and newdata

2015-08-08 Thread Ben Bolker
David Winsemius dwinsemius at comcast.net writes: On Aug 7, 2015, at 2:41 PM, kira taylor wrote: Hi! I am trying to use predict to apply my model to data from one time period to see what might be the values for another time period. I did this successfully for one dataset, and

[R] Can't install rgl: installed package can't be loaded; 'memory not mapped'

2015-08-08 Thread Waichler, Scott R
Hi, I can't install package rgl. The last lines from the install process talking about the error are: ** testing if installed package can be loaded sh: line 1: 11949 Segmentation fault '/files3/R/R-3.2.1_install/lib64/R/bin/R' --no-save --slave 21 '/tmp/RtmpQCpp6N/file2b115f4f8e1d'

Re: [R] testing whether two character vectors contain (the same) items in the same order

2015-08-08 Thread Robert Baer
On 8/6/2015 5:25 AM, Federico Calboli wrote: Hi All, let’s assume I have a vector of letters drawn only once from the alphabet: x = sample(letters, 15, replace = F) x [1] z t g l u d w x a q k j f n “v y = x[c(1:7,9:8, 10:12, 14, 15, 13)] I would now like to test how good a match y is

Re: [R] testing whether two character vectors contain (the same) items in the same order

2015-08-08 Thread Robert Baer
And I probably should have included this link: http://journal.r-project.org/archive/2014-1/loo.pdf On 8/8/2015 12:50 PM, Robert Baer wrote: On 8/6/2015 5:25 AM, Federico Calboli wrote: Hi All, let’s assume I have a vector of letters drawn only once from the alphabet: x = sample(letters,

[R] H2O Package - Error Messages

2015-08-08 Thread Axel Urbiz
Hello, I've been experimenting with the H2O package, which seems to be a very interesting and promising project. I'm getting a few error messages through using h2o.deeplearning (which I guess it must be something I'm doing wrong). Here is a reproducible example of errors using the n_folds

Re: [R] Can't install rgl: installed package can't be loaded; 'memory not mapped'

2015-08-08 Thread Duncan Murdoch
On 08/08/2015 1:32 PM, Waichler, Scott R wrote: Hi, I can't install package rgl. The last lines from the install process talking about the error are: I'd guess you have an OpenGL problem. Does glxgears run? Duncan Murdoch ** testing if installed package can be loaded sh: line 1: 11949

[R] Recursive looping of a list in R

2015-08-08 Thread Evans
I am trying to creat a list from a loop such that once you loop the value obtained is appended onto the list, then you loop through that value to give the next elemet of the list and the system continues recusively. To be clear I am creating a list to contain elements of the following tree

[R] Installing RGDAL on CentOS v.6.2

2015-08-08 Thread Shouro Dasgupta
Dear all, I have access to an IBM IDataplex Cluster with CentOS v.6.2. R 3.2.1 is currently installed. I was wondering if there was any way to install RGDAL on it? Thanks! Sincerely, Shouro [[alternative HTML version deleted]] __

[R] Error in rep in matrix - Windows 8- R 3.2.1

2015-08-08 Thread Nikita Dinger
y - matrix(rep(10,4),2,2) y [,1] [,2] [1,] 10 10 [2,] 10 10 I expected an output of y [,1] [,2] [1,] 10 4 [2,] 10 4 Thanks and Regards. [[alternative HTML version deleted]] __ R-help@r-project.org mailing list

Re: [R] Error in rep in matrix - Windows 8- R 3.2.1

2015-08-08 Thread David Winsemius
On Aug 8, 2015, at 1:44 PM, Nikita Dinger wrote: y - matrix(rep(10,4),2,2) y [,1] [,2] [1,] 10 10 [2,] 10 10 I expected an output of y [,1] [,2] [1,] 10 4 [2,] 10 4 When you get something you don't expect, you should start by examining the arguments.

Re: [R] Can't install rgl: installed package can't be loaded; 'memory not mapped'

2015-08-08 Thread Waichler, Scott R
Hi, I can't install package rgl. The last lines from the install process talking about the error are: I'd guess you have an OpenGL problem. Does glxgears run? Yes, it does. I wasn't aware of the program before you mentioned it, but a display opens with 3 gears and here is some

Re: [R] Errors -- Windows 8- R version 3.2.1

2015-08-08 Thread Uwe Ligges
E, 1. urls need to be ull qualified including the protocol such as http://www.facebook.com; 2. filenames are relative to the current working directory, if they are not in the current working directory, secify the full path. 3. read.csv() cannot read docx files Best, Uwe Ligges On

Re: [R] Errors -- Windows 8- R version 3.2.1

2015-08-08 Thread John C Frain
To check what your actual working directory is try getwd() To look a list of files in your actual working directory try dir() If your working directory is not what you expected change it with setwd(path to directory) There are several ways in Windows to ensure that R starts in the required

Re: [R] Can't install rgl: installed package can't be loaded; 'memory not mapped'

2015-08-08 Thread Duncan Murdoch
On 08/08/2015 5:19 PM, Waichler, Scott R wrote: Hi, I can't install package rgl. The last lines from the install process talking about the error are: I'd guess you have an OpenGL problem. Does glxgears run? Yes, it does. I wasn't aware of the program before you mentioned it, but a

Re: [R] Recursive looping of a list in R

2015-08-08 Thread Jim Lemon
Hi Evans, I'm not sure whether this is what you want, but look at the code in the listBuilder and listCrawler functions in the crank package. Jim On Sun, Aug 9, 2015 at 4:14 AM, Evans evansochi...@aims.ac.za wrote: I am trying to creat a list from a loop such that once you loop the value

Re: [R] creating a funct

2015-08-08 Thread Jim Lemon
Hi Jose, It looks like it is time for a bit of guessing. For one thing, if you try to attach an R script you will get an error. I will assume that you really used source as you seem to have gotten past that step. You later mention a connection error when you try to execute the command. As you sent

Re: [R] regularized dfa rda (Klar): problems with predictions

2015-08-08 Thread RUkidding
Daniel Stahl-2 wrote Error in predict.rda(z, data = test[testset, ]) : A new data to predict must be supplied. For anyone encountering this problem, it stems from having both the klaR and rda libraries loaded. rda gives this error message because its predict.rda is defined: function