Re: [R] Multiplying two vectors of the same size to give a third vector of the same size

2023-06-20 Thread Philip Rhoades via R-help
kept. Of course, if you do not want to keep the NA, that can trivially be removed: C[!is.na(C)] [1] 0.00 0.36 0.81 I actually got there myself after a bit of experimenting! - but you pointed me in the right direction! Thanks! Phil. -Original Message- From: Philip Rhoades Sent: T

Re: [R] OK, next Q - a sort of factorial on a vector

2023-06-20 Thread Philip Rhoades via R-help
Eric, On 2023-06-21 04:02, Eric Berger wrote: Hi Philip, In the decades since you learned R there have been some additions to the language. In particular, R now supports lambda functions. Applying this feature to Ivan's beautiful solution cuts down 7 characters (continuing his golfing an

Re: [R] Multiplying two vectors of the same size to give a third vector of the same size

2023-06-20 Thread Philip Rhoades via R-help
second Q was something reasonable to ask the list? Anyway now that I need to use R again, the basics should come back to me I hope - but I will check out the tutorials again in any case . . Thanks to Uwe as well (very nice!), Phil. On Tue, Jun 20, 2023 at 8:38 AM Philip Rhoades via R-h

Re: [R] OK, next Q - a sort of factorial on a vector

2023-06-20 Thread Philip Rhoades via R-help
Ivan, On 2023-06-21 03:32, Ivan Krylov wrote: В Wed, 21 Jun 2023 03:13:52 +1000 Philip Rhoades via R-help пишет: This: !(1,2,3,4,5) would give this: (2,3,4,5, 6,8,10, 12,15, 20) Do you mean taking a product of every element of the vector with all following vector elements? A

[R] OK, next Q - a sort of factorial on a vector

2023-06-20 Thread Philip Rhoades via R-help
People, What I mean is, is there an elegant way to do this: This: !(1,2,3,4,5) would give this: (2,3,4,5, 6,8,10, 12,15, 20) and this: !(1,2,NA,4,5) would give this: (2,4,5, 8,10, 20) ? Thanks! Phil. -- Philip Rhoades PO Box 896 Cowra NSW 2794 Australia E-mail: p

Re: [R] Multiplying two vectors of the same size to give a third vector of the same size

2023-06-20 Thread Philip Rhoades via R-help
< threshold] Ah, I see . . And you can of course do all the above as a one-liner. Yes. Is that what you wanted? Exactly except I meant: Result <- C[C > threshold] Thanks! Phil. -Original Message- From: R-help On Behalf Of Philip Rhoades via R-help Sent: Tues

[R] Multiplying two vectors of the same size to give a third vector of the same size

2023-06-20 Thread Philip Rhoades via R-help
between 0.0 and 1.0 or NULL - If there is a NULL in the multiplication, then the result in the cell for C is also a NULL - If there is a value less than (say) 0.01 in the multiplication, then the result in the cell for C is 0.0 Any suggestions appreciated! Phil. -- Philip Rhoades PO Box

Re: [R] Syntax help for 'Pivot_longer'

2021-11-29 Thread Philip Monk
Apologies, all. No offence was intended. I'll go away and do a lot more reading and thinking then come back with a clearly articulated query if and when that is appropriate. I'm out of time this week, so it won't be for some time. Thank you all for the helpful replies. Best wish

Re: [R] Syntax help for 'Pivot_longer'

2021-11-28 Thread Philip Monk
weather data into different columns, but I don't understand the required syntax. Thanks for your help, Philip rm(list=ls()) library(ggplot2) library(ggpubr) library(tidyverse) library(rstatix) library(ez) library(dplyr) data_long <- structure( list( Buffer = c( &

[R] Syntax help for 'Pivot_longer'

2021-11-28 Thread Philip Monk
out how to pivot this into the long format I need - the documentation doesn't provide enough syntax examples for me to work it out (I've not long been using 'R'). How do I mutate this to provide the additional columns in the long table for the weather variables? Thanks for your

Re: [R] Date read correctly from CSV, then reformatted incorrectly by R

2021-11-20 Thread Philip Monk
aving 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 Sat, Nov 20, 2021 at 12:23 PM Philip Monk wrote: > > > > Thanks, Andrew. I didn't realise as

Re: [R] Date read correctly from CSV, then reformatted incorrectly by R

2021-11-20 Thread Philip Monk
something like: > > > > > >x <- c("28/10/2016", "19/11/2016", "31/12/2016", "16/01/2016", "05/03/2017") > >as.Date(x, format = "%d/%m/%Y") > > > > > >which produces this output: > &

Re: [R] Date read correctly from CSV, then reformatted incorrectly by R

2021-11-20 Thread Philip Monk
quot;19/11/2016", "31/12/2016", "16/01/2016", "05/03/2017") > > as.Date(x, format = "%d/%m/%Y") > [1] "2016-10-28" "2016-11-19" "2016-12-31" "2016-01-16" "2017-03-05" > > > > > mu

Re: [R] Date read correctly from CSV, then reformatted incorrectly by R

2021-11-20 Thread Philip Monk
Thanks Eric & Jeff. I'll certainly read up on lubridate, and the posting guide (again) (this should be in plain text). CSV extract below... Philip Buffer28/10/201619/11/201631/12/201616/01/201705/03/2017 1002.437110889-8.696748953.2392998162.

[R] Date read correctly from CSV, then reformatted incorrectly by R

2021-11-20 Thread Philip Monk
o I make R change Date from 'chr' to 'date' without it going wrong? Suggestions/hints/solutions would be most welcome. :) Thanks for your time, Philip Part-time PhD Student (Environmental Science) Lancaster University, UK. ~ I asked a question a few weeks ago and

[R] Dates as headers causing confusion but needed to convert to Julian days for ANOVA

2021-10-25 Thread Philip Monk
900 1000 ... $ Time : Factor w/ 2 levels "1","2": 1 1 1 1 1 1 1 1 1 1 ... $ Month : Factor w/ 12 levels "January","February",..: 1 1 1 1 1 1 1 1 1 1 ... $ LST : num NA 0.803 0.803 1.044 0.475 ... Suggestions/hints/solutions would be most welcome. :) Than

Re: [R] Intended use-case for data.matrix

2020-11-04 Thread Philip Charles
in a package, you could still test against R-devel, but why make your life more difficult by *not* putting it in a package?) Duncan Murdoch On 04/11/2020 6:48 a.m., Philip Charles wrote: > Hi R gurus, > > We do a lot of work with biological -omics datasets (genomics, proteomics >

[R] Intended use-case for data.matrix

2020-11-04 Thread Philip Charles
can't see when converting a character dataset, not to factors but, straight to numeric factor levels might be that useful (but of course that doesn't mean it isn't!). I've had a look through r-help and r-devel archives and couldn't spot any discussion of this, so apo

[R] Retrosheet Data

2020-10-08 Thread Philip
.frame(Game=P[[j]]$id[1],P[[j]]$info) I keep getting the same Game, inning, team, etc. data. Can anyone give me some direction. Thanks, Philip Heinrich [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNSUBSCRI

[R] Installing Perl For Use in R

2020-10-06 Thread Philip
advise? What the website is trying to do seems rather shady. Thanks, Philip [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the

[R] Lahman Baseball Data Using R DBI Package

2020-10-02 Thread Philip
. Can anyone give me some direction? Thanks, Philip Heinrich *** tail(dbReadTable(Lahman,"batting")) ID playerID yearI

[R] NOAA .grp2 files

2020-09-04 Thread Philip
Neglected to mention in the previous email that I’m using the rNOMADS package and the FReadGrib function. Philip [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch

[R] NOAA .grb2 files

2020-09-04 Thread Philip
I’m trying to download NOAA Rapid Refresh model weather data but I keep getting the error message below. Do I just need a computer with more memory? Philip

[R] .grb2 Files

2020-09-02 Thread Philip
Any advise about how to get NOAA .grb2 files into R? Thanks. [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide

[R] Would Like Some Advise

2020-08-28 Thread Philip
anyone think I need to upgrade my wifi? Thanks, Philip [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http

[R] rNOMADS package

2020-08-24 Thread Philip
I am struggling to install a fix for the rNOMADS package which reads National Weather Service data. I copied the fix (rNOMADS_2.5.0.tar.gz) from an email to a local drive and then tried to install it with the command below. I also tried installing it without the .tar.gz extension and without t

Re: [R] Hot Air Balloon Weather Briefings

2020-08-15 Thread Philip
r Sent: Friday, August 14, 2020 2:43 PM To: Philip Cc: r-help Subject: Re: [R] Hot Air Balloon Weather Briefings Well which is it?: "I want to eliminate the data for minute 30 but keep the data for minute 31 because the balloon starts to move again at second 17. " or "It would be eve

[R] Hot Air Balloon Weather Briefings

2020-08-14 Thread Philip
32 5 3.422512 It would be even better if I could delete the rows where there were ten consecutive zero speed entries such as from minute 30 second 17 to minute 31 second 11. Thanks, Philip Heinrich [[alternative HTML version deleted

[R] rNOMAD package

2020-08-13 Thread Philip
that assume a certain level of background knowledge that I don’t have. It has something to do with OPenDAP (Data Access Protocol) which is a piece of software to grab data over the Internet. Can someone give me some direction? Thanks, Philip [[alternative HTML version deleted

[R] Parsing a Date

2020-08-02 Thread Philip
-08-01 12:00:00 1000 mb -112.987 33.6495 75.9269 49.1484 305.745 1.90155 2.04514 5 2020-08-01 12:00:00 1000 mb -112.968 33.5301 76.3019 50.2734 305.495 2.08905 1.98264 Philip Heinrich [[alternative HTML version deleted]] __ R-help@r

[R] rNOMADS Package

2020-07-28 Thread Philip
[2]]$file.name, levels, variables, domain=c(-113.20,-112.78,33.70,33.40), #an area west of Phoenix domain.type="latlon", file.type="grib2") I can grab the 12 Z forecast with [[1]] in the firs

Re: [R] National Weather Service Data

2020-07-08 Thread Philip
Thanks. Found the url's, names, and abbreviations on Daniel Bowman's rNOMADS package for R - NOMADS Real time List. Thanks. -Original Message- From: Roy Mendelssohn - NOAA Federal Sent: Wednesday, July 8, 2020 9:43 AM To: Philip Cc: r-help Subject: Re: [R] National Weath

Re: [R] National Weather Service Data

2020-07-08 Thread Philip
me to someplace that has the names of the forecast models - equivalent to gfs_0p50 for the Global Forecast System? Thanks. -Original Message- From: Roy Mendelssohn - NOAA Federal Sent: Monday, July 6, 2020 6:35 PM To: Philip Subject: Re: [R] National Weather Service Data Skimming the

Re: [R] National Weather Service Data

2020-07-06 Thread Philip
Thanks for getting back to me. It is good to know that I am on the right track. -Original Message- From: Rasmus Liland Sent: Monday, July 6, 2020 10:42 AM To: r-help Subject: Re: [R] National Weather Service Data __ R-help@r-project.org mai

Re: [R] National Weather Service Data

2020-07-06 Thread Philip
ity 2 meters above the ground and at 800 milibars for 2020 – July 6 – at ZULU time 0600. But I have no idea what the numbers 414132 – second line – mean. Any advise would be greatly appreciated. Philip Heinrich From: stephen sefick Sent: Thursday, July 2, 2020 3:20 PM To: Philip Cc: r-help

[R] National Weather Service Data

2020-07-02 Thread Philip
Is anyone out there familiar with rNOMADS? It is a package to get into National Weather Service forecasting data with R? I'm not sure the Weather Service software named wgrib2 loaded correctly because some of the stuff won't run and I can't make much sense out of some of the output. Thanks.

[R] rNOMADS Package

2020-06-23 Thread Philip
Does anyone out there have any advise about how to download the wgrib2 software from the National Weather Service onto a Windows 10 computer? I tried using the instructions from Bovine Aerospace website but am not sure if it loaded correctly. Thanks, Philip [[alternative HTML version

Re: [R] A general question about using Bayes' Theorem for calculating the probability of The End of Human Technological Civilisation

2019-03-19 Thread Philip Rhoades
would be immediately posting at CrossValidated.com (i.e., stats.stackexchange.com) Thanks - I will check that out . . P. -- David. On March 19, 2019 10:42:24 AM PDT, Philip Rhoades wrote: People, I have only a general statistics understanding and have never actually used Bayes

[R] A general question about using Bayes' Theorem for calculating the probability of The End of Human Technological Civilisation

2019-03-19 Thread Philip Rhoades
ear? Once the prior gets small enough people won't bother with the calculations anyway . . Does anyone know of any existing work on this topic? I want to write a plain-English doc about it but I want to have the stats clear in my head . . Thanks, Phil. -- Philip Rhoades PO Box 896 C

[R] [R-pkgs] New Package pgsc

2018-11-09 Thread Philip Barrett
reatment effects. The vignette can be found at < https://cran.r-project.org/web/packages/pgsc/vignettes/pgsc_vignette.pdf>. Suggestions and comments much appreciated, Philip Barrett Email: pobarrett at gmail dot com Github: https://github.com/philipbarrett/pgsc [[alternativ

Re: [R] rdb and rds files include abolute file paths / help understanding how lazy-load dbs are created

2017-04-20 Thread Philip Rinn
e lack of > response may have been self-inflicted. Ok, let's give you an example: philip@debian:~$ wget https://cran.r-project.org/src/contrib/ald_1.1.tar.gz philip@debian:~$ mkdir test philip@debian:~$ mkdir test1 philip@debian:~$ cp ald_1.1.tar.gz test/ philip@debian:~$ cp ald_1.1.tar.gz tes

Re: [R] rdb and rds files include abolute file paths / help understanding how lazy-load dbs are created

2017-04-20 Thread Philip Rinn
h therefore is to replace those absolute paths by relative[3] paths. But to do so I need to understand where exactly those absolute paths are injected in the files - that's why I asked for help in my fist mail - sorry for not being clear enough. Best, Philip [1] https://stat.ethz.ch/piper

[R] rdb and rds files include abolute file paths / help understanding how lazy-load dbs are created

2017-04-11 Thread Philip Rinn
eone enlighten me by pointing me to some docs or by briefly describing the path? Any help/comments are very welcome. Best, Philip PS: could you CC me, I'm not on the list. Thanks. [1] at least in /R/.rdb and /help/.rdb [2] at least in /help/paths.rds [3] https:

[R] Question regarding Naive Bayes

2016-11-30 Thread PHILIP GLADWIN
Hello,   I am working with the naïve bayes function inlibrary(e1071).   The function calls are: transactions.train.nb = naiveBayes(as.factor(DealerID) ~    as.factor(Manufacturer)     + as.factor(RangeDesc)    

[R] A Neural Network question

2016-04-18 Thread Philip Rhoades
to get this last bit of the spreadsheet working so I can move on to doing actual work with the R packages with better understanding? Thanks, Phil. -- Philip Rhoades PO Box 896 Cowra NSW 2794 Australia E-mail: p...@pricom.com.au __ R-help@r

[R] [R-pkgs] New R package for K-S goodness-of-fit tests

2016-03-29 Thread Novack-Gottshall, Philip M.
Greetings, We wanted to announce a new R package 'KScorrect' that carries out the Lilliefors correction to the Kolmogorov-Smirnoff test for use in (one-sample) goodness-of-fit tests. It's well-established it's inappropriate to use the K-S test when sample statistics are used to estimate parame

[R] TSLS / 2SLS with a binary outcome

2014-11-30 Thread Philip Robinson
outcome. If someone could knows of a package or function and could help by pointing me in the right direction I would be most grateful. Kind regards Philip [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https

[R] Using R for modelling Australian Senate Election in NSW?

2014-09-30 Thread Philip Rhoades
nting wheels etc) would be much appreciated! Regards, Phil. -- Philip Rhoades GPO Box 3411 Sydney NSW 2001 Australia E-mail: p...@pricom.com.au __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do

[R] cex values being ignored in the curve function

2014-04-19 Thread Philip Robinson
main, axis titles or axis numbers to change in size, whatever I do. I am using a macbook pro, with mavericks, R-studio and R 3.1.0 "spring-dance", and I am initiating the plot with: X11( width=width , height=height , type="cairo"). Any help would be greatly appreciated.

Re: [R] GGPLOT Question - #2

2014-04-06 Thread Philip Rhoades
People, On 2014-04-06 22:31, Philip Rhoades wrote: People, OK, the last two bits of the puzzle - can I colour the bars independently and change the scale from linear to logarithmic? To answer my own question - the attached file works for me but I guess could be improved? Thanks, Phil

Re: [R] GGPLOT Question - #2

2014-04-06 Thread Philip Rhoades
People, OK, the last two bits of the puzzle - can I colour the bars independently and change the scale from linear to logarithmic? Thanks, Phil. On 2014-04-06 22:23, Philip Rhoades wrote: Stephen, On 2014-04-06 22:09, stephen sefick wrote: add +coord_flip() at the end. Does that do it

Re: [R] GGPLOT Question

2014-04-06 Thread Philip Rhoades
Stephen, On 2014-04-06 22:09, stephen sefick wrote: add +coord_flip() at the end. Does that do it? Wow! - that was a fast response! - yes that works - thanks a lot! Regards, Phil. On Sun, Apr 6, 2014 at 7:03 AM, Philip Rhoades wrote: People, I have this script: library(ggplot2

[R] GGPLOT Question

2014-04-06 Thread Philip Rhoades
to get geom_crossbar to print horizontally? - I couldn't find it . . and there doesn't seem to be a horizontal equivalent? Thanks, Phil. -- Philip Rhoades GPO Box 3411 Sydney NSW 2001 Australia E-mail: p...@pricom.com.au __ R-help

[R] cum sums

2014-03-09 Thread Philip A. Viton
this using "aggregate" and passing the function "cumsum," but I can't get it to work. Can someone tell me how to do this? Thanks! Philip A. Viton City Planning, Ohio State University 275 West Woodruff Avenue

[R] Fast linear convolution with R

2014-02-27 Thread Philip Wette
(length=1e5) > b = vector(length=1e5) > system.time( convolve(a, b, type="o") ) user system elapsed 303.129 0.099 303.635 Best, Philip -- Philip Wette, M.Sc. E-Mail: we...@mail.upb.de University of Paderborn Tel.: 05251 / 60-1716 Department of Compu

[R] subset of factors in a regression

2013-07-01 Thread Philip A. Viton
't involve a lot of new variables? Thanks! Philip A. Viton City Planning, Ohio State University 275 West Woodruff Avenue, Columbus OH 43210 vito...@osu.edu __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listi

[R] HMM Package parameter estimation

2013-04-15 Thread Richard Philip
Hi, I am having difficulties estimating the parameters of a HMM using the HMM package. I have simulated a sequence of observations from a known HMM. When I estimate the parameters of a HMM using these simulated observations the parameters are not at all close to the known ones. I realise the estim

Re: [R] ROCR package not installing

2012-11-22 Thread Philip Robinson
package ‘ROCR’ * removing ‘/home/probinson/R/x86_64-pc-linux-gnu-library/2.10/ROCR’ The downloaded packages are in ‘/tmp/Rtmpn1DjHt/downloaded_packages’ Warning message: In install.packages("ROCR", dep = T) : installation of package 'ROCR' had non-zero ex

Re: [R] ROCR package not installing

2012-11-22 Thread Philip Robinson
My version is: Linux bioinform08 2.6.32-33-generic #70-Ubuntu SMP Thu Jul 7 21:13:52 UTC 2011 x86_64 GNU/Linux Ubuntu 10.04.3 LTS R version 2.10.1 (2009-12-14) Philip -Original Message- From: Pascal Oettli [mailto:kri...@ymail.com] Sent: Thursday, 22 November 2012 4:20 PM To: Philip

[R] ROCR package not installing

2012-11-21 Thread Philip Robinson
ckage code? Thank you Philip probinson@bioinform08:/tmp/RtmpO0rFbx/downloaded_packages$ R CMD INSTALL ROCR_1.0-4.tar.gz * installing to library '/home/probinson/R/x86_64-pc-linux-gnu-library/2.10' * installing *source* package 'ROCR' ... ** R ** data ** demo ** p

[R] most efficient plyr solution

2012-09-02 Thread Philip de Witt Hamer
implementation --Philip ### CODE START ### Ax <- matrix(c(2,3,5,6, 3,7,8,9, 8,2,1,3), ncol = 4) Ay <- matrix(c(9,8,5,7, 4,9,9,9, 8,7,5,4), ncol = 4) Bx <- matrix(c(1,5,9,8, 4,7,8,9, 2,3,2,1), ncol = 4) By &l

Re: [R] A trivial plot gives open circles as the plot char but another one gives me "q"s . . why is this?

2012-04-03 Thread Philip Rhoades
David, On 2012-04-03 22:29, David Winsemius wrote: On Apr 3, 2012, at 1:19 AM, Philip Rhoades wrote: People, On my home computer with a real plot I get what I expect - open circles as the plot character - on my work computer I get "q"s ! So I tried a trivial test plot o

Re: [R] A trivial plot gives open circles as the plot char but another one gives me "q"s . . why is this?

2012-04-03 Thread Philip Rhoades
Brian, On 2012-04-03 18:58, Prof Brian Ripley wrote: On Tue, 3 Apr 2012, peter dalgaard wrote: On Apr 3, 2012, at 07:19 , Philip Rhoades wrote: People, On my home computer with a real plot I get what I expect - open circles as the plot character - on my work computer I get "q&quo

[R] A trivial plot gives open circles as the plot char but another one gives me "q"s . . why is this?

2012-04-02 Thread Philip Rhoades
d although the home computer is Fedora 16 and the work one is Fedora 15). It is very frustrating . . Thanks, Phil. -- Philip Rhoades GPO Box 3411 Sydney NSW 2001 Australia E-mail: p...@pricom.com.au __ R-help@r-project.org mailing list https

[R] identifying a column name correctly to use in a formula

2012-02-29 Thread Philip Robinson
; not found #same as above for (i in 7:33) { label <- eval(as.formula(colnames(n)[i])) model1 <- glm(AS~label*interaction,family=binomial("logit"),data=n) X <- summary(model1)$coefficients[2,1] Y <- c(label,X) vector <- rbind(vector,Y) } Error in eval(expr, env

[R] nested if else statements

2012-02-05 Thread Philip Robinson
I have a vector of 2,1,0 I want to change to 0,1,2 respectively (the data is allele dosages) I have tried multiple nested if/else statements and looked at the ?if help and cannot work out what is wrong, other people have posted code which is identical and they state works. Any help would be great

[R] extracting from data.frames for survival analysis

2012-01-26 Thread Philip Robinson
Sorry if this seems basic but cannot understand why attempt 1 or 2 doesn't work. thanks Philip __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.

[R] loops

2012-01-24 Thread Philip Shirk
I've been struggling to get a loop to work. I want to create a new variable in each loop with data from some function. for example: # part of the names for the variables to be created Frags <- c("F04", "F05", "F07", "F09", "F11", "F13", "F14", "F17", "F18", "F19", "P20", "Main") for(obs in Frags

[R] determining the difference between 2 character strings

2012-01-15 Thread Philip Robinson
[1] "imm_5_96030100" "imm_5_96377451" "imm_5_96334858" "imm_5_96318074" "imm_5_96356643" "imm_5_96389465" thanks Philip __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE

[R] Lapack routine dgesv: system is exactly singular

2012-01-09 Thread Philip Robinson
Hi I have a problem with this error, I have searched the archives and found previous discussion about this, can I cannot understand how the explanations apply to what I am trying to do. I am trying to do Log_rank Survival analysis, I have included tables and str command, is it a factor/int

[R] creating vectors from data-frames

2012-01-08 Thread Philip Robinson
one row data frame. What is required to actually create a vector. Many thanks Philip > data V1 V2 V3 V4 V5 V6V7V8V9 V10 V11 1 E 2369 2304 2312 2460 2645 3038 3265 3760 3904 4421 2 NZ 705 817 907 917 954 1,026 1,065 1,125 1,276 1,449 &

[R] partial dependence plots in 'party'

2011-11-06 Thread Philip Dilts
Hello, I can't seem to figure out how to generate partial dependence plots for random forest models generated with the 'party' package. Is there a function for this that I just haven't found yet? Thanks -Philip Dilts __ R-help@r

Re: [R] R for loop stops after 4 iterations

2011-10-23 Thread Philip Robinson
That's fantastic, thank you very much, the qnorm option is interesting, I will have to play around with it. Many thanks again Philip -Original Message- From: R. Michael Weylandt [mailto:michael.weyla...@gmail.com] Sent: Sunday, 23 October 2011 10:28 AM To: Philip Robinson Cc: r-h

[R] R for loop stops after 4 iterations

2011-10-22 Thread Philip Robinson
I have a data frame called e, dim is 27,3, the first 5 lines look like this: V1 V2 V3V4 1 1673 0.36 0.08 Smith 2 167 0.36 0.08 Allen 399 0.37 0.06 Allen 4 116 0.38 0.07 Allen 595 0.41 0.08 Allen I am trying to calculate the proportion/p

[R] Portrait and Lanscape PDF in the one document

2011-10-17 Thread Philip Rhoades
People, I want to create a multi-page PDF doc and the pdf command works fine if I only use Portrait OR Landscape but how do I create a document that contains BOTH sorts of pages? Is it possible? - I couldn't find info about it. Thanks, Phil. -- Philip Rhoades GPO Box 3411 Sydne

[R] Data frame aggregation

2011-10-07 Thread PHILIP GLADWIN, BLOOMBERG TRADEBOOK:
Hello, Could anybody help me with this question? Example data frame NAME TICKER SHARES PERFORMANCE John ABC1000.05 John ABC1000 1.5 Alice EFG20 0.3 Paul HIJ50 1.0 Paul JKL

Re: [R] Boxplot BUT with Mean, SD, Max & Min ?

2011-09-26 Thread Philip Rhoades
Gabor, On 2011-09-27 04:31, Gabor Grothendieck wrote: On Mon, Sep 26, 2011 at 1:45 PM, Philip Rhoades wrote: Gabor, Bill, On 2011-09-27 02:51, Gabor Grothendieck wrote: On Mon, Sep 26, 2011 at 12:11 PM, Philip Rhoades wrote: Gabor, On 2011-09-27 00:35, Gabor Grothendieck wrote

Re: [R] Boxplot BUT with Mean, SD, Max & Min ?

2011-09-26 Thread Philip Rhoades
Gabor, Bill, On 2011-09-27 02:51, Gabor Grothendieck wrote: On Mon, Sep 26, 2011 at 12:11 PM, Philip Rhoades wrote: Gabor, On 2011-09-27 00:35, Gabor Grothendieck wrote: On Mon, Sep 26, 2011 at 9:56 AM, Philip Rhoades wrote: People, It appears that there is no way of getting

Re: [R] Boxplot BUT with Mean, SD, Max & Min ?

2011-09-26 Thread Philip Rhoades
Gabor, On 2011-09-27 00:35, Gabor Grothendieck wrote: On Mon, Sep 26, 2011 at 9:56 AM, Philip Rhoades wrote: People, It appears that there is no way of getting Boxplots to plot using Mean, SD, Max & Min - is there something else that would do what I want?  I couldn't find it .

[R] Boxplot BUT with Mean, SD, Max & Min ?

2011-09-26 Thread Philip Rhoades
People, It appears that there is no way of getting Boxplots to plot using Mean, SD, Max & Min - is there something else that would do what I want? I couldn't find it . . Thanks, Phil. -- Philip Rhoades GPO Box 3411 Sydney NSW 2001 Australia E-mail: p...@pric

[R] Increase space between xlab and X axis tick labels

2011-09-25 Thread Philip Rhoades
e space between xlab and the X axis tick labels? Thanks, Phil. -- Philip Rhoades GPO Box 3411 Sydney NSW 2001 Australia E-mail: p...@pricom.com.au __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do

[R] Changing font type within y axis labels

2011-07-29 Thread Philip Boulcott
t how do I apply the font change to only "Pecten maximus"? Rgds Phil .... . Dr Philip Boulcott Marine Ecosystems Processes Marine Scotland - Science Scottish Government | Marine Laborator

[R] Converting large JSON data into multidimensional array

2011-06-29 Thread Philip Rhoades
1]] [1] "01.01.01.02" [[3]][[2]] [1] -2.303347 [[4]] [[4]][[1]] [1] "01.01.01.03" [[4]][[2]] [1] -2.354964 . . I would like to convert the data into a: 50.32.20.22 array and be able to do calculations on the array like: mean( tst[ 50,,20,00 ] ) etc Suggestions

[R] reshape: cast(x, a ~ b ~ .) vs. cast(x, a ~ b) difference

2011-06-24 Thread Philip Kensche
1 g2 -0.3653498 3t2 g1 0.2653603 4t2 g2 -0.6248085 - The second cast() above, however only returns the averages for the fields (t1, g1) and (t1, g2) but these twice. To be honest, to me this looks like a bug ... but maybe I miss something here. I would appreciate any e

[R] different results from nls in 2.10.1 and 2.11.1

2011-06-18 Thread Philip Bett
2 minor 10.1 year 2009 month 12 day14 svn rev50720 language R version.string R version 2.10.1 (2009-12-14) Thanks, Phil Bett -- ---- Dr Philip Bett(Room 2.

Re: [R] Multiple (7) Y axes?

2011-06-16 Thread Philip Rhoades
(10,0,0.4)),yaxt='n',col=i,type='l') axis(4,line=(i-1)*1.5,col=i-1,col.ticks=i-1) } You may need to tweek around the options a bit and check that the tickmarks are actually labelling the correct axes and that the colors correspondI did not check this thoroughly! HTH Jannis

[R] Multiple (7) Y axes?

2011-06-16 Thread Philip Rhoades
plot but I couldn't find examples of any more than that - is it possible? Thanks, Phil. -- Philip Rhoades GPO Box 3411 Sydney NSW2001 Australia E-mail: p...@pricom.com.au __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/

[R] Textmin

2011-06-14 Thread Philip Heinrich
Working my way through Feinerer, Hornik, & Meyer's (2008) Text Mining Infrastructure in R but am having trouble duplicating some of the examples in 3.2 Algorithms. When I try to use functions such as appendMeta, tmupdate, and appendMeta I get a "cannot find function..." error. The R documentation

[R] Importing JSON Hash Table

2011-06-03 Thread Philip Rhoades
People, I have found out how to create basic R hash tables and use "ls" and "get" and I can import my JSON hash table file with: x <- fromJSON( file="t.json" ) but if I have previously created x with: x = new.env(hash=T) - as soon as I import from the file, x stops being a hash table . .

[R] spdep::poly2nb problem

2011-05-07 Thread Philip A. Viton
ot longer, of course --- Florida has 2 neighbors (correctly: AL and GA). Can anyone tell me what's going wrong here? Thanks! Philip A. Viton City Planning, Ohio State University 275 West Woodruff Avenue, Columbus OH 43210 vito...@osu.edu ___

[R] mgcv gam predict problem

2011-03-28 Thread Philip Gautier
ed the argument 'outer.ok=TRUE' as you can see, but it hasn't helped. How can I obtain this prediction? Thanks, Philip Gautier Dept. of Mathematics and Statistics American University, Washington, DC __ R-help@r-project.org mailing list h

[R] rpanel rp.tkrplot: x&y when using layout

2011-02-24 Thread Philip Wilson
don't match. For example in the following code the (0,0) and (1,1) corners of the bottom left plot are given as approx (-.1,-.05) and (.23,.45). Thanks for any help, Philip Wilson library(rpanel) panel<-rp.control() plots<-function(panel) { par(mar=rep(1.5,4)) layout(rbind(1:3,4:6

Re: [R] ifelse command

2010-08-18 Thread Philip Wong
Hi Dennis, I see your point about using a different name for the runif() functions, other then the one I used to stimulate the bias coins. I start to get what you and David meant after thinking it through for a while regarding with comparison the biased dice and the uniform distribution, but the

Re: [R] ifelse command

2010-08-18 Thread Philip Wong
Hi Josh, I think I know where does the 50+ warning is coming from, because I used n in runif(n), similarly I get 50+ warnings if I use runif(1000). Yet if I use runif(1) the warnings() doesn't show. -- View this message in context: http://r.789695.n4.nabble.com/ifelse-command-tp2329538p2330597.

Re: [R] ifelse command

2010-08-18 Thread Philip Wong
well to be honest, it is a assignment for the Bayesian statistic paper I wish to take later in the academic year. But I'm a slow learner, so I'm going to try out some of the assignments posted in the university forum hoping to get some practice in advance. Could you please elaborate more on the

[R] ifelse command

2010-08-18 Thread Philip Wong
hello people, I want to make a biased dice using the sample() function and print out the results after n number of runs, I've successfully generated the dice using the following command: mydie2<-function(n=1000,y=NULL,...){ for(i in 1:n){ x<-sample(1:6,n,replace=TRUE,prob=c(1,1,2,3,2,1)/10) x=runi

Re: [R] Packages built before R 2.10.0

2010-07-16 Thread Philip Whittall
Hi Duncan, That fixed it. Many thanks indeed, I now know what to do if it happens again, Philip -Original Message- From: Duncan Murdoch [mailto:murdoch.dun...@gmail.com] Sent: 16 July 2010 16:00 To: Philip Whittall Cc: r-help@r-project.org Subject: Re: [R] Packages built before R

Re: [R] Packages built before R 2.10.0

2010-07-16 Thread Philip Whittall
ion 2.9.2 and help will not work correctly Please re-install it > require(car) > require(candisc) > I am using the mirror from Imperial College London and a check on the \library\car subdirectory of my R-2.11.1 installation show that it was updated at the expected time, Thanks,

Re: [R] Packages built before R 2.10.0

2010-07-16 Thread Philip Whittall
d from the console pull down menu. I have probably missed something obvious, Thanks, Philip -Original Message- From: Duncan Murdoch [mailto:murdoch.dun...@gmail.com] Sent: 16 July 2010 15:24 To: Philip Whittall Cc: r-help@r-project.org Subject: Re: [R] Packages built before R 2.10.0

[R] Packages built before R 2.10.0

2010-07-16 Thread Philip Whittall
and not only affects the package concerned, but also all its dependents. Is there anything I can do at my end, or do I have to wait for the packages to be re-built, Thanks, Philip This message should be regarded as confidential. If you have received this email in error please notify the sender a

  1   2   >