How to slice the array with the condition?
For example, in perl I can get the elements greater than 2.
$ perl -le '@x=(1,2,3,4,5);@y=grep {$_>2} @x;print "@y"'
3 4 5
in R I know which(x>2), but it will return the indexes instead of an array.
Thanks again.
Alice
Dear members,
How to translate the charter to the underline inter?
I tried this:
> x <- c("a","b","c")
> as.numeric(x)
[1] NA NA NA
Warning message:
NAs introduced by coercion
It didn't work.
Sorry for my newbie questions.
B.R.
Alice
ckages I’d love to hear from you.
Hopefully I am missing something obvious.
Cheers,
Alice
---
Dr Alice Eldridge
Research Fellow
Sussex Humanities Lab,
School of Media, Film and Music
University of Sussex
Falmer
Brighton
BN1 9RG
ali...@sussex.ac.uk<mailto:ali...@susse
Hi List,
I'm having some trouble finding documentation for the package glmmTMB.
I would like to fit a zero-truncated poisson, what do I need to specify in
"family = " for this distribution?
Thanks! Alice
[[alternative HTML
Hello,
I am wondering if I can re-subscribe to the R Programming course on
Coursera at a later point in time and pick up where I left off.
I completed everything except for one assignment in Week 3 which required
peer review of the assignment for a grade.
Thanks!
- Alice
[[alternative
Thanks so much, that worked!
- Original Message -
From: "Don MacQueen"
To: "Alice Domalik" <9a...@queensu.ca>, r-help@r-project.org
Sent: Friday, August 5, 2016 2:18:16 PM
Subject: Re: [R] adding a date column with dplyr
What's wrong with this?
.POSIXct(date(min(Date)) +
days(1) + hours(21) + minutes(30), tz="Canada/Pacific"),
no=as.POSIXct(date(min(Date)) + days(0) + hours(21) + minutes(30),
tz="Canada/Pacific")))
The code runs, but instead of having a date, I get a string of numbers like
"1403497200" in
Good night,
How can I download and install R version 3.2.5 from cran mirror of
University of São Paulo, São Paulo?
Thanks for your support.
Maria Alice P. Jacques
[[alternative HTML version deleted]]
__
R-help@r-project.org mailing list
Hi List,
I'm working with some bird GPS tracking data, and I would like to exclude
points based on the time stamp.
Some background information- the GPS loggers track each bird for just over 24
hours, starting in the evening, and continuing through the night and the
following day. What I would
Hi List,
I'm working with some bird tracking data, and to filter the data set, I need to
exclude points taken at the colony.
I would like to exclude coordinates from within a 500 meter radius of a point
centered on the colony.
However, as an R novice, I'm not sure how to accomplish this.
My
Hi List,
I'm relatively new to R, so apologies if my question is rather elementary.
I'm working with some bird tracking data and I would like to calculate the
maximum distance traveled from the colony.
For the maximum distance traveled, I was going to use the function homedist().
However, whe
Dear all,
I would like to know if it is possible to estimate an integrated choice and
latent variable model with R. If it is so, please send me the name of the
respective package.
Best regards,
Maria Alice P. Jacques
Associated Researcher
University of Brasilia - Brazil
[[alternative
h file or directory
I also installed and load RWeka package, but canot open.
It seems like I am having some issue of directories...
I am new to R, any help appreciated.
Thanks,
Alice
[[alternative HTML version deleted]]
__
R-help@r-proje
Thanks for the help.
As indicated into the R-admin manual, it was an ubuntu install problem.
But it only shows in R, as I do not use special fonts usually.
Le 15/07/2013 18:17, Prof Brian Ripley a écrit :
On 15/07/2013 15:59, Alice Julien-Laferrière wrote:
Dear all,
I am having problem
TRUE TRUE TRUE TRUE TRUEFALSE TRUE
I think this may be an issue with my installation, but I could not
figured out what was the missing package.
I tried this on other computers. I did not see the same bug.
Thanks in advance for the help,
x<-matrix(c(1,11,11,2,3,4),2,3)
y<-matrix(x(7,8,9,10,11,12),2,3)
if you want to merge them by row, then use:
rbind(x,y)
if you want to merge them by column, then use
cbind(x,y)
hope this can help you out*
Alice Xiong
On Wed, Feb 6, 2013 at 8:55 AM, Mat wrote:
> Hello together,
&
to start with, you should now what kinds of independent variables in your
data=Rail.
it looks like you depend variable is "travel".
is "Rail" the only IV in your model? it seems has been classifed to L, Q, C.
from the output, it seems the final model should be:
E(travel)=66.5+54*Rail.L-4.7 Rail.Q-
bit")
Error in clm2(Newpercentagecash ~ CollateralB + CashavailableB + LEVERAGEB, :
response needs to be a factor
I do not understand this error message. My "y" only equals 0, 1 or 2. I do not
understand what a "factor" is.
Could you help me please?
Thank you in advan
lt;- function(x){
aa <- sys.nframe()
print(aa)
}
print(testobject) #2
setMethod("print",
signature='test',
definition=function(x){
aa <- sys.nframe()
print(aa)
})
print(testob
butions if anyone thinks they maybe
able to help.
Thanks and best wishes
Alice C Hughes
"+ png(paste(out.dir, spp,'_overlap.png', sep=''),
width=nrow(spp.asc),height=ncol(spp.asc), units='px', res=300, pointsize=5,
bg='white') #start the plot
+ p
)
estimates, for example. Can't find anything, hoping not to have to program
it myself!
Thanks-
Alice Shelly
Environmental Statistician
TerraStat Consulting Group
5002 Lodge View Lane
Austin, TX 78731
(206) 362-3299
al...@blarg.net
[[alternative HTML version de
A NA NA NA NA
NA NA NA NA NA NA
NA NA NA NA NA NA
A, 21_2 3.3 2.5 67.2 44.3 53 66
What I want to see is the following:
>df3
21_2 22_2 23_2
A 3.3NA66.0
B 44.3 2.5NA
C NA 53.0 67.2
I will greatly
Awesome! Thanks so much!
On Thu, Feb 10, 2011 at 6:13 PM, Dennis Murphy wrote:
> Hi:
>
> Try
> summary(myprobit)$coefficients[, 4]
>
> HTH,
> Dennis
>
> On Thu, Feb 10, 2011 at 3:46 PM, Allie818 wrote:
>
>>
>> I can get this summary of a model that I am running:
>>
>> summary(myprobit)
>>
>> Ca
cano plots so hopefully word will manage
when I convert them all.
Thanks again
Alice
-Original Message-
From: Greg Snow [mailto:greg.s...@imail.org]
Sent: Wednesday, 14 April 2010 1:59 a.m.
To: Alice Johnstone; r-help@R-project.org
Subject: RE: Help required with png graphic production a
png.
I am using an older version of R, but didn't want to upgrade as this may cause
issues with my completed analyses and the potential changes to other functions.
Can someone suggest what it is I have missed?
Thank you very much.
Alice Johnstone
Example code:
Png("volcano.png",u
I have a vector of binary data – a string of 0’s and 1’s.
I want to weight these inputs with a normal kernel centered around entry x
so it is transformed into a new vector of data that takes into account the
values of the entries around it (weighting them more heavily if they are
near).
Example:
i have a data column of text entries:
26M_AN_C.bmp
22M_AN_C.bmp
20M_HA_O.bmp
20M_AN_C.bmp
26M_HA_O.bmp
22M_HA_O.bmp
31M_AN_C.bmp
38M_HA_O.bmp
.
.
.
.
And I would like to sort by the middle tag: AN, HA, etc.
Is there a way to parse text data in R?
In excel, I would have used the "left" and "rig
does
not appear to do the same for futility (sometimes called the 'inner
wedge').
Thanks for any assistance!
-Alice
NOTICE TO RECIPIENT: If you are not the intended recipi...{{dropped:10}}
__
R-help@r-project.org mailing list
https://
Dear All,
I wonder if anyone can please offer any advice on a model including 2 fixed
effects and 1 random effect, as well as a covariate?
The experimental design is as follows:
I have a two by two factor design, where the two factors, Age (A) and Group
size (G), both have 2 levels (old or you
29 matches
Mail list logo