Dear Jeff, Dear Rui, Dear all,
Forget about the monthly things. I was trying to do two things at the same
time.
I try to explain myself. Thanks for your time and I really appreciate your
help.
I have a long file with hourly precipitation from 2000 to 2018. I would
like to select only on e year o
Hello,
With on«bjects of class "Date" or "POSIXt", POSIXct" you can do
lubridate::year(date_obj)
to extract the year. Then aggregate by it.
Hope this helps,
Rui Barradas
Às 08:25 de 28/01/2019, Diego Avesani escreveu:
Dear Jeff, Dear Rui, Dear all,
Forget about the monthly things. I was tr
Hi Halllie,
As Jeff noted, a data frame is not a matrix (it is a variety of list),
so that looks like your problem.
hkdf<-data.frame(sample(3:5,4,TRUE),sample(1:3,4,TRUE),sample(2:4,4,TRUE),
sample(3:5,4,TRUE),sample(1:3,4,TRUE),sample(2:4,4,TRUE))
library(irr)
kripp.alpha(hkdf)
kripp.alpha(as.ma
Hello everyone,
We present you the permuco package, which has 2 main purposes: PERmutation
tests and MUltiple COmparisons.
First, the package has functions for permutation tests for parameters in linear
models with nuisance variables. Several permutation methods exist in the
literature to redu
Hello,
Please click to keep this threaded.
What I was trying to say is to do something along the lines of
Y <- lubridate::year(dati$DATAORA)
Y2013 <- Y[Y == 2013]
PY2013 <- ave(dati$PREC, Y2013, FUN = cumsum)
plot(dati$DATAORA, PY2013)
Hope this helps,
Rui Barradas
Às 08:57 de 28/01/2019,
Ho to all
i get the results
mtcars[duplicated(mtcars$wt,fromLast=TRUE),]
Hornet Sportabout 18.7 8 360.0 175 3.15 3.44 17.02 0 032
Duster 36014.3 8 360.0 245 3.21 3.57 15.84 0 034
Merc 280 19.2 6 167.6 123 3.92 3.44 18.30 1 044
mtcars[duplic
Hello,
Simply OR (|) both conditions.
mtcars[duplicated(mtcars$wt) | duplicated(mtcars$wt,fromLast=TRUE),]
# mpg cyl disp hp drat wt qsec vs am gear carb
#Hornet Sportabout 18.7 8 360.0 175 3.15 3.44 17.02 0 032
#Duster 36014.3 8 360.0 245 3.21 3.57 1
... Alternatively(but probably less efficient):
## the indexing logical vector
with(mtcars, wt %in% wt[duplicated(wt)] )
cheers,
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
Hi Jeff;
Thanks so much for this. I would try to reformulate what you suggested.
Your help is highly appreciated
Regards,
Greg
On Sun, Jan 27, 2019 at 8:16 PM Jeff Newmiller
wrote:
> I haven't found much call to mess with this, but I think the built-in
> "glm" function could do it. You might
Dear Contributors,
I conducting epoch analysis. I tried to test the significance of my
result using randomization test.
Since I have 71 events, I randomly selected another 71 events, making
sure that none of the dates in the random events corresponds with the
ones in the real event.
Following th
Hi all,
Thank you for your responses. You are correct that it is not a matrix. I used
the incorrect term.
I meant I put my data in a spreadsheet with three rows and 24 columns.
Sent from my iPhone
> On Jan 28, 2019, at 3:36 AM, Jim Lemon wrote:
>
> Hi Halllie,
> As Jeff noted, a data frame
Hi,
I recently learned of the existence of R through a physicist friend who
uses it in his research. I've used Octave for a decade, and C for 35
years, but would like to learn R. These all have advantages and
disadvantages for certain tasks, but as I'm new to R I hardly know how
to evaluate t
On 1/29/19 10:05 AM, Alan Feuerbacher wrote:
Hi,
I recently learned of the existence of R through a physicist friend who
uses it in his research. I've used Octave for a decade, and C for 35
years, but would like to learn R. These all have advantages and
disadvantages for certain tasks, but
R has many similarities to Octave. Have a look at:
https://cran.r-project.org/doc/contrib/R-and-octave.txt
https://CRAN.R-project.org/package=matconv
On Mon, Jan 28, 2019 at 4:58 PM Alan Feuerbacher wrote:
>
> Hi,
>
> I recently learned of the existence of R through a physicist friend who
> use
On 1/28/2019 4:20 PM, Rolf Turner wrote:
On 1/29/19 10:05 AM, Alan Feuerbacher wrote:
Hi,
I recently learned of the existence of R through a physicist friend
who uses it in his research. I've used Octave for a decade, and C for
35 years, but would like to learn R. These all have advantages
I would say your question is foolish -- you disagree no doubt! -- because
the point of using R (or Octave or C++) is to take advantage of the
packages (= "libraries" in some languages; a library is something different
in R) it (or they) offers to simplify your task. Many of R's libraries are
writte
This would be a suitable application for NetLogo. The R package
RNetLogo provides an interface. In a few lines of code you get a
simulation with graphics.
On Mon, Jan 28, 2019 at 7:00 PM Alan Feuerbacher wrote:
>
> On 1/28/2019 4:20 PM, Rolf Turner wrote:
> >
> > On 1/29/19 10:05 AM, Alan Feuer
S (R's predecessor) was designed by and for data analysts. R generally
follows that tradition. I think that simulations such as yours are not its
strength, although it can make analyzing (graphically and numerically) the
results of the simulation fun.
Bill Dunlap
TIBCO Software
wdunlap tibco.com
If you forge on with your preconceptions of how such a simulation should be
implemented then you will be able to reproduce your failure just as
spectacularly using R as you did using Octave. It is crucial to employ
vectorization of your algorithms if you want good performance with either
Octave
Dear useRs,
I am pleased to announce the publication of mgcViz 0.1.3 on CRAN:
https://cran.r-project.org/web/packages/mgcViz/index.html
mgcViz is an extension of mgcv, and provides a layered ggplot2-based
visualisation framework for GAM models. In addition to layered smooth effect
plots, mgcViz
Hi there,
I'm running R version 3.5.2 on Linux Mint. I try install.packages("hierfstat")
and get this:
** byte-compile and prepare package for lazy loading
Error in rbind(info, getNamespaceInfo(env, "S3methods")) :
number of columns of matrices must match (see arg 2)
ERROR: lazy loading faile
Dear R users,
Does anyone have a recommendation for an R package that can:
1. Handle mixed types of indicators (in my case, both binary and
Gaussian)
2. Fit a latent class regression (i.e. use observed covariates to
predict latent class membership)?
3. Incorporate programs to do th
On 1/28/19 4:00 PM, Alan Feuerbacher wrote:
On 1/28/2019 4:20 PM, Rolf Turner wrote:
On 1/29/19 10:05 AM, Alan Feuerbacher wrote:
Hi,
I recently learned of the existence of R through a physicist friend
who uses it in his research. I've used Octave for a decade, and C
for 35 years, but wo
23 matches
Mail list logo