[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] 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] 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] 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

[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.

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

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-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-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

[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

[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] 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] 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

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] 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

[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] .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] 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] 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] use of aggregate

2010-06-10 Thread Philip
Dear list, Is it possible to replace the median in the following code so as to calculate 5 and 95% tiles? with( raunheim, aggregate(no, by = list(wd,hr), FUN = "median", na.rm=TRUE) ) Regards, Philip Sinclair __ R-help@r-project.org ma

[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:

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

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

[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

[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

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] 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] 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] 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] 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] Ensembles in cforest

2010-03-16 Thread Philip Whittall
ut haven't been able to work out how this sequence of nested lists is structured or if any of the items are named. Any help would be appreciated. I'm running R2.10.0 on windows XP. Kind Regards, Philip This message should be regarded as confidential. If you have received this email in

[R] producing a QQ plot.

2010-03-27 Thread Philip Wong
Hello everyone I'm a beginner in Stats and R, I'm using R 2.10.1. I need to create a multivariate qq plot, there is 8 variable group with each has 55 number of input. An example of what I did so far, just to get my point out: > data=read.csv(file.choose(),header=T) > data country

Re: [R] producing a QQ plot.

2010-03-27 Thread Philip Wong
Hello, this is the first 10 data of the population. country village group av_expenP2ary_edno_fisher B_Leth B_LutjanWt_Leth Wt_Lutjan Cook IslandsAitutakiD 5239.127472 0.7 666.9998558 3.286283997 1.971519001 520.6454552

Re: [R] producing a QQ plot.

2010-03-27 Thread Philip Wong
Aha! I see now! thanks guys! really helpful! -- View this message in context: http://n4.nabble.com/producing-a-QQ-plot-tp1693228p1693259.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org mailing list https://stat.et

[R] Problems faced with Levene Test using R

2010-03-27 Thread Philip Wong
Hello everyone, I'm trying to build Levene's test. The below command is what I used to do the test, I also included the error it prompts up and some data example that I used when trying to build the test. Can someone please tell me what did I do wrong? thanks in advance! > res=lm(as.matrix(xx$B

[R] how can I stop getting email from every comment posted in this forum?

2010-04-07 Thread Philip Wong
hello people, I didn't know where should post this thread, I asked Hugo the nabble administrator and his response was I should be able to unsubscribed from getting an email from every comment or response posted here. Yet I couldn't find the method nor the button to click to do so. I even change

[R] Scree diagram,

2010-05-01 Thread Philip Wong
hello, I've two questions today. 1) I'm trying to do a scree diagram, I did a Google for a specific command I could used to do so. All I could find is a screeplot. Are they the same command? 2) what command can I used to present a PC scores, eigenvectors of the PC scores, and component correlat

[R] hardcoded paths hamper running R on heterogeneous grid

2009-10-15 Thread Philip Kensche
bug? In any case, this *characteristic* makes it impossible to run R on a heterogeneous computing grid in a setting in which R is locally installed (including required modules) on one machine and that installation is copied to each computing element. Philip -- | Philip Kensche | http

[R] parsing Google search results

2009-11-16 Thread Philip Leifeld
<- readLines(address) grep("cran", lines[3]) Thanks Philip -- Philip Leifeld Max Planck Institute for | +49 (0) 1577 6830349 (mobile) Research on Collective Goods | +49 (0) 228 91416-73 (phone) MaxNetAging Doctoral Fellow | +49 (0) 228 91416-62 (fax) Kurt-Schum

[R] help with graphing -- Points in my graph are not apparent, always displayed in steps

2009-12-11 Thread philip robinson
I am trying to graphically represent a large set of data who's result is not strictly uniform. http://n4.nabble.com/file/n961629/egraph_rules_list_2.png The scatter plot to the left has all of the data rising in steps however I know that there are cases within my data that do not fit the dotted

Re: [R] help with graphing -- Points in my graph are not apparent, always displayed in steps

2009-12-13 Thread philip robinson
http://n4.nabble.com/file/n962784/egraph_rules_list_2.png The red X's that are listed above represent data points that have been completely ignored in production of my graph. I know that in a specified sentence length there are variations in number of Conjunctions -- View this message in context:

Re: [R] help with graphing -- Points in my graph are not apparent, always displayed in steps

2009-12-13 Thread philip robinson
Sorry to have not provided enough information in my prior post. Here is a summary of the calculation set that I am doing. The histograms have changed since my last post, but I am not so concerned about them. The scatter plots do not show all of the points, they seem to round off to the most common

Re: [R] help with graphing -- Points in my graph are not apparent, always displayed in steps

2009-12-13 Thread philip robinson
Thank you very much, -- Philip David Winsemius wrote: > > > -- View this message in context: http://n4.nabble.com/help-with-graphing-Points-in-my-graph-are-not-apparent-always-displayed-in-steps-tp961629p963227.html Sent from the R help mailing list archive at N

[R] Extract variance from dist(cluster.data)

2009-12-17 Thread Philip Silva
e(cluster.hclust,10) # 10 == number of clusters! write.table(cluster.hcut, "/tmp/cluster_result.csv") Now I would like to know the Variance of each cluster in hcut. Is it correct that the variances are already encoded in dist(cluster.data)? How can I get it? Thanks a lot in advance. Best re

[R] Environments

2009-04-02 Thread Philip Whittall
(x,"C","Z") A B Z D 1 2 3 4 > x A B C D 1 2 3 4 > I am running R version 2.8.0 on a windows XP platform, Thanks in anticipation, Philip This message should be regarded as confidential. If you have received this email in error please notify the sender and destroy i

[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

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] 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

[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

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.

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
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
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

[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] 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( &

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

[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

[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

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

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 - #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

[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.

[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

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

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

[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] 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

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

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
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

[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] 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

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
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

[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] what command to use for standization

2010-05-29 Thread Philip Wong
what command to use to standardize my data to mean = 0, and SD=1. the data I want to standardize/centroid is in column format. So I'm thinking of using: col.mean.stdised=apply(data.df,2,function(z){z-mean(z)}) but, what command should I use to put my SD =1? Thanks! -- View this message in co

[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

[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] 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] 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/

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] 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.

[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] 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] 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] 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] 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] 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] 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

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 .

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 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

[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] 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

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] 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

[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

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

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

[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

  1   2   >