Hi Celine,
what about removing the unwanted after you made the x and y
x<-x[x>0] # or x<-x[x>0&&y>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 Lü
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 & da
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.
>
>Thanks,
>Amrith
>
>
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 the
> value of G for ever
> 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 code, looking at the source
> code. Ho
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
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
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:
>>
>> Hi,
>>
>> I am using Spark and the S
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
##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 <- firs
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.
On
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 not
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
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. Hav
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 current working directory
> 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')
> pg1 <- read_html
> 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.netPart554
> xy
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 s
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 us
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
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]]
___
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). How
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 + t
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)
rownames(cou
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
https://stat.ethz.ch/mailman/listi
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
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]> dir(new)
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
breakpoin
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
no
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 Soci
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"
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 date
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 lo
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)
Se
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
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
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: prefix, followed by a numbe
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 favour
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
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"] -
l
> 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 to replicate the system on a Red Hat Enterprise
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 replyI can not suppress an
42 matches
Mail list logo