[R] How to slice the array?

2021-11-01 Thread Alice
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

[R] Translation of the charter

2021-11-01 Thread 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

[R] Multivariate random forests in R - how to obtain variance explained for multiple responses in randomForestSRC package - or other package

2017-07-11 Thread Alice Eldridge
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

[R] glmmTMB

2017-06-15 Thread Alice Domalik
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

Re: [R] Did not complete an assignment in time for students to grade

2017-05-24 Thread Alice Nix
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

Re: [R] adding a date column with dplyr

2016-08-06 Thread Alice Domalik
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?

[R] adding a date column with dplyr

2016-08-05 Thread Alice Domalik
.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

[R] R version 3.2.5

2016-07-25 Thread Maria Alice Jacques
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

[R] filtering data by the time stamp

2016-06-21 Thread Alice Domalik
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

[R] Excluding coordinates that fall within a circle

2016-06-17 Thread Alice Domalik
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

[R] help with r package "trip"

2016-06-14 Thread Alice Domalik
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

[R] Use of R for estimation of Discrete Choice Models incorporating latent variables

2015-12-09 Thread Maria Alice Jacques
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

[R] Installed R to Windows, but having trouble with read.csv

2015-03-02 Thread Mello Cavallo, Alice
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

Re: [R] Problem with plot in several cases, font issue?

2013-07-16 Thread Alice Julien-Laferrière
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

[R] Problem with plot in several cases, font issue?

2013-07-15 Thread Alice Julien-Laferrière
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,

Re: [R] merge 2 data.frames

2013-02-06 Thread Alice Xiong
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, &

Re: [R] The interpretation of lm(y~x)?

2013-02-06 Thread Alice Xiong
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-

[R] Ordered probit using clm2

2012-11-06 Thread Alice LAMBERTON
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

[R] S3 / S4 Method for print and frames

2012-07-06 Thread Julien-Laferriere Alice
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

[R] FW: Overlapping area Script

2012-05-07 Thread alice Hughes
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

[R] confidence interval on mean in log-regression

2011-05-26 Thread Alice Shelly
) 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

[R] indexing into a data.frame using another data.frame that also contains values for replacement

2011-04-30 Thread Alice Wines
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

Re: [R] Getting p-value from summary output

2011-02-11 Thread Alice Lin
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

Re: [R] Help required with png graphic production as text has shadows?

2010-04-13 Thread Alice Johnstone
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

[R] Help required with png graphic production as text has shadows?

2010-04-12 Thread Alice Johnstone
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

[R] Weighting data with normal distribution

2009-03-27 Thread Alice Lin
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:

[R] Text data

2009-01-28 Thread Alice Lin
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

[R] group sequential analysis - stopping for futility

2008-10-28 Thread Alice . Pressman
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://

[R] Random and fixed effect model with a covariate

2008-01-29 Thread Sophie Alice Octavia Armitage
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