Re: [R] Help: ifelse selection for x,y coordinates

2017-06-22 Thread Anthoni, Peter (IMK)
Hi Celine, what about removing the unwanted after you made the x and y x<-x[x>0] # or x<-x[x>0&>0], ditto for y, x[x!=""] in your ifelse (... ,"") case if x and y will not have the same length afterwards you need to make that list thingy. cheers Peter On 23. Jun 2017, at 07:30, Céline

Re: [R] Help: ifelse selection for x,y coordinates

2017-06-22 Thread Céline Lüscher
Hi Jim, Thank you very much for the answer ! The result is really better with this  Here is the code : > kk<- function(x.Koordinate, y.Koordinate, data=data) + { + coordx<-data$x.Koordinate[data$G==24] + coordy<-data$y.Koordinate[data$G==24] + x <- ifelse(data$x.Koordinate>coordx-51 &

Re: [R] Question

2017-06-22 Thread Jeff Newmiller
This is not a Spark-help mailing list, either. -- Sent from my phone. Please excuse my brevity. On June 22, 2017 4:20:36 PM PDT, Amrith Deepak wrote: >This function won’t work with objects in spark as you can’t do a dfda$a >in spark as it’s not stored as a local variable. >

Re: [R] Help: ifelse selection for x,y coordinates

2017-06-22 Thread Jim Lemon
Hi Celine, Perhaps if you modify your return value like this: xy<-as.data.frame(list(x,y)) names(xy)<-c("x","y") return(xy) Jim On Thu, Jun 22, 2017 at 6:48 PM, Céline Lüscher wrote: > Hi everyone, > My database has 3 columns : the x coordinates, the y coordinates and

Re: [R] MODISTools help - with reproducible examples

2017-06-22 Thread David Winsemius
> On Jun 22, 2017, at 4:44 PM, Caroline > wrote: > > I am using the R-package MODISTools (different than MODIS) and am having a > lot of difficulty troubleshooting my code. I have spent awhile going through > MODISTools tutorials, searching for my error

Re: [R] Question

2017-06-22 Thread Amrith Deepak
Sorry, I don’t think you understand my problem. dta = spark_read_csv(sc,”data_tbl”,”extension/file",delimiter = "|") dta is just a pointer to spark where the data is stored. I am using sparklyr to run this on spark. I’m not running it locally so I can’t use the $. I know how to do this locally

[R] MODISTools help - with reproducible examples

2017-06-22 Thread Caroline
I am using the R-package MODISTools (different than MODIS) and am having a lot of difficulty troubleshooting my code. I have spent awhile going through MODISTools tutorials, searching for my error code, looking at the source code. However, I have not been able to find any relevant information

Re: [R] Question

2017-06-22 Thread Amrith Deepak
This function won’t work with objects in spark as you can’t do a dfda$a in spark as it’s not stored as a local variable. Thanks, Amrith > On Jun 22, 2017, at 4:15 PM, David Winsemius wrote: > > >> On Jun 22, 2017, at 11:22 AM, Amrith Deepak wrote:

Re: [R] Missing dependencies in pkg installs

2017-06-22 Thread Don Cohen
Duncan Murdoch writes: > On 22/06/2017 5:02 PM, Conklin, Mike (GfK) wrote: > > I am using debug on the .install_packages function...stepping through. > > Once the temporary folder is created and the tar file expanded I run > > file_test and get a FALSE back indicating that the configure file

Re: [R] MODISTools Help

2017-06-22 Thread Caroline
##MODISTools example library(MODISTools) library(lubridate) setwd('~/Documents/Modis data') #MODISTools with buffalo data ###Read in data rename for easier coding tbdata <- read.csv('~/Desktop/All TB data for EVI, NDVI.csv') firstobs <- subset(tbdata, capture.ID == 'B1-1108') firstobs <-

Re: [R] Question

2017-06-22 Thread Jeff Newmiller
Rows are horizontal, columns are vertical. You really need to spend some time with an R tutorial. dta <- read.table( "yourfile", header=TRUE, as.is=TRUE ) dta2 <- dta dta2$D <- c( "awe", "abcd", "asdf", "xyz" ) dta2 <- dta2[ , c( "A", "D" ) ] -- Sent from my phone. Please excuse my brevity.

Re: [R] MODISTools Help

2017-06-22 Thread Bert Gunter
1. You should always cc the list unless there is a clear reason not to. 2. You still have failed to follow the posting guide: You say you have difficulty troubleshooting your code, but you have shown us no code. You got an error message that seems explicit, but with neither code nor data, I do

Re: [R] Back to back barplot

2017-06-22 Thread Bert Gunter
Do a web search on "pyramid plot R" . That appeared to bring up relevant resources. -- 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 Wed, Jun 21, 2017

Re: [R] MODISTools Help

2017-06-22 Thread Bert Gunter
This is a specialized package that fairly few of us are likely to have familiarity with, especialy when you have not followed the posting guide (below) and posted code and a reproducible example. That said, a web search on R MODIS appeared to bring up relevant hits, including a MODIS tutorial.

Re: [R] Accessing Pointers

2017-06-22 Thread Roy Mendelssohn - NOAA Federal
Hi Lawrence: > On Jun 22, 2017, at 4:26 PM, David Winsemius wrote: > > > >> is pointing to in the following line of code. Need some help. >> >> #install.packages('xml2') >> library('xml2') >> pg1 <- read_html("www.msn.com") > > Error: 'www.msn.com' does not exist in

Re: [R] Accessing Pointers

2017-06-22 Thread David Winsemius
> On Jun 22, 2017, at 12:52 PM, Lawrence Fomundam wrote: > > Hello, > > I am relatively new to R and would like to access the document my pointer "my pointer"? > is pointing to in the following line of code. Need some help. > > #install.packages('xml2') > library('xml2')

Re: [R] Question

2017-06-22 Thread David Winsemius
> On Jun 22, 2017, at 11:22 AM, Amrith Deepak wrote: > > Hi, > > I am using Spark and the Sparklyr library in R. > > I have a file with several lines. For example > > A B C > awer.ttp.netCode554 > abcd.ttp.netCode747 > asdf.ttp.net

[R] HPC R configure not recognizing zlib

2017-06-22 Thread Hamidi, Bashir
System: Red Hat Enterprise Linux Server release 6.5 (Santiago) I’ve installed zlib 1.2.11 on the home folder of a Red Hat HPC as part of the process for installing R base 3.4.0. I get this error even after successful install of zlib checking for inflateInit2_ in -lz... no checking whether zlib

[R] MODISTools Help

2017-06-22 Thread Caroline
I am using MODIS Tools and am having a lot of difficulty troubleshooting my code. I am a PhD student studying African buffalo in Kruger National Park, South Africa. The study I am currently working on involves a herd of 200 African buffalo caught every six months for 4 years. I am trying to

[R] Question

2017-06-22 Thread Amrith Deepak
Hi, I am using Spark and the Sparklyr library in R. I have a file with several lines. For example A B C awer.ttp.netCode554 abcd.ttp.netCode747 asdf.ttp.netPart554 xyz.ttp.net Part747 I want to split just column A of the table and I want

[R] Accessing Pointers

2017-06-22 Thread Lawrence Fomundam
Hello, I am relatively new to R and would like to access the document my pointer is pointing to in the following line of code. Need some help. #install.packages('xml2') library('xml2') pg1 <- read_html("www.msn.com") str(pg1) ptr <- pg1[[2]] [[alternative HTML version deleted]]

Re: [R] Differences between SPSS and R on probit analysis

2017-06-22 Thread Edwin Burgess
Hi Bianca, I hope you’ve solved your problem with SPSS and R probit analysis, but if you haven’t, I have your solution: Based on the output you’ve given, I see that your residual deviance is under-dispersed (that the ratio of residual deviance to residual deviance df does is less than 1).

[R] Help: ifelse selection for x,y coordinates

2017-06-22 Thread Céline Lüscher
Hi everyone, My database has 3 columns : the x coordinates, the y coordinates and the value of G for every individual (20 in total). I would like to have the x,y coordinates of individuals, Under these conditions : the distance to the reference coordinates must be under or equal to 50 meters +

[R] Getting error in dendogram based on gene expression

2017-06-22 Thread Yogesh Gupta
Dear All, I am trying to make dendogram based on gene expression matrix , but getting some error: I countMatrix = read.table("count.row.txt",header=T,sep='\t',check.names=F) colnames(countMatrix) count_matrix <- countMatrix[,-1] # remove first column (gene names)

[R] Back to back barplot

2017-06-22 Thread Franklin Mairura via R-help
Dear Gentlemen, i want to create a back-to back barplot in R, close to a pyramid chart, but with categories, please help; Here is a sample, Franklin. __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see

Re: [R] Missing dependencies in pkg installs

2017-06-22 Thread Duncan Murdoch
On 22/06/2017 5:02 PM, Conklin, Mike (GfK) wrote: I am using debug on the .install_packages function...stepping through. Once the temporary folder is created and the tar file expanded I run file_test and get a FALSE back indicating that the configure file is not executable. I don't know what

Re: [R-es] Ayuda R no puede hubicar un vector de 42gb

2017-06-22 Thread Ursula Jacobo Arteaga via R-help-es
Te agradezco Carlos... saludos El jue., 22 de jun de 2017 a la(s) 5:02 p.m., Carlos Ortega escribió: En IBM tenéis esto...: https://datascience.ibm.com/ Al que también recientemente habéis incorporado H2O:

Re: [R-es] Ayuda R no puede hubicar un vector de 42gb

2017-06-22 Thread javier.ruben.marcuzzi
Estimada Ursula Jacobo Arteaga Hay una posibilidad con Windows azure, yo había realizado un curso al respecto, aunque habría que ver la denominación de ese servicio desde que lo integraron a sql server. Pero a esa cantidad de datos casi seguro que hay costos. Javier Rubén Marcuzzi De: Ursula

Re: [R-es] Ayuda R no puede hubicar un vector de 42gb

2017-06-22 Thread Carlos Ortega
En IBM tenéis esto...: https://datascience.ibm.com/ Al que también recientemente habéis incorporado H2O: https://www.hpcwire.com/off-the-wire/h2o-ai-partners-ibm-bring-enterprise-ai-ibm-power-systems/ Saludos, Carlos Ortega www.qualityexcellence.es El 22 de junio de 2017, 23:11, Carlos Ortega

Re: [R-es] Ayuda R no puede hubicar un vector de 42gb

2017-06-22 Thread Carlos Ortega
http://go.cloudera.com/ml-h20-es-webinar?src=email1=af5517eab2f543afbb31a0686d9ca566=c68d9a8c25ba4b12944b8065d8a06e33=4541=1= El 22 de junio de 2017, 22:59, Carlos Ortega escribió: > Hola, > > Tendrás RStudioServer en un nodo frontera de tu clúster. Y cuando lees >

Re: [R] Missing dependencies in pkg installs

2017-06-22 Thread Conklin, Mike (GfK)
I am using debug on the .install_packages function...stepping through. Once the temporary folder is created and the tar file expanded I run file_test and get a FALSE back indicating that the configure file is not executable. [1] "/tmp/RtmpMM6iC1/R.INSTALLc5ca415e4310/stringi" Browse[2]>

Re: [R] Missing dependencies in pkg installs

2017-06-22 Thread Duncan Murdoch
On 22/06/2017 3:42 PM, Conklin, Mike (GfK) wrote: Not much progress. I step through debug and it gets to the do.install() function which immediately errors with the same "configuration not executable" error. I believe that is a locally defined function, which means you can set a

Re: [R] Missing dependencies in pkg installs

2017-06-22 Thread Conklin, Mike (GfK)
Not much progress. I step through debug and it gets to the do.install() function which immediately errors with the same "configuration not executable" error. So, made a tempfunc that was a copy of tools:::.install_packages and edited the file_test("-x","configure") line to return a TRUE

Re: [R] For loop

2017-06-22 Thread Nordlund, Dan (DSHS/RDA)
For a reproducible example, you need to give us some example data, at least dput(head(leafbiom97)) dput(head(Litterfall_Ahmed97)) dput(head(GPP_Ahmed13)) Dan Daniel Nordlund, PhD Research and Data Analysis Division Services & Enterprise Support Administration Washington State Department of

Re: [R] For loop

2017-06-22 Thread Rui Barradas
Hello, Without correcting your code, it's obvious that the expressions like leafbiom97$Date == "i" and all others with"i" and "i - 1" are wrong. leafbiom97$Date is of class Date, not character. And, besides, for(i in ...) makes of i a numeric variable that has nothing to do with "i". This "i"

[R] For loop

2017-06-22 Thread Ahmed Attia
Hello R users, The code below is for loop in R that I want to do to following calculation at each time i and i-1 in 2:75 dataset (Litterfall_Ahmed97). ac = ((LeafBiog at date i -LeafBiog at date i-1, dataset = leafbiom97) + (littperiod at date i, dataset= Litterfall_Ahmed97))/(sum (GPP from

Re: [R] Missing dependencies in pkg installs

2017-06-22 Thread Duncan Murdoch
On 22/06/2017 11:15 AM, Conklin, Mike (GfK) wrote: Following Duncan's instructions I find that the system and R find that configure IS executable but if trying to install via install.packages I get the same error. I also tried using R CMD INSTALL from the terminal and install.packages with a

Re: [R] Missing dependencies in pkg installs

2017-06-22 Thread Conklin, Mike (GfK)
also it seems to be no issue to execute configure from the command line ./configure -- W. Michael Conklin EVP Marketing & Data Sciences GfK T +1 763 417 4545 | M +1 612 567 8287 -Original Message- From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of Conklin, Mike (GfK)

Re: [R] Missing dependencies in pkg installs

2017-06-22 Thread Conklin, Mike (GfK)
Following Duncan's instructions I find that the system and R find that configure IS executable but if trying to install via install.packages I get the same error. I also tried using R CMD INSTALL from the terminal and install.packages with a local file pointing to the very same tar.gz file that

Re: [R] Missing dependencies in pkg installs

2017-06-22 Thread Duncan Murdoch
The "configure exists but is not executable" problem is somewhat common on Windows, because there's usually no such thing as an executable bit there. (Cygwin does something to fake one, but Windows generally doesn't.) If you create a tarball there by default you get no executable bits marked

Re: [R] selecting dataframe columns based on substring of col name(s)

2017-06-22 Thread Evan Cooch
Thanks to all the good suggestions/solutions to the original problem. On 6/21/2017 3:28 PM, David Winsemius wrote: >> On Jun 21, 2017, at 9:11 AM, Evan Cooch wrote: >> >> Suppose I have the following sort of dataframe, where each column name has a >> common structure:

Re: [R] Hunting a histogram variant

2017-06-22 Thread peter dalgaard
Hmmno... The labels on a stem-and-leaf plots are the values. This is just the measurement number: Observations #2,5,6,9 from level 1 had a temperature between 89 and 90, making up the penultimate column of that histogram. I would conjecture that, like stem-and-leaf, this has fallen out of

Re: [R] 3D plot with coordinates

2017-06-22 Thread Duncan Murdoch
On 22/06/2017 3:15 AM, Alaios wrote: Thanks. So after searching 4 hours last night it looks like that there is no R package that can do this right now. Any other ideas or suggestions might be helpful. I don't know what you want the display to look like, but if you want it to be rotatable, rgl

Re: [R] Help/ Mathematics

2017-06-22 Thread Ahmed Attia
Hi Jim, Thank you very much, this was so helpful. GPP_Ahmed13$Date <- as.Date(GPP_Ahmed13$Date, '%Y/%m/%d') Litterfall_Ahmed97$Date <- as.Date(Litterfall_Ahmed97$Date, '%Y/%m/%d') leafbiom97$Date <- as.Date( leafbiom97$Date, '%Y/%m/%d') (leafbiom97$LeafBiog[leafbiom97$Date == "2012-02-12"] -

Re: [R] Missing dependencies in pkg installs

2017-06-22 Thread Martin Maechler
> David Winsemius > on Wed, 21 Jun 2017 18:04:13 -0700 writes: >> On Jun 21, 2017, at 1:39 PM, Conklin, Mike (GfK) wrote: >> >> I have a Ubuntu server with an R installation that has 384 packages installed. We are trying

Re: [R] 3D plot with coordinates

2017-06-22 Thread Alaios via R-help
Thanks. So after searching 4 hours last night it looks like that there is no R package that can do this right now. Any other ideas or suggestions might be helpful.RegardsAlex On Wednesday, June 21, 2017 3:21 PM, Alaios via R-help wrote: Thanks Duncan for the