[R] Post Details for Two ASA Awards

2023-09-18 Thread P. D. Waggoner
Please post to R-help: Hi all - I wanted to share a message putting TWO upcoming awards on your radar. These are jointly sponsored by the Graphics and Computing sections of the American Statistical Association (ASA): The student Paper Award. Full details here: https://community.amstat.org/j

Re: [R] Problem Compiling v-4.x.x

2021-11-09 Thread Stephen P. Molnar
On 11/09/2021 04:52 AM, Duncan Murdoch wrote: On 08/11/2021 3:56 p.m., Stephen P. Molnar wrote: On 11/08/2021 03:15 PM, Duncan Murdoch wrote: On 08/11/2021 2:57 p.m., Stephen P. Molnar wrote: I have uptodate Debian Buster on my Linux platform and have been compiling R distros for quite

Re: [R] Problem Compiling v-4.x.x

2021-11-08 Thread Stephen P. Molnar
On 11/08/2021 03:15 PM, Duncan Murdoch wrote: On 08/11/2021 2:57 p.m., Stephen P. Molnar wrote: I have uptodate Debian Buster on my Linux platform and have been compiling R distros for quite some time, usually with success. This time I have encountered the same error in my attempts to

[R] Problem Compiling v-4.x.x

2021-11-08 Thread Stephen P. Molnar
Thanks in advance. -- Stephen P. Molnar, Ph.D. www.molecular-modeling.net 614.312.7528 (c) Skype: smolnar1 __ 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 ht

[R] [R-pkgs] diveMove 1.6.0 released

2021-05-17 Thread Sebastian P. Luque
see help(diveMove-defunct) and help(diveMove-deprecated) for details. https://github.com/spluque/diveMove -- Sebastian P. Luque ___ R-packages mailing list r-packa...@r-project.org https://stat.ethz.ch/mailman/listinfo/r-packages

[R] R Script Modification Questions

2020-08-18 Thread Stephen P. Molnar
Script every time the date changes. I'd appreciate assistance in making these changes. Thanks in advance,. -- Stephen P. Molnar, Ph.D. www.molecular-modeling.net 614.312.7528 (c) Skype: smolnar1 __ R-help@r-project.org mailing list -- To UNSUBSCRIB

Re: [R] Ggplot2 Line Problem

2020-08-17 Thread Stephen P. Molnar
t;)) + ylim(0, 175) + labs(x = "Date", y = "Number of Tests")+ ggtitle("COVID-19 Tests in Ohio \n (8/15/20)")+ theme_bw() + theme(axis.text.x = element_text(angle = 30, hjust = 1), plot.title = element_text(hjust = 0.5)) Hope this helps, Rui B

[R] Ggplot2 Line Problem

2020-08-16 Thread Stephen P. Molnar
nes rather that the code (the aspplicable plines) uis: ggplot(aes(x = datO[ ,"date"],y = datO[ ,"positive"]))+ geom_line(linetype = "solid",color = 'red')+ geom_line(linetype = "dotdash",y = datO[ ,"negative"], color = 'blue')+ geo

[R] Date Conversion Problem

2020-08-12 Thread Stephen P. Molnar
statistics using the date format MMDD.I have done some searching, but I can't seem to find a solution (that I can understand). How can I change the date forma from MMDD tp -MM-DD? Thanks is advanced. -- Stephen P. Molnar, Ph.D. www.molecular-modeling

[R] Missing Library

2019-07-15 Thread Stephen P. Molnar
y research program and I really need a solution. Thanks in advance. -- Stephen P. Molnar, Ph.D.Life is a fuzzy set http://www.Molecular-Modeling.net Multivariate and stochastic 614.312.7528 (c) Skype: smolnar1 __ R-help@r-project.org ma

[R] aggregate output to data frame

2019-03-27 Thread cir p via R-help
Dear users, i am trying to summarize data using "aggregate" with the following command: aggregate(pcr$Ct,c(pcr["Gene"],pcr["Type"],pcr["Rep"]),FUN=function(x){c(mean(x), sd(x), sd(x)/sqrt(sd(x)))}) and the structure of the resulting data frame is 'data.frame':66 obs. of  4 variables: $ Gen

[R] [R-pkgs] arsenal v3.0.0: An Arsenal of 'R' Functions for Large-Scale Statistical Summaries

2019-03-26 Thread Heinzen, Ethan P. via R-packages
I'm pleased to announce the release of the "arsenal" package v3.0.0 on CRAN (https://cran.r-project.org/package=arsenal)! "arsenal" has experienced some major growth in the last few months, starting with the release of v2.0.0 in January. We tried to maintain backwards compatibility wherever po

Re: [R] fields package question

2018-12-25 Thread M P
Actually, let's set it grid_new.l <- list(abcissa=c(-15.0,-14.5),ordinate=y) to avoid out of bounds On Tue, Dec 25, 2018 at 4:41 PM M P wrote: > Thanks, Eric, for looking into that. > The values are below and since I subset the new abcissa is smaller range > grid_new.l <-

Re: [R] fields package question

2018-12-25 Thread M P
rmatted emails are not passed > along. > > > > On Tue, Dec 25, 2018 at 4:13 AM M P wrote: > >> Hello, >> I used commands below to obtain a surface, can plot it and all looks as >> expected. >> How do I evaluate values at new point. I tried as below but

[R] fields package question

2018-12-24 Thread M P
dinate=y) xg <- make.surface.grid(grid.l) out.p <- as.surface(xg,z) plot.surface(out.p,type="p") tried: grid_new.l <- list(abcissa=c(-15.0,-10.),ordinate=y) xg_new <- make.surface.grid(grid_new.l) out_new.p <- predict.surface(out.p,xg_new) results in this prompt: predict.surfa

Re: [R] Different stack barplots - same color legends

2018-11-04 Thread P. Roberto Bakker
:06 schreef P. Roberto Bakker < robertobak...@gmail.com>: > Dear Richard, > > Thank you so much for all your work and time you punt in it. > I will start with your suggestions and let you know how far I come. > Also thanks to the others who helpt me. > > Best Roberto >

Re: [R] Different stack barplots - same color legends

2018-11-03 Thread P. Roberto Bakker
levels=c("Almost","Often","Occasionally","Rarely/Never"))) > BIS$Q2<-as.numeric(factor(BIS$Q2, > levels=c("Rarely/Never","Occasionally","Often","Almost"))) > ... > > Jim > On Thu, Nov 1, 2018 at 8:57 A

Re: [R] Different stack barplots - same color legends

2018-11-03 Thread P. Roberto Bakker
st(columns=1, border=TRUE), >main="based on your color scheme, I am putting enigszins on the > negative side", >ReferenceZero=3.5, >col=c("yellow","sandybrown","orange", "darkolivegreen","green")) > > >

Re: [R] Different stack barplots - same color legends

2018-11-01 Thread P. Roberto Bakker
Yes, that is an good idea, only then I loose the original column lables which I need in my barplot. Isn't it? Op do 1 nov. 2018 om 11:03 schreef Jim Lemon : > I would use the "names" or "colnames" functions to change them to Q1, > Q2, ... as I did. > > Jim

Re: [R] Different stack barplots - same color legends

2018-11-01 Thread P. Roberto Bakker
"levels=..." > commands to the forward and reversed response options to create the > whole transformation code. With a bit of cut-and-paste work, it didn't > take that long. Because the BIS-11 is used quite a bit where I am > working. it was worth the trouble. > > J

Re: [R] Different stack barplots - same color legends

2018-11-01 Thread P. Roberto Bakker
;,"Rarely/Never"))) > BIS$Q2<-as.numeric(factor(BIS$Q2, > levels=c("Rarely/Never","Occasionally","Often","Almost"))) > ... > > Jim > On Thu, Nov 1, 2018 at 8:57 AM P. Roberto Bakker > wrote: > > > > Hi Rich, > > >

Re: [R] Different stack barplots - same color legends

2018-10-31 Thread P. Roberto Bakker
> > 4 de situatie in geringe mate van toepassing is voor u of uw >> >>>> > supervisorengroep LIKERT STRING Op wo 31 okt. 2018 om 20:28 schreef Richard M. Heiberger : > What you sent looks like a set of column labels, not the actual numeric > data. > > You

Re: [R] Different stack barplots - same color legends

2018-10-31 Thread P. Roberto Bakker
rengroep", Op wo 31 okt. 2018 om 16:24 schreef Richard M. Heiberger : > part is fine. just be sure that the small part causes the problem. > I will need that to investigate what is happening. > > > On Wed, Oct 31, 2018 at 11:15 AM, P. Roberto Bakker > wrote: > > It is

Re: [R] Different stack barplots - same color legends

2018-10-31 Thread P. Roberto Bakker
It is a very long result text. I can send it to you, or is part of it ok?[ Op wo 31 okt. 2018 om 14:27 schreef Richard M. Heiberger : > Please send me the > dput(teamq) > > > On Wed, Oct 31, 2018 at 03:51 P. Roberto Bakker > wrote: > >> Thank you for you information.

Re: [R] Different stack barplots - same color legends

2018-10-31 Thread P. Roberto Bakker
mate van > toepassing is\nvoor u of uw supervisorengroep` = "1", : > x is not a factor or a character vector. > > There are many examples in > ?likert > > Rich > > > On Mon, Oct 22, 2018 at 1:30 PM, P. Roberto Bakker > wrote: > > Dear David, >

Re: [R] Different stack barplots - same color legends

2018-10-22 Thread P. Roberto Bakker
quot;,"orange", "darkolivegreen","green") > barplot(counts[, 1], horiz=TRUE, col=cols, legend=TRUE) > barplot(counts[, 2], horiz=TRUE, col=cols, legend=TRUE) > barplot(counts[, 3], horiz=TRUE, col=cols, legend=TRUE) > > You will need to adjust the xli

[R] Different stack barplots - same color legends

2018-10-22 Thread P. Roberto Bakker
Hi, I want to make barplots from different questions (columns) in one data.frame. Each question has the same 5 likert items. Now the problem: in some questions all items are answered; in other less. >From the syntax below I get nice stack barplots - *but the legend colors do not* refer to the same

Re: [R] Copy text from Script syntax into .txt

2018-04-25 Thread P. Roberto Bakker
al Laboratory > 7000 East Ave., L-627 > Livermore, CA 94550 > 925-423-1062 > Lab cell 925-724-7509 > > > On 4/24/18, 2:23 AM, "R-help on behalf of P. Roberto Bakker" < > r-help-boun...@r-project.org on behalf of robertobak...@gmail.com> wrote: > > Hi

Re: [R] Copy text from Script syntax into .txt

2018-04-25 Thread P. Roberto Bakker
for how to write a file that can be > processed into a report. Also consider learning about RStudio > notebook documents where you can have the output mixed into the > "script" file. > > On Tue, Apr 24, 2018 at 3:23 AM, P. Roberto Bakker > wrote: > > Hi everybody

Re: [R] Copy text from Script syntax into .txt

2018-04-25 Thread P. Roberto Bakker
re that a reasonable answer can be extracted from a given body > of data. ~ John Tukey > > /// > > > > > 2018-04-24 11:23 GMT+02:00 P. Roberto Bakker : > > Hi everybody, > > > > How can I get text from RScript (e.g. syntax, reminder) into

[R] Copy text from Script syntax into .txt

2018-04-24 Thread P. Roberto Bakker
Hi everybody, How can I get text from RScript (e.g. syntax, reminder) into the result text. Sink() does not do that - I only read the results and therefore I have to 'guess' which syntax was used where - reminders I wrote are lost. Bw and thank you in advance, Roberto [[alternative HTML

Re: [R] Best Optimization Routines

2018-02-15 Thread JamesRyan(Ryan James)/E&amp;P North America Business Division
Thanks Paul. Appreciate the help. I'll give this a shot. Ryan James D: 713.395.1794 M: 214.843.7301 -Original Message- From: Paul Smith [mailto:phh...@gmail.com] Sent: Thursday, February 15, 2018 7:12 AM To: Ryan James/E&P North America Business Division/SKI Cc: r-help@r-pr

[R] Best Optimization Routines

2018-02-13 Thread JamesRyan(Ryan James)/E&amp;P North America Business Division
I have a set of data, the production of oil from a well.  And an equation to predict that forecast.  The equation requires 5 input variables which are real numbers with upper and lower bounds, 1 input variable which must be an integer and 1 input variable which can be 1 of 2 string variables. 

[R] [R-pkgs] elo v1.0.0: Elo Ratings

2017-11-21 Thread Heinzen, Ethan P.
Dear useRs, I'm pleased to announce the v1.0.0 major release of the "elo" package on CRAN (https://cran.r-project.org/package=elo). This package implements a flexible framework for calculating Elo ratings of any two-team-per-matchup system (chess, sports leagues, 'Go', etc.). It is capable of

[R] Dataframe is character

2017-11-17 Thread P. Roberto Bakker
Hi everybody, Question: why are my dataframe and numeric variables a character? I read an excel file via readxl but my dataframe is a character, and numeric variables, eg "yi", are also a character. My excelfile is in English numeric Sometimes the dataframe was indeed a dataframe, but I do not kn

[R] [R-pkgs] arsenal v0.5.0: An Arsenal of 'R' Functions for Large-Scale Statistical Summaries

2017-08-16 Thread Heinzen, Ethan P.
I'm pleased to announce the release of the "arsenal" package v0.5.0 on CRAN (https://cran.r-project.org/package=arsenal). There are 4 items I want to mention: 1. arsenal is now on github: https://github.com/eheinzen/arsenal 2. ~10 bugs have been fixed in the latest release. 3.

Re: [R] Is there a way to open R terminal running in the background

2017-04-19 Thread Brad P
ay be considered a Windows question - I will look further into opening a process running in the background using DOS commands. Thank you for your time. On Wed, Apr 19, 2017 at 12:14 PM, Duncan Murdoch wrote: > On 19/04/2017 11:44 AM, Brad P wrote: > >> Hello, >> >> I am working on

[R] Is there a way to open R terminal running in the background

2017-04-19 Thread Brad P
Hello, I am working on a GUI, which is working well so far. I am working on a Windows 7 machine with 64 bit R (Microsoft R Open 3.3.2) Essentially: 1) a VBS executable is used to open the GUI leaving the R terminal running in the background but not showing using: CreateObject("Wscript.Shell").Ru

[R] Is there a way to get R script line number

2017-04-06 Thread Brad P
Hello, Is there a way to get the current line number in an R script? As a silly example, if I have the following script and a function called getLineNumber (suppose one exists!), then the result would be 3. 1 # This is start of script 2 3 print( getLineNumber() ) 4 5 # End of script Thanks for

Re: [R] single strip for the same group in dotplot lattice

2017-02-22 Thread P Tennant
Hi Luigi, I'm afraid I don't understand your toy data as you've described it, but if you really don't have run 2 for target A, and don't have run 1 for target B, why not just create another factor that reflects this, and plot that? my.data$clus2 <- with(my.data, interaction(cluster, target)

Re: [R] Confused about using data.table package,

2017-02-21 Thread P Tennant
aggregate(), tapply(), do.call(), rbind() (etc.) are extremely useful functions that have been available in R for a long time. They remain useful regardless what plotting approach you use - base graphics, lattice or the more recent ggplot. Philip On 22/02/2017 8:40 AM, C W wrote: Hi Carl,

Re: [R] remove

2017-02-12 Thread P Tennant
ne pass. If your data set is really big (running out of memory big) then you might want to investigate the data.table or sqlite packages, either of which can be combined with dplyr to get a standardized syntax for managing larger amounts of data. However, most people actually aren't running ou

Re: [R] remove

2017-02-11 Thread P Tennant
in one pass. If your data set is really big (running out of memory big) then you might want to investigate the data.table or sqlite packages, either of which can be combined with dplyr to get a standardized syntax for managing larger amounts of data. However, most people actually aren't

Re: [R] remove

2017-02-11 Thread P Tennant
Hi Val, The by() function could be used here. With the dataframe dfr: # split the data by first name and check for more than one last name for each first name res <- by(dfr, dfr['first'], function(x) length(unique(x$last)) > 1) # make the result more easily manipulated res <- as.table(res) res

[R] Extract input and filter data using extracted value.

2017-01-24 Thread Sathiaraj S P via R-help
Hi, I raised this question @ stack overflow and got below partial answer. Hope this mailing list can help on rest to complete. library(dplyr) library(tidyr) input <- "1.8 - versicolor" temp <- data.frame(input = input) %>% tidyr::separate(input, c("Petal.Width", "Species"),sep = " -

[R] [R-pkgs] new package: arsenal

2017-01-12 Thread Sinnwell, Jason P.
Dear useRs, We are pleased to announce a new package that has recently appeared on CRAN, called "arsenal" (version 0.1.2: https://CRAN.R-project.org/package=arsenal). The package is a toolkit for statistical summaries, and is streamlined to work wit

Re: [R] About data manipulation

2016-11-26 Thread P Tennant
Hi, It may help that: aggregate(DF$total, list(DF$note, DF$id, DF$month), mean) should give you means broken down by time slice (note), id and month. You could then subset means for GA or GB from the aggregated dataframe. Philip On 27/11/2016 3:11 AM, lily li wrote: Hi R users, I'm trying

Re: [R] lattice graph with free scales and reversed axis values

2016-11-05 Thread P Tennant
# [1] -5.052890 -9.967671 # [[2]] # [1] 2.648870 -2.629866 xyplot(y ~ x | name, data = my.df, type = c("p", "g"), scales = list(relation="free", limits=holdRange)) Philip On 6/11/2016 9:59 AM, Naresh Gurbuxani wrote: I want to draw a lattice graph where d

Re: [R] difference

2016-10-29 Thread P Tennant
Hi, As Jeff said, more than one grouping variable can be supplied, and there is an example at the bottom of the help page for ave(). The same goes for by(), but the order that you supply the grouping variables becomes important. Whichever grouping variable is supplied first to by() will chang

Re: [R] difference

2016-10-28 Thread P Tennant
Hi, You could use an anonymous function to operate on each `year-block' of your dataset, then assign the result as a new column: d <- data.frame(year=c(rep(2001, 3), rep(2002, 3)), num=c(25,75,150,30,85,95)) d$diff <- unlist(by(d$num, d$year, function(x) x - x[1])) d year n

Re: [R] About reshape dataset

2016-10-23 Thread P Tennant
You could convert your data from a wide format to a long format using the reshape function in base R: DF2 <- reshape(DF, direction="long", idvar=names(DF)[1:3], varying=c("site1_elev", "site1_temp", "site2_elev", "site2_temp"), v.names=c("elev", "temp"), times=1:2

[R] Need help with renaming sub-directories and its files after attribute vales from a shapefile

2016-09-14 Thread P Mads
Hello, Keep in mind I am VERY new to using R... What I am trying to do is package hundreds of files into a new sub-directory. I was able to accomplish this with the code below. HOWEVER, I have come to find that instead of merely having to name the new sub-directory after the 7-digit numeric prefix

Re: [R] Question regarding different R versions on an enterprise network server

2015-05-21 Thread Assaf P. Oron
ay 21, 2015 at 9:54 AM, Duncan Murdoch wrote: > On 21/05/2015 12:21 PM, Assaf P. Oron wrote: > >> Hi all, >> >> I represent R users vs. IT dept. at my workplace (yes, an enviable task :) >> >> We've managed to get a workable network-based R application, for

[R] Question regarding different R versions on an enterprise network server

2015-05-21 Thread Assaf P. Oron
I wonder whether anyone has had experience with this, or I should just give up and alert people that if they want to explore various historical layers of R and the associated packages, they will have to work around and/or install and uninstall lots of packages each time. Thanks! Assaf -- A

[R] Are '1st decimal' R rollouts (e.g. 3.2.0) qualitatively different?

2015-04-17 Thread Assaf P. Oron
wondering whether the annual '1st decimal' upgrade like 3.2.0 is qualitatively different from the interim ones like 3.1.3. In other words, whether some changes are reserved for those annual upgrades, or whether all upgrades are essentially equivalent. Thanks! Assaf -- Assaf P

[R] abline?

2015-01-22 Thread Dennis P. Weygand
I am a very new user of R, trying to do a linear fit to data, plot(r2,d) plots my data correctly, I do a linear fit: res = lm(r2~d) gives a fit to the data, but abline(res,col=“red”) displays nothing. Again, I am a novice, but what am I doing wrong? DPW __

Re: [R] Building R for better performance

2014-09-15 Thread Anspach, Jonathan P
. jonathan.p.ansp...@intel.com<mailto:jonathan.p.ansp...@intel.com> 713-751-9460 From: henrik.bengts...@gmail.com [mailto:henrik.bengts...@gmail.com] On Behalf Of Henrik Bengtsson Sent: Thursday, September 11, 2014 9:18 AM To: Anspach, Jonathan P Cc: arnaud gaboury; r-help@r-project.org Subje

Re: [R] Building R for better performance

2014-09-11 Thread Anspach, Jonathan P
Yes, that's the original. Then TACC increased the matrix sizes for their tests. Jonathan Anspach Intel Corp. Sent from my mobile phone. On Sep 11, 2014, at 9:18 AM, "Henrik Bengtsson" mailto:h...@biostat.ucsf.edu>> wrote: You'll find R-benchmark-25.R, which I assume is the same and the proper

Re: [R] Building R for better performance

2014-09-11 Thread Anspach, Jonathan P
I'm out of the office today, but will resend it tomorrow. Jonathan Anspach Intel Corp. Sent from my mobile phone. On Sep 11, 2014, at 3:49 AM, "arnaud gaboury" wrote: >>> I got the benchmark script, which I've attached, from Texas Advanced >>> Computing Center. Here are my results (elapsed ti

[R] LASSO covTest doesn't work when used inside a function

2014-04-22 Thread Brad P
hich.min(fit2$Cp)]),], res) names(lasso)[4:6] <- c("X1.pval", "X2.pval", "X3.pval") return(lasso) # for output # } # function end # now use F.1 in a loop... it = 3 out <- vector(&qu

Re: [R] linear programming

2014-03-17 Thread John P. Burkett
uld be a matrix or a vector but not a scalar. You will probably need to specify what scalar function of A*X is to be minimized. -- John P. Burkett __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the pos

Re: [R] Building R for better performance

2014-03-10 Thread Anspach, Jonathan P
- From: ce [mailto:zadi...@excite.com] Sent: Wednesday, March 05, 2014 8:54 PM To: r-help@r-project.org; Anspach, Jonathan P Subject: Re: [R] Building R for better performance Hi Jonathan, I think most people would be interested in such a tool, because main complaint of R is its slownes

Re: [R] Building R for better performance

2014-03-05 Thread Anspach, Jonathan P
ent: Wednesday, March 05, 2014 3:55 AM To: Anspach, Jonathan P Cc: r-help@r-project.org Subject: Re: [R] Building R for better performance Jonathan, I myself tried something like this - comparing gcc, clang and intel on a Mac. From my experiences in HPC on the university clust

[R] Building R for better performance

2014-03-04 Thread Anspach, Jonathan P
Greetings, I'm a software engineer with Intel. Recently I've been investigating R performance on Intel Xeon and Xeon Phi processors and RH Linux. I've also compared the performance of R built with the Intel compilers and Intel Math Kernel Library to a "default" build (no config options) that

[R] How to convert .dot file to gml file in R

2014-01-12 Thread vasanthi P
I have very basic knowledge in R. Kindly help me to convert dot file to gml file. Can u suggest me some datasets of social networks consists of edge weight and edge timestamp. Thanks and regards, Vasanthi P. [[alternative HTML version deleted

[R] [R-pkgs] Introducing pedgene 1.2 on CRAN

2013-11-22 Thread Sinnwell, Jason P.
th disease status and continuous response for pedigree data, as described in our recent paper: Schaid, D. J., McDonnell, S. K., Sinnwell, J. P. and Thibodeau, S. N. (2013), Multiple Genetic Variant Association Testing by Collapsing and Kernel Methods With Pedigree or Population Struc

[R] PLS1 NIPALS question: error with chemometrics package?

2013-09-22 Thread Brad P
pls1_nipals_mod <- function(X, y, a, it = 50, tol = 1e-08, scale = FALSE) { Xh <- scale(X, center = TRUE, scale = scale) yh <- scale(y, center = TRUE, scale = scale) T <- NULL P <- NULL C <- NULL W <- NULL for (h in

[R] Raster comparrison

2013-05-09 Thread p m
Dear all, I'm looking for a test to identify significant differences (p-value) between 2 raster maps. Can you suggest me a way to solve this problem? Thank you in advance. Paul [[alternative HTML version deleted]] __ R-help@r-projec

Re: [R] State space models with regime switching

2013-05-08 Thread John P. Burkett
for your answers! David __ 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. -- John

[R] Empirica Copula

2013-05-03 Thread T P Kharel
Dear users I am reposting this and hope it will be accepted this time. I am using copula package to fit my bivariate data and simulation. As explained in package documentation we can use our own data distribution to feed on copula as long as we have d, p and q (pdf, cdf and quantile) functions

[R] (no subject)

2013-05-02 Thread T P Kharel
I have posted a R copula question yesterday but it is not accepted yet. How long does it take? I am waiting if some one can help me on my Copula package related question. Thanks [[alternative HTML version deleted]] __ R-help@r-project.org mailin

Re: [R] Mistake in German Error message for friedman.test

2013-04-09 Thread P Ehlers
On 2013-04-09 7:35, kais...@med.uni-duesseldorf.de wrote: There are two misspellings in the german Error message for friedman test: Fehler in friedman.test.default(cont$score, group = cont$goup, blocks = cont$cont) : y, Gruppen und blöcke müssen die sekbe Länge haben The correct spellin

Re: [R] RStudio and R version 3.0

2013-04-05 Thread Stephen P. Molnar
On Fri, 05 Apr 2013 08:00:16 -0400 "John Sorkin" wrote: > Windows 7 32 bit > R 3.0 > RStudio that previously worked with R versions prior to R3.0 > > Colleagues, > I just downloaded R 3.0. When I try to launch RStudio (which was > previously on my computer), I get a message, "R Session has a f

Re: [R] Time trends with GAM

2013-03-27 Thread Antonio P. Ramos
ocation - i.e. to impose a constraint like f(t_0) = b). > > For 2) try 'model.matrix', or 'predict.gam' with argument > 'type="lpmatrix"' (see ?predict.gam) > > > On 23/03/13 01:05, Antonio P. Ramos wrote: > >> Hi all, >>

Re: [R] GAM model with interactions between continuous variables and factors

2013-03-25 Thread Antonio P. Ramos
Thanks! On Mon, Mar 25, 2013 at 6:25 PM, Joshua Wiley wrote: > Yep that's exactly right! :) > > On Mon, Mar 25, 2013 at 6:22 PM, Antonio P. Ramos > wrote: > > Just to clarify: I should include wealth - the categorical variable - as > a > > fixed effects *

Re: [R] GAM model with interactions between continuous variables and factors

2013-03-25 Thread Antonio P. Ramos
should include the main effect in > the model, as the smooths will be centered. > > Cheers, > > Josh > > > > On Mon, Mar 25, 2013 at 6:09 PM, Antonio P. Ramos > wrote: > > Hi all, > > > > I am not sure how to handle interactions with categorical pr

Re: [R] GAM model with interactions between continuous variables and factors

2013-03-25 Thread Antonio P. Ramos
Just to clarify: gam.1 has wealth inside the smooths and as a fixed effect predictor while gam.2 only have wealth inside the smooths. Thanks On Mon, Mar 25, 2013 at 6:09 PM, Antonio P. Ramos < ramos.grad.stud...@gmail.com> wrote: > Hi all, > > I am not sure how to handle in

[R] GAM model with interactions between continuous variables and factors

2013-03-25 Thread Antonio P. Ramos
Hi all, I am not sure how to handle interactions with categorical predictors in the GAM models. For example what is the different between these bellow two models. Tests are indicating that they are different but their predictions are essentially the same. Thanks a bunch, > gam.1 <- gam(mortality

[R] Time trends with GAM

2013-03-22 Thread Antonio P. Ramos
Hi all, I am using GAM to model time trends in a logistic regression. Yet I would like to extract the the fitted spline from it to add it to another model, that cannot be fitted in GAM or GAMM. Thus I have 2 questions: 1) How can I fit a smoother over time so that I force one knot to be at a par

[R] multiple filled.contour() on single page

2013-03-15 Thread Sebastian P. Luque
Hi, It seems as if filled.contour can't be used along with layout(), or par(mfrow) or the like, since it sets the page in a very particular manner. Someone posted a workaround (http://r.789695.n4.nabble.com/several-Filled-contour-plots-on-the-same-device-td819040.html). Has a better approach been

Re: [R] Grep with wildcards across multiple columns

2013-03-15 Thread Bush, Daniel P. DPI
t(intersect(grep(par.fund, df$fund), grep(par.func, df$func)), grep(par.obj, df$obj)), ], .(code, year), summarize, amount = sum(amount)) Thanks for your ideas! DB Daniel Bush | School Finance Consultant School Financial S

[R] Grep with wildcards across multiple columns

2013-03-14 Thread Bush, Daniel P. DPI
I have a fairly large data set with six variables set up like the following dummy: # Create fake data df <- data.frame(code = c(rep(1001, 8), rep(1002, 8)), year = rep(c(rep(2011, 4), rep(2012, 4)), 2), fund = rep(c("10E", "10E", "10E", "27E"), 4),

[R] an apply question

2013-01-18 Thread m p
Hello, It should be easu but I cannot figure out how to use apply function. I am trying to replace negative values in an array with these values + 24. Would appreciate help. Thanks, Mark shours <- apply(fhours, function(x){if (x < 0) x <- x+24}) Error in match.fun(FUN) : argument "FUN" is missing,

Re: [R] Drawing a dotted circle.

2013-01-13 Thread Ved P. Sharma
om: r-help-boun...@r-project.org [r-help-boun...@r-project.org] On Behalf > Of Ved P. Sharma [vedsha...@gmail.com] > Sent: 12 January 2013 07:43 > To: r-help@r-project.org > Subject: [R] Drawing a dotted circle. > > Hi, > > I am trying to draw a dotted circle by using sy

[R] Loading circular package from Rprofile.site

2013-01-13 Thread Ved P. Sharma
Hi, I installed "circular" package and I wanted to load it automatically when R starts up, so I added the following lines in file Rprofile.site, .First <- function() library(circular) When R starts up, it gives me the following error: -- Loading required package: boot Loading required p

Re: [R] Drawing a dotted circle.

2013-01-12 Thread Ved P. Sharma
: > > HI Ved, > > I was able to get the dotted circle using the same command. I am using R > 2.15 on Ubuntu 12.04. > A.K. > > > > > - Original Message - > From: Ved P. Sharma > To: r-help@r-project.org > Cc: > Sent: Saturday, January 12, 2013 2

Re: [R] Log analysis with R

2013-01-04 Thread P Ehlers
In Canada we use sawmills to process logs. Or we carve them into totem poles. Or we carve dugout canoes. Of course, sometimes we burn them in order to keep warm. Peter Ehlers On 2013-01-04 10:50, peter dalgaard wrote: On Jan 4, 2013, at 18:41 , jim holtman wrote: what type of logs are you tr

[R] Installing R-2.15.2 in Debian Wheezy/Testing

2012-12-31 Thread Stephen P. Molnar
The current version of R that is available in Wheezy is 2.15.1. However, version 2.15.2 is available at CRAN sites. The site I use is http://cran.case.edu/bin/linux/debian which states: 'If you want to have up to date R on wheezy I propose to directly install Dirks packages from unstable (sid

Re: [R] subsetting time series

2012-12-13 Thread m p
Thats works perfectly, thanks a lot, Mark On Thu, Dec 13, 2012 at 11:34 AM, arun wrote: > Hi, > Try this: > seq1<-seq(from=as.POSIXct("2012-05-30 > 18:30:00",tz="UTC"),to=as.POSIXct("2012-05-31 02:30:00",tz="UTC"),by="1 > hour") > seq2<-seq(from=as.POSIXct("2012-05-31 > 00:30:00",tz="UTC"),to=as

[R] subsetting time series

2012-12-13 Thread m p
Hello, my series of dates look like [1] "2012-05-30 18:30:00 UTC" "2012-05-30 19:30:00 UTC" [3] "2012-05-30 20:30:00 UTC" "2012-05-30 21:30:00 UTC" [5] "2012-05-30 22:30:00 UTC" "2012-05-30 23:30:00 UTC" [7] "2012-05-31 00:30:00 UTC" "2012-05-31 01:30:00 UTC" [9] "2012-05-31 02:30:00 UTC

Re: [R] GLM Coding Issue

2012-11-29 Thread Craig P O'Connell
ly appreciated. Kind Regards, Craig - Original Message - From: "Steve Lianoglou" To: "David Winsemius" Cc: "Craig P O'Connell" , r-help@r-project.org Sent: Tuesday, November 27, 2012 11:54:48 PM Subject: Re: [R] GLM Coding Issue Hi, On Tuesday, Novem

[R] GLM Coding Issue

2012-11-27 Thread Craig P O'Connell
Dear all,    I am having a recurring problem when I attempt to conduct a GLM.  Here is what I am attempting (with fake data): First, I created a txt file, changed the directory in R (to the proper folder containing the file) and loaded the file: #avoid<-read.table("avoid.txt",header=TRU

Re: [R] Error in Sweave but not underlying script

2012-11-19 Thread Bush, Daniel P. DPI
] Sent: Friday, November 16, 2012 1:51 PM To: Bush, Daniel P. DPI Cc: 'r-help@r-project.org' Subject: Re: [R] Error in Sweave but not underlying script On 16/11/2012 2:26 PM, Bush, Daniel P. DPI wrote: > I'm trying to use Sweave to create a dynamic report of a variety of financial

[R] Error in Sweave but not underlying script

2012-11-16 Thread Bush, Daniel P. DPI
I'm trying to use Sweave to create a dynamic report of a variety of financial data checks. I have an .R code file to pull the data from a database, manipulate and filter it, and create individual data frames for each test. My Sweave .RNW document then calls that file with source() to generate th

Re: [R] finding global variables in a function containing formulae

2012-11-02 Thread Hafen, Ryan P
ot;y" "x" > >help? > >-- Bert > >On Thu, Nov 1, 2012 at 11:04 AM, Hafen, Ryan P >wrote: >> I need to find all global variables being used in a function and >>findGlobals() in the codetools package works quite nicely. However, I >>am not able to

[R] finding global variables in a function containing formulae

2012-11-01 Thread Hafen, Ryan P
I need to find all global variables being used in a function and findGlobals() in the codetools package works quite nicely. However, I am not able to find variables that are used in formulae. Simply avoiding formulae in functions is not an option because I do not have control over what functio

Re: [R] Options to extend memory limit

2012-10-11 Thread Sebastian P. Luque
On Thu, 11 Oct 2012 14:45:16 +0200, wrote: > Dear All, at the moment I am using R for calculations of large > databases. Unfortunately, R only manages to complete certain > operations at some times, and not at others. I usually get the error > message "cannot allocate vector of size XX" > I am

[R] Problem Installing a Package

2012-08-29 Thread Stephen P. Molnar
nSUSE package installer didn't find a package Tcl/TK Assistance and advice will be much appreciated. Thanks in advance. -- Stephen P. Molnar, Ph.D. Life is a fuzzy set Foundation for Chemistry Stochastic and multivariate www.FoundationForChemistry.co

[R] ncdf - writing variable to a file

2012-08-21 Thread m p
Hello, I have a problem writing a variable to an existing file. Below is a part of my script and how it fails. I can't find "create.var.ncdf" in help Thanks for any help. Mark nc <- open.ncdf(ncname, readunlim=FALSE, write=TRUE ) missing <- 1.e+30 xdim <- nc$dim[["west_east"]] ydim <- nc$dim[["s

[R] variable spatial correlation

2012-05-16 Thread m p
Hello, I used "correlogram" from "spatial" package to determine correlation scale for my data but just looking with bare eye it seems that the correlation scale varies over the domain. Can someone suggest what would the best way to handle that problem? Thanks, Mark [[alternative HTML versi

  1   2   3   4   5   >