Re: [R] FW: Group by and duplicate a value/dplyr

2021-05-11 Thread Elahe chalabi via R-help
Hi Petr, Thanks for your help! it works perfectly fine.  On Tuesday, May 11, 2021, 01:36:50 PM GMT+2, PIKAL Petr wrote: I forgot to cc to rhelp. Petr Hi Dunno how to do it by dplyr I would use ave df$MinValue <- ave(df$Value, paste(df$Class, df$Department), FUN = function(x) min(

[R] FW: Group by and duplicate a value/dplyr

2021-05-11 Thread PIKAL Petr
I forgot to cc to rhelp. Petr Hi Dunno how to do it by dplyr I would use ave df$MinValue <- ave(df$Value, paste(df$Class, df$Department), FUN = function(x) min(x[x>0])) Cheers Petr > > -Original Message- > > From: R-help On Behalf Of Elahe chalabi > via > > R-help > > Sent: Tuesday,

[R] Fw: space between bars of a group in ggplot2

2020-12-16 Thread azam jaafari via R-help
- Forwarded Message - From: PIKAL Petr To: azam jaafari Cc: r-help mailing list Sent: Wednesday, December 16, 2020, 3:39:06 PM GMT+3:30Subject: RE: [R] space between bars of a group in ggplot2 Hi, Keep your emails on the list, please. here are some artificial data dput(dat) str

[R] FW: Loop for two columns and 154 rows

2020-09-15 Thread PIKAL Petr
Sorry, forgot to copy to r help. Petr > -Original Message- > From: PIKAL Petr > Sent: Tuesday, September 15, 2020 11:53 AM > To: 'Hesham A. AL-bukhaiti' > Subject: RE: [R] Loop for two columns and 154 rows > > Hi > > Your mail is unreadable, post in plain text not HTML. > > If I deciph

Re: [R] FW: problem with markov random field smooths in mgcv

2020-04-30 Thread Wilcox, Chris (O&A, Hobart)
Thanks very much Simon, that is super helpful. Best, Chris On 25/3/20, 9:47 am, "Simon Wood" wrote: Hi Chris, It's kind of a documentation glitch, a node is not supposed to be listed as its own neighbour (it causes the diagonal entries in the penalty matrix to be over-w

Re: [R] FW: problem with markov random field smooths in mgcv

2020-03-24 Thread Simon Wood
Hi Chris, It's kind of a documentation glitch, a node is not supposed to be listed as its own neighbour (it causes the diagonal entries in the penalty matrix to be over-written by the wrong value). i.e. the neighbour list should be.  NB <- list()     NB$'East Timor' <- c(2,15)     NB$Austral

Re: [R] FW: problem with markov random field smooths in mgcv

2020-03-18 Thread Wilcox, Chris (O&A, Hobart)
Hi David, Thanks for the comments. I am running the analysis on a mac OS 10.12.6, using R R 3.5.3 GUI 1.70 El Capitan build (7632), and mgcv 1.8-31. I am aware of the procedure of using data = "xx" in a call to gam. I am having a strange issue locally, in that gam does not see to be able to

Re: [R] FW: problem with markov random field smooths in mgcv

2020-03-18 Thread David Winsemius
On 3/18/20 12:44 AM, Wilcox, Chris (O&A, Hobart) wrote: Hi all, I am trying to fit a model with a markov random field smooth in mgcv. I am having some trouble with getting it to run, and in particular I am getting the message Error in initial.sp(w * x, S, off) : S[[1]] ma

[R] FW: problem with markov random field smooths in mgcv

2020-03-18 Thread Wilcox, Chris (O&A, Hobart)
Hi all, I am trying to fit a model with a markov random field smooth in mgcv. I am having some trouble with getting it to run, and in particular I am getting the message Error in initial.sp(w * x, S, off) : S[[1]] matrix is not +ve definite. After reading everything I

[R] FW: How to create a new data.frame based on calculation of subsets of an existing data.frame

2019-12-17 Thread ioanna ioannou
Hello everyone, I have the following problem: I have a data.frame with multiple fields. If I had to do my calculations for a given combination of IM.type and Taxonomy is the following: D <- read.csv('Test_v2.csv') names(D) VC <- 0.01*( subset(D, IM.type == 'PGA' & Damage.state == 'DS1' & Taxo

[R] FW: How to create a new data.frame based on calculation of subsets of an existing data.frame

2019-12-17 Thread Ioanna Ioannou
Hello everyone, I have the following problem: I have a data.frame with multiple fields. If I had to do my calculations for a given combination of IM.type and Taxonomy is the following: D <- read.csv('Test_v2.csv') names(D) VC <- 0.01*( subset(D, IM.type == 'PGA' & Damage.state == 'DS1' & T

Re: [R] Fw: How to read a file saved in Rstudio

2019-09-12 Thread Jeff Newmiller
Please keep the mailing list included with reply-all. I misread your error. I suspect you need to use a newer version of R on your "pc". On September 12, 2019 12:29:39 AM PDT, Faheem Jan wrote: >Jeff Newmiller i dies not understand your answer,i run the simulation >it give result in pc and i sa

Re: [R] Fw: How to read a file saved in Rstudio

2019-09-12 Thread Jeff Newmiller
Use the correct function.. readRDS. On September 11, 2019 11:28:41 PM PDT, Faheem Jan via R-help wrote: > > >Subject: How to read a result  saved in Rstudio >HI, i run the simulation result in other computer with high speed >computer ,i save the result in the rda file. know i want to open this >

[R] Fw: How to read a file saved in Rstudio

2019-09-11 Thread Faheem Jan via R-help
Subject: How to read a result  saved in Rstudio HI, i run the simulation result in other computer with high speed computer ,i save the result in the rda file. know i want to open this file rda file  in my laptop, the file loaded in my laptop , i got the error like this  load("C:/Users/Khan/Do

[R] Fw: Sample size required to estimate population variance Solution

2019-07-09 Thread Thomas Subia
Colleagues, The original question was how many samples should be taken in order to estimate a population standard deviation to within a defined percentage of its actual value. In an article from The American Statistician, Volume 15, 1961, Issue 3, the sample size is given by: N = (1/2) * (y/d)

[R] FW: IRT discrimination value (ltm and psych package)

2019-06-25 Thread shr...@outlook.com
Sent from Mail for Windows 10 From: shr...@outlook.com Sent: Tuesday, June 25, 2019 10:57:30 AM To: Eric Berger Subject: IRT discrimination value (ltm and psych package) Hello Sir, I am learning R and its syntax an

[R] FW: Help with a third ggplot error

2019-06-15 Thread Bill Poling
So I changed it to date2. fcast_arima_tbl <- forecast(fit_arima2, h = nrow(test_tbl)) %>% sw_sweep(timetk_idx = TRUE, rename_index = "date2") head(fcast_arima_tbl,n=10) # A tibble: 10 x 7 date2 keyNetEditRev lo.80 lo.95 hi.80 hi.95 <--Date2 1 2017-01-01 actual

[R] FW: Help with a third ggplot error

2019-06-15 Thread Bill Poling
Yes, thank you I see that now Eric. What might I provide in addition that would be more useful? WHP From: Bill Poling Sent: Saturday, June 15, 2019 3:39 PM To: Eric Berger Cc: r-help (r-help@r-project.org) ; Bill Poling (bill.pol...@zelis.com) Subject: RE: [R] Help with a third ggplot error

Re: [R] Fw: problem with nlsLM.....

2019-03-20 Thread J C Nash
Of course, you might just try a more powerful approach. Duncan responded to the obvious issue earlier, but the second problem seems to need the analytic derivatives of the nlsr package. Note that nlsLM uses the SAME very simple forward difference derivative approximation for the Jacobian. Optimi

Re: [R] Fw: problem with nlsLM function

2019-03-19 Thread akshay kulkarni
Dear duncan, Sorry to bother you with such a silly mistake I didn,t notice it! Sent: Tuesday, March 19, 2019 6:01 PM To: akshay kulkarni; R help Mailing list Subject: Re: [R] Fw: problem with nlsLM function On 19/03/2019 8:26 a.m., akshay kulkarni wrote

Re: [R] Fw: problem with nlsLM function

2019-03-19 Thread Duncan Murdoch
On 19/03/2019 8:26 a.m., akshay kulkarni wrote: dear members, also,I can provide HM1,HM2 and HM3 if needed From: R-help on behalf of akshay kulkarni Sent: Tuesday, March 19, 2019 5:43 PM To: R help Mailing list Subjec

Re: [R] Fw: inconsistency in nls output....

2019-03-06 Thread akshay kulkarni
: Wednesday, March 6, 2019 10:40 PM To: akshay kulkarni; R help Mailing list Subject: Re: [R] Fw: inconsistency in nls output nls() is a Model T Ford trying to drive on the Interstate. The code is quite old and uses approximations that work well when the user provides a reasonable problem, but

Re: [R] Fw: inconsistency in nls output....

2019-03-06 Thread J C Nash
nls() is a Model T Ford trying to drive on the Interstate. The code is quite old and uses approximations that work well when the user provides a reasonable problem, but in cases where there are mixed large and small numbers like yours could get into trouble. Duncan Murdoch and I prepared the nlsr

[R] FW: Re: importing data error question

2019-01-13 Thread 우지희
From: "우지희" Sent: Monday, January 14, 2019 9:40:26 AM To:"Fox, John" Subject:Re: [R] importing data error question Thanks for your replies. I'm using windows 7, I loaded FactoMineR, SensoMineR and then Rcmdr. (Downloaded FacroMineR, SensoMineR, Rcmdr, Rcmdrplugin.FactomineR, Rcmdrplu

[R] Fw: Granger casuality test in r

2018-11-30 Thread Eneida Permeti via R-help
- Forwarded Message - From: Eneida Permeti To: John C Frain Sent: Friday, November 30, 2018, 9:24:01 AM PSTSubject: Re: [R] Granger casuality test in r Dear JohnThank you for responding me.I have attached my data. I am studying the relationship between Public debt and economic gr

[R] Fw: Granger casuality test in r

2018-11-30 Thread Eneida Permeti via R-help
- Forwarded Message - From: Eneida Permeti To: John C Frain Sent: Friday, November 30, 2018, 9:24:01 AM PSTSubject: Re: [R] Granger casuality test in r Dear JohnThank you for responding me.I have attached my data. I am studying the relationship between Public debt and economic gr

Re: [R] Fw: inconsistency in pbmclapply...

2018-10-16 Thread Bert Gunter
As I think you hve been told before, most attachments don't make it through the mail server. Use ?dput instead to include data. Also, post in plain text, not html. Bert Gunter "The trouble with having an open mind is that people keep coming along and sticking things into it." -- Opus (aka Berkel

[R] Fw: inconsistency in pbmclapply...

2018-10-16 Thread akshay kulkarni
dear members, however, "ts must have more than one observation" error is only found for the first entry of LYG1 ( LYG1[[20]], LYG1[[200]], LYG1[[1000]]..etc are all well defined! From: R-help on behalf of akshay kulkarni S

Re: [R] Fw: inconsistency in display of character vector....

2018-07-08 Thread Jeff Newmiller
Using dput and sending your questions with the plain text option as described in [1] will allow you to share your data with less ambiguity. To be sure you have supplied all the code needed for us to reproduce your problem, use [3]. [1] http://stackoverflow.com/questions/5963269/how-to-make-a-gr

[R] FW: Structure to ts Error in attributes(.Data) <- c(attributes(.Data), attrib) :

2018-07-03 Thread Bill Poling
Hi, I have my solution. It should be .Tsp=c(2016,2018.417,12) (off by one error) Thank you. WHP From: Bill Poling Sent: Tuesday, July 03, 2018 11:24 AM To: r-help (r-help@r-project.org) Cc: Bill Poling Subject: Structure to ts Error in attributes(.Data) <- c(attributes(.Data), attrib) :

Re: [R] Fw: subsetting lists....

2018-06-18 Thread Eric Berger
My response does not have an explicit for loop. On Mon, Jun 18, 2018 at 2:15 PM, akshay kulkarni wrote: > correctionI want the method without a for loop > > From: akshay kulkarni > Sent: Monday, June 18, 2018 4:25 PM > To: R help Mailing list > Subject: subs

[R] Fw: subsetting lists....

2018-06-18 Thread akshay kulkarni
correctionI want the method without a for loop From: akshay kulkarni Sent: Monday, June 18, 2018 4:25 PM To: R help Mailing list Subject: subsetting lists dear members, I have list YH and index vector iuhV. I want to select iuh

[R] FW: Can't Get Lattice Histogram Minor Tick Marks to Work

2018-04-25 Thread Donald Macnaughton
Thanks Jeff, I attached a file with the program to my earlier email because the posting guide seemed to imply that non-binary attachments would work. But I see that the file was stripped off. Restating the problem: I'm drawing a paneled histogram using the lattice package. I've succeeded in

Re: [R] Fw: modified mankendal

2017-11-24 Thread Jim Lemon
Hi Elham, The error message: Error in if (S == 0) { : missing value where TRUE/FALSE needed means that for at least one S, the value is missing. The best advice I can give you is to load the data frame X1 as in your code above, and try something like: which.na<-function(x) return(which(is.na(x))

Re: [R] Fw: modified mankendal

2017-11-23 Thread Jim Lemon
Hi Elham, The error message is pretty explicit. Check your dataset for missing values. Jim On Thu, Nov 23, 2017 at 6:14 AM, Elham Fakharizade via R-help wrote: > > Hello DearI used modifiedmk package for trend analyses.this is my script > require(modifiedmk)X1<-read.table("c:/elham/first > ar

Re: [R] Fw: modified mankendal

2017-11-23 Thread John Kane via R-help
Would you resubmit your question in plain text mode?  This is a plain text list and the HTML gets stripped away. What is left is this Hello DearI used modifiedmk package for trend analyses.this is my script  require(modifiedmk)X1<-read.table("c:/elham/first article/r/Spring_NDVI-1.txt",skip=2,he

[R] Fw: modified mankendal

2017-11-22 Thread Elham Fakharizade via R-help
Hello DearI used modifiedmk package for trend analyses.this is my script  require(modifiedmk)X1<-read.table("c:/elham/first article/r/Spring_NDVI-1.txt",skip=2,header=FALSE)d=dim(X1) outMK<-matrix(-999,nrow=4,ncol=d[2])for (c in 1:d[2]){MK<-tfpwmk(X1[,c])outMK[1,c]<-getElement(MK,"S")outMK[2,c]

Re: [R] FW: Time Series

2017-11-07 Thread Eric Berger
Following Erin's pointer: library(zoo) times <- seq(from=as.POSIXct("2015-12-18 00:00:00"), to=as.POSIXct("2017-10-24 23:00:00"), by="hour") mydata <- rnorm(length(times)) tseri <- zoo( x=mydata, order.by=times ) HTH, Eric On Tue, Nov 7, 2017 at 9:59 AM, Erin Hodgess wrote: > Hello!

Re: [R] FW: Time Series

2017-11-07 Thread Erin Hodgess
Hello! What is the error message, please? At first glance, you are using the "ts" function. That doesn't work for hourly frequency. You may want to create a zoo object. This is Round One. Sincerely, Erin On Tue, Nov 7, 2017 at 1:46 AM, Emre Karagülle wrote: > > Hi, > I would like to ask a

[R] FW: Time Series

2017-11-06 Thread Emre Karagülle
Hi, I would like to ask a question about time series. I am trying to convert my data into time series data. I have hourly data from “2015-12-18 00:00” to “2017-10-24 23:00” I am trying the following codes but they are not working. Could you help me out? tseri <- ts(data ,seq(from=as.POSIXct("2015

Re: [R] Fw: passing different sample sizes

2017-09-25 Thread Bert Gunter
Your code is full of syntactic errors. What do you think 1.71(se) means? After you clean up your code, something like this might be what you want: out <- lapply(seq(40,500,by = 25), f) To get plots, just stick in a plot statement after you define m and d. Have you gone through any R tutorials?

Re: [R] Fw: passing different sample sizes

2017-09-25 Thread Bert Gunter
1. 2o is gibberish; 20 is the number of fingers and toes most of us have. 2. This is a plain text list. Your code became gibberish with your HTML post. Cheers, Bert Bert Gunter "The trouble with having an open mind is that people keep coming along and sticking things into it." -- Opus (aka Be

[R] Fw: passing different sample sizes

2017-09-25 Thread Farnoosh Sheikhi via R-help
Hi,  I have the below function which returns confidence intervals. I wanted to pass different sample sizes through the function, but for some reason it's not working. n   <- seq(from=40, to=300, by=2o) I was also wondering how I can return a plot for different sample sizes.  plot(m~d, main="

[R] FW: Predictive accuracy measures in a recently released R package, spm: Spatial Predictive Modelling [SEC=UNCLASSIFIED]

2017-08-29 Thread Li Jin
Hi All, Just thought you might be interested in a recently released R package, spm: Spatial Predictive Modelling. It aims to introduce some novel, accurate, hybrid geostatistical and machine learning methods for spatial predictive modelling. Of 22 functions available in spm, two functions ar

[R] FW: Fail to install package in R

2017-07-28 Thread PIKAL Petr
CC to R-help From: PIKAL Petr Sent: Friday, July 28, 2017 2:20 PM To: 'li xiaomei' Cc: r-help@r-project.org Subject: RE: [R] Fail to install package in R Hi You should keep conversation within the list, others could bring better answers. I still do not see any error message. I found this answe

Re: [R] Fw: Need Help - R Programming - Using iteration value to change field names for processing for every iteraion

2017-05-30 Thread Bert Gunter
Your fields are adjacent, right? If so, you do not need to refer to them by name to accomplish this. Please spend some (more) time with an R tutorial or two as Rolf suggested, especially with "indexing". -- Bert Bert Gunter "The trouble with having an open mind is that people keep coming along a

[R] Fw: Need Help - R Programming - Using iteration value to change field names for processing for every iteraion

2017-05-30 Thread Vijaya Kumar Regati
Hi All, I have tried in different ways. Finally I got the solution this way : for(i in 2:4) { test[,paste0("Day",i,".Prod.balc")] <- test[,paste0("Day",i,".Prod.balc")] + test[,paste0("Day",i-1,".Prod.balc")] } Please save it for references, if needed in future. Thanks all for your refer

Re: [R] Fw: Averaging without NAs

2017-03-02 Thread Ng Bo Lin
Hi Elahe, You can do so using the mean function, mean(), by specifying an additional argument, na.rm = TRUE. In this case, you specify that you wish to remove (rm) all NA values in the columns. —> mean($X2016.Q1, na.rm = T). By default, na.rm is set to FALSE, so mean() will return a NA value.

[R] Fw: Averaging without NAs

2017-03-02 Thread ch.elahe via R-help
The question seems easy but I could not find an answer for it. I have the following column in my data frame and I want to take average of the column excluding the number of NAs. $X2016.Q1 : int 47 53 75 97 NA NA 23 NA 43 NA Does anyone know how to do that? Thanks for any help Elahe __

Re: [R] Fw: Regex problem

2017-01-05 Thread Carl Sutton via R-help
Thank you gentlemen, thank you!   All worked as you said it would and my headers are now error free. And David, thanks for the reference material cite.  I will looking at that this weekend.  Carl Sutton On Thursday, January 5, 2017 12:12 PM, David Winsemius wrote: > On Jan 5, 2017,

Re: [R] Fw: Regex problem

2017-01-05 Thread David Winsemius
> On Jan 5, 2017, at 10:09 AM, Carl Sutton via R-help > wrote: > > Re-sending help request, went to wrong addy first time. > r-help-requ...@r-project.org > > Belated Happy new year to the Guru's: > > I have a data frame with 570+ columns and in those column headers yours truly > has a few

[R] Fw: Regex problem

2017-01-05 Thread Carl Sutton via R-help
Re-sending help request, went to wrong addy first time. r-help-requ...@r-project.org Belated Happy new year to the Guru's: I have a data frame with 570+ columns and in those column headers yours truly has a few blunders. Namely somehow I managed to end some of them with both an apostrophe '

Re: [R] Fw: Urgent help

2016-12-27 Thread David Winsemius
> On Dec 26, 2016, at 9:09 PM, amit rathee > wrote: > > The text file you attached has no commas. Perhaps the separators are tabs and you really need to use `read.delim` instead of `read.csv`. David Winsemius Alameda, CA, USA __ R-help@r-project.

[R] Fw: Urgent help

2016-12-27 Thread amit rathee
I am trying to perform hierarchical clustering and evaluating it using "ClusterCrit" Package, specially interested in precision and recall for multi class problem, my code is attached.my problem is that in each iteration even if my data is different in extCriteria() (used to evaluate clustering

[R] Fw: how to use 97.5%,2.5% values of parameters for next calculation

2016-10-06 Thread abhishek pandey
Sent from RediffmailNG on Android From: "abhishek pandey"abhishekpandey_1...@rediffmail.com Sent:Thu, 06 Oct 2016 13:24:39 +0530 To: r-help-ow...@r-project.org Subject: how to use 97.5%,2.5% values of parameters for next calculation Sir I request you to help me for completing my programm. SIZE

Re: [R] Fw: R problem

2016-09-27 Thread John Kane
-project.org > Subject: [R] Fw: R problem > > > > > HelloI want to calculate sen slope with out using package. I wrote one > but,  it is wrong. I attache my data and my script. would you please > check it.Many thanksSincerely yoursElham > > > > > &

[R] Fw: R problem

2016-09-27 Thread Elham Fakharizade via R-help
HelloI want to calculate sen slope with out using package. I wrote one but,  it is wrong. I attache my data and my script. would you please check it.Many thanksSincerely yoursElham 1.46 1.22 1.19 1 1.11 1.16 0.78 0.84 0.79 0.85 0.54 0.49 0.61 0.66

Re: [R] Fw: R problem

2016-09-27 Thread Bert Gunter
This list has a *no homework* policy. Cheers, Bert Bert Gunter "The trouble with having 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 Tue, Sep 27, 2016 at 7:18 AM, Elham Fakharizade via R-help w

[R] Fw: R problem

2016-09-27 Thread Elham Fakharizade via R-help
HelloI am university student.I should do a R home work. That is writing sen slope code in R and calculate it with out using package. I wrote one but,  it is wrong. I attache my data and my script. would you please check it.Many thanksSincerely yoursElham 1.46 1.22 1.19 1 1.11 1.16 0

[R] FW: Why removing the (Intercept) from lm is done by adding -1?

2016-09-21 Thread S Ellison
> Subject: Re: [R] Why removing the (Intercept) from lm is done by adding -1? > > And in R, - means omit, as in > mydataframe[, -1] > right? Not really, no. In the specific interpretation of an R model formula, '-' means 'remove the _term_ following '-' ...'. As below: > This is all in the he

[R] FW: How to read multiple raster and serial correlation between series of rasters

2016-07-04 Thread Waseem Ali
I have asked the below mentioned question a month before. Please guide me if the question is not properly asked to the list member. Waseem Ali From: w1ma...@gmail.com To: r-help@r-project.org Subject: FW: How to read multiple raster and serial correlation between series of rasters Date: Thu,

Re: [R] Fw: How I can calculate the value of response variable

2016-06-26 Thread rezvan hatami via R-help
ter now? From: Bert Gunter To: rezvan hatami Cc: "r-help@r-project.org" Sent: Monday, 27 June 2016, 10:34 Subject: Re: [R] Fw: How I can calculate the value of response variable Is this homework? This list tries to enforce  a no homework policy... If not, it looks to me a

Re: [R] Fw: How I can calculate the value of response variable

2016-06-26 Thread rezvan hatami via R-help
the right thing. Cheers From: Bert Gunter To: rezvan hatami Cc: "r-help@r-project.org" Sent: Monday, 27 June 2016, 10:34 Subject: Re: [R] Fw: How I can calculate the value of response variable Is this homework? This list tries to enforce  a no homework policy... If not, i

Re: [R] Fw: How I can calculate the value of response variable

2016-06-26 Thread Bert Gunter
Is this homework? This list tries to enforce a no homework policy... If not, it looks to me as if you have made no effort to learn R nor have you read and followed the posting guide. We generally expect posters to have made reasonable efforts to do both and demonstrate what they have tried and ho

[R] Fw: How I can calculate the value of response variable

2016-06-26 Thread rezvan hatami via R-help
- Forwarded Message - From: rezvan hatami To: David Winsemius Sent: Monday, 27 June 2016, 9:44 Subject: Re: [R] How I can calculate the value of response variable Dear DavidThank you for your answer. My equation is: nitrate=0.9*fertilizer-0.02*flowrate+0.5*rain my matrix:

Re: [R] Fw: Aw: Re: Building a binary vector out of dichotomous variables

2016-06-17 Thread PIKAL Petr
quot;))) result} make_bv(dataset = ds_example, input_variables = c("year2013", "year2015")) Cheers Petr > -Original Message- > From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of > g.maub...@gmx.de > Sent: Friday, June 17, 2016 9:19 AM > To

[R] Fw: Aw: Re: Building a binary vector out of dichotomous variables

2016-06-17 Thread G . Maubach
> Hi Tom, > > thanks for your reply. > > Yes, that's exactly what I am looking for. I did not know about the automatic > type conversion in R. > > #-- cut -- > ds_example <- > structure( > list( > year2013 = c(0, 0, 0, 1, 1, 1, 1, 0), > year2014 = c(0, >0,

[R] Fw: summing up and cut off with looping

2016-06-10 Thread oslo via R-help
I am so sorry that the data in my previous file was very mass;Here are my data sets > A  posA posB1    1    92    2    73    5   124    4    75    9   13>    pos   a  b    c1   4 0.4  7 0.802   2 0.1  5 0.403   7 0.5  8 0.324   1 0.4   1 0.105  13 0.1  6 0.136  12 0.2 11 0.017   9 0.3 12 0.23>  H

Re: [R] Fw: i need to install "Rclimdex"........Senior Scientists , BARI

2016-06-05 Thread Sarah Goslee
The RClimDex website has instructions for obtaining and installing this package, and for obtaining and installing R if you also need to do that: http://etccdi.pacificclimate.org/software.shtml You must follow those directions, as the necessary first step is obtaining a download password from the m

[R] Fw: i need to install "Rclimdex"........Senior Scientists , BARI

2016-06-05 Thread Ranjit Sen via R-help
Dear Sir: This is Dr Ranjit Sen, Senior Scientific Officer, Soil Science Division, Bangladesh Agricultural Research Institute(BARI). For my research on climatic variability and extreme events of climate of Bangladesh, I need to install the   Rclimdex software from R in my computer.  I would

[R] Fw: i need to install "Rclimdex"........Senior Scientists , BARI

2016-06-05 Thread Ranjit Sen via R-help
- Forwarded Message - From: Ranjit Sen To: "c...@r-project.org" Sent: Sunday, June 5, 2016 2:24 PM Subject: i need to install "Rclimdex"Senior Scientists ,BARI Dear Sir:This is Dr Ranjit Sen, Senior Scientific Officer, Soil Science Division, Bangladesh Agricultur

[R] FW: How to read multiple raster and serial correlation between series of rasters

2016-06-02 Thread Waseem Ali
Dear members, With little effort in producing the code to read all nc files for Carbon dioxide variables I have produced the following code: library(ncdf)ncfiles <- list.files("C:/site-download/AIRS/", pattern='\\.nc$', full.names = TRUE)ncfilesncfname <- ncfiles[1]ncfnamedname <- "mole_fract

Re: [R] Fw: R STUDIO crashing

2016-05-19 Thread Bert Gunter
Rezvan: "This is not help after keeping me waiting for long time. Such a waste of time corresponding with you. " You do understand that this is entirely a volunteer effort, do you not? There is no guarantee that you will get any response at all, nor that any that you do receive is actually helpf

[R] Fw: R STUDIO crashing

2016-05-19 Thread rezvan hatami via R-help
- Forwarded Message - From: rezvan hatami To: Shige Song Sent: Thursday, 19 May 2016, 17:38 Subject: Re: [R] R STUDIO crashing I didn't say that there is a problem with R or Rstudio. I said, it keeps crashing for whatever reason. If it is not crashing on your computer It

Re: [R] Fw: Generating 3Dplot in lattice package

2016-05-03 Thread William Dunlap via R-help
See if you can use is.nan() to figure out which values of B, Bmax, ..., cause the result to be NaN (not a number). One possibility is if B were always negative so abs(B)/max(B) could be negative: (negative)^(non-integer power) is NaN. Bill Dunlap TIBCO Software wdunlap tibco.com On Tue, May 3, 2

Re: [R] Fw: Generating 3Dplot in lattice package

2016-05-03 Thread David Winsemius
> On May 3, 2016, at 3:54 AM, T.Riedle wrote: > > Something is wrong here. The formula > > pmin(psi/VaR,exp(((abs(B)/Bmax)^w2)*log((psi/VaR),2.718182))) > > > provides a time series. Nevertheless, the returned values are incorrect and > it produces NANs. The only thing we can conclude at th

[R] Fw: Generating 3Dplot in lattice package

2016-05-03 Thread T.Riedle
Something is wrong here. The formula pmin(psi/VaR,exp(((abs(B)/Bmax)^w2)*log((psi/VaR),2.718182))) provides a time series. Nevertheless, the returned values are incorrect and it produces NANs. From: William Dunlap Sent: 02 May 2016 20:04 To: T.Riedle Cc: r-h

[R] Fw: group by rows

2016-03-09 Thread carol white via R-help
I found the right usage. Thanks On Wednesday, March 9, 2016 2:28 PM, carol white wrote: What should be FUN in aggregate as no function like mean, sum etc will be applied Carol On Wednesday, March 9, 2016 1:59 PM, Sarah Goslee wrote: Possibly aggregate(), but you posted in HT

Re: [R] FW: Multivariate ARIMA

2016-03-01 Thread Thomas Lofaro
Gilbert [mailto:pgilbert...@gmail.com] Sent: Monday, February 15, 2016 6:27 PM To: Thomas Lofaro Cc: r-help@r-project.org Subject: Re: [R] FW: Multivariate ARIMA See also package dse. There are examples in the guide: http://cran.at.r-project.org/web/packages/dse/vignettes/Guide.pdf Paul On 02

Re: [R] Fw: removing factor values in the main data frame

2016-03-01 Thread Jeff Newmiller
>Texas A&M University >College Station, TX 77840-4352 > > >-Original Message- >From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of hoda >rahmati via R-help >Sent: Tuesday, March 1, 2016 10:32 AM >To: r-help@r-project.org >Subject: [R] Fw: removing fac

Re: [R] Fw: removing factor values in the main data frame

2016-03-01 Thread David L Carlson
p;M University College Station, TX 77840-4352 -Original Message- From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of hoda rahmati via R-help Sent: Tuesday, March 1, 2016 10:32 AM To: r-help@r-project.org Subject: [R] Fw: removing factor values in the main data frame Hi

[R] Fw: removing factor values in the main data frame

2016-03-01 Thread hoda rahmati via R-help
Hi all,I have the following main data frame:(mydata)        $ TE : num 40 40 20 20 20 20 20 20 20 40 ...        $ TR : num 49 49 28 28 28 28 28 28 28 49 ...         $ COUNTRY : Factor w/ 27 levels "","AU","BA","BE",..: 8 8 8 8 8 ...among the COUNTRY I just need US and AU,first I get a subs

[R] FW: dotplot

2016-02-26 Thread Duncan Mackay
Forgot to send to list -Original Message- From: Duncan Mackay [mailto:dulca...@bigpond.com] Sent: Sunday, 17 May 2015 10:49 To: R Subject: RE: [R] dotplot if this is using lattice panel.dotplot gives the clues The vertical lines are inserted by panel abline. You can make your own panel.

[R] Fw: adding a column to data frame solving the replacement problem

2016-02-26 Thread hoda rahmati via R-help
On Friday, February 26, 2016 2:17 PM, hoda rahmati wrote: Hi,Thank you for your answer and sorry that I forgot to add the command I used, the command is:mydata$NewColumn <-- mydata$Sequence[mydata$Sequence=="%Seq%tse"and then the Error that I got.what I want to do after adding the

Re: [R] FW: Multivariate ARIMA

2016-02-15 Thread Paul Gilbert
See also package dse. There are examples in the guide: http://cran.at.r-project.org/web/packages/dse/vignettes/Guide.pdf Paul On 02/14/2016 06:00 AM, r-help-requ...@r-project.org wrote: Date: Fri, 12 Feb 2016 18:12:37 + From: Thomas Lofaro To:"r-help@R-project.org" Subje

[R] FW: Multivariate ARIMA Question....

2016-02-13 Thread Thomas Lofaro
Hi, sorry, I will try to make this short. Essentially, what I am trying to do is run a multivariate ARIMA model predicting one variable with another. However, the only R packages I have found to accommodate such an analysis are ARIMAX and VAR. Unfortunately, there don’t seem to be any good tut

Re: [R] Fw: Multiple Integrals

2015-08-30 Thread David Winsemius
On Aug 30, 2015, at 8:41 AM, Shant Ch via R-help wrote: > Thank you very much to all for all your responses. > > @Dr. Winsemius, E[f(X)] >=f(E(X)) if f is convex. Now we know |x| is convex > function, so clearly in this scenario if we compute the expectation of the > ((X1+X2+X3)/3-X4) and then

[R] Fw: Multiple Integrals

2015-08-30 Thread Shant Ch via R-help
Thank you very much to all for all your responses. @Dr. Winsemius, E[f(X)] >=f(E(X)) if f is convex. Now we know |x| is convex function, so clearly in this scenario if we compute the expectation of the ((X1+X2+X3)/3-X4) and then take the absolute, then, we will get a lower bound of the expectat

[R] FW: Completing Unordered Categorical missing variables using package mi

2015-06-18 Thread IOANNA IOANNOU
Hello all, A perhaps simple question. I am trying to complete unordered categorical missing data using mi package. There are two variables with missing data: Mat and Use. The problem is that the Use has several categories and somehow this means I can't plot the results as I get this error.

Re: [R] Fw: Downloading R

2015-05-13 Thread MacQueen, Don
Hmmm. Follow the instructions at http://www.r-project.org/ After choosing a mirror, you will reach a page that says, in part: partial quote Source Code for all Platforms Windows and Mac users most likely want to download the precompiled binaries listed in the upper box, not the sou

[R] Fw: Downloading R

2015-05-11 Thread e . robinson
> My name is Erick Robinson and I am a SAS administrator at PNC > Bank. I have been tasked with installing R on two of our SAS servers, > but am having trouble downloading the source. I have little background > in UNIX (our servers run On Solaris under Unix) and cannot get to the > site t

Re: [R] FW: New package apex 1.0.0 released on CRAN

2015-04-16 Thread Bert Gunter
This sounds more appropriate for Bioconductor, if you haven't already submitted/announced it there. Cheers, Bert On Thursday, April 16, 2015, Jombart, Thibaut wrote: > > Dear all, > > (apologies for multiple posting) > > On behalf of the apex development team (E. Paradis, K. Schliep, Z. Kamvar,

[R] FW: New package apex 1.0.0 released on CRAN

2015-04-16 Thread Jombart, Thibaut
Dear all, (apologies for multiple posting) On behalf of the apex development team (E. Paradis, K. Schliep, Z. Kamvar, R. Harris and myself), I am happy to announce that apex has been released on CRAN: http://cran.r-project.org/web/packages/apex/index.html This package provides tools for readin

[R] FW: r-sig-genetics is alive!

2015-04-08 Thread Jombart, Thibaut
Dear all, a small "heads up" for R-sig-genetics, a mailing list devoted to population genetics in R. See below, and sorry about the double-posting. All the best Thibaut -- From: Jombart, Thibaut Sent: 08 April 2015 17:21 To: r-sig-genet...@r-project.o

[R] FW: Frontier efficient using black litterman model In R

2015-03-04 Thread Ava Yang
Hi Mukesh, Glad to see someone using BLCOP. You didn't provide a reproducible example so I assume you got a result list complete from optimalPortfolios.fPort() and wanted to obtain details of all the 10 simulations. Short answer to your question: the function only renders the optimal value wh

[R] FW: FW: confidence intervals values in locpol

2015-03-04 Thread IOANNA IOANNOU
Hello all, A straightforward question. How can I get a the values of the 90% confidence intervals of a locpol in R? I can see how you can plot the mean as well as the confidence intervals. I would like the matrix of the values corresponding to the 95% and 5% exceedance probability. An

Re: [R] FW: R demos or tutorials

2014-12-30 Thread Jeff Newmiller
If you entered demo() at the R prompt and got the stated error then I would venture that your installation is faulty. Another function that should work is sessionInfo() and the output of that function can be helpful to us in troubleshooting. However, I would strongly consider looking into

[R] FW: R demos or tutorials

2014-12-30 Thread Joseph Racine
To whom is may concern, I am interested in working with R, and just downloaded the windows installation. Unfortunately when I tried to run some demos, I received an error (Error: could not find function "demo"). Any suggestions? Also, if you have some tutorial packages to help gain some famili

Re: [R] FW: R Statistics

2014-12-03 Thread Chel Hee Lee
Or, you may use this approach: > attach(achtergrond) > spits <- ifelse(uurenminuut >= 5.30 & uurenminuut < 9.30, "morning", + ifelse(uurenminuut >=16.30 & uurenminuut < 19.0, "evening", + "between")) > table(spits) spits between evening morning 1636 142 579 > I personally like the app

Re: [R] FW: R Statistics

2014-12-02 Thread William Dunlap
You can do this in 2 steps - have cut() make a factor with a different level for each time period then use levels<-() to merge some of the levels. > z <- cut(.5:3.5, breaks=c(0,1,2,3,4), labels=c("0-1", "1-2", "2-3", "3-4")) > levels(z) [1] "0-1" "1-2" "2-3" "3-4" > levels(z) <- c("betw

  1   2   3   4   5   6   >