Re: [R] Data structure to hold the following

2016-02-15 Thread Alaios via R-help
The tables and vectors storing the data will be used for accessing the data (sequentially is also fine) to do calculations as needed. RegardsAlex On Monday, February 15, 2016 7:17 PM, Bert Gunter wrote: I would say that it depends on what you want to do with the data. Bert On Monday,

Re: [R] Condition layer across panels in lattice

2016-02-15 Thread Duncan Mackay
Adding a condition column in the summary_data simplifies things a bit summary_data$cond3 <- sapply(summary_data$cond2, pmatch, LETTERS) mypanel <- function(x, y, ..., lci, uci, scond1, scond3, groups, type, lty){ pnl = panel.number() panel.xyplot(x, y, ..., groups = groups, type = type,

Re: [R] Condition layer across panels in lattice

2016-02-15 Thread Duncan Mackay
Sorry forgot to reply to list. In addition (untested) modifying demo(lattice::intervals) to suit may help Duncan -Original Message- From: Duncan Mackay [mailto:dulca...@bigpond.com] Sent: Tuesday, 16 February 2016 12:12 To: 'Jeff Stevens' Subject: RE: [R] Condition layer across panels

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" Subject: [R] FW: Multi

Re: [R] [FORGED] Error installing the package "Cairo"

2016-02-15 Thread Rolf Turner
On 15/02/16 22:51, Sandeep Mallya wrote: Hello all, I am trying to install the package Cairo on RedHat running R version 3.2.3. So far I have tried install.packages("Cairo") R CMD INSTALL Cairo_1.5-9.tar.gz Both the approaches giving me the same error below. Error : .onLoad failed in loadName

Re: [R] R 3.2.3 on Win8; mkdir command produces error

2016-02-15 Thread John Kane
John Kane Kingston ON Canada -Original Message- From: istaz...@gmail.com Sent: Mon, 15 Feb 2016 11:06:47 -0500 To: jrkrid...@inbox.com Subject: Re: [R] R 3.2.3 on Win8; mkdir command produces error On Feb 15, 2016 8:53 AM, "John Kane" wrote: > > I'd say that Boris Steipe's suggestion

Re: [R] Convert list to data frame

2016-02-15 Thread Duncan Murdoch
On 15/02/2016 7:41 AM, asma.r...@gmail.com wrote: Hi, I read data from file as follows Data<-read.table("file.txt",header=T,sep="\t") mode(Data) list I want to convert data to data frame, I tried the following: as.data.frame(Data) data.frame(Data) But the Data did not change It is alread

Re: [R] Convert list to data frame

2016-02-15 Thread Sarah Goslee
On Monday, February 15, 2016, wrote: > Hi, > > I read data from file as follows > > Data<-read.table("file.txt",header=T,sep="\t") > > mode(Data) > list Data is a data frame; that's what read.table() produces. A data frame is a special type of list. Take a look at class(Data) > > I want to

[R] Convert list to data frame

2016-02-15 Thread asma . rabe
Hi, I read data from file as follows Data<-read.table("file.txt",header=T,sep="\t") mode(Data) list I want to convert data to data frame, I tried the following: as.data.frame(Data) data.frame(Data) But the Data did not change When I tried as.data.frame(unlist(Data)) The Data converted to a

Re: [R] Error with Twitter Authorization for Sentiment Analysis

2016-02-15 Thread SHIVI BHATIA
Hi Sandeep, Here is my authorization code: setup_twitter_oauth(consumer_key,consumer_secret,access_token,access_secret) . Prior to this I have just added my consumer key and the other var after logging at https://apps.twitter.com. Does this help. -Original Message- From: Sandeep Rana [m

Re: [R] Data structure to hold the following

2016-02-15 Thread Bert Gunter
I would say that it depends on what you want to do with the data. Bert On Monday, February 15, 2016, Alaios via R-help wrote: > Dear all,I am using R to emulate radio propagation dynamics. > I have 90 antennas in a region and each of these 90 antennas hold > information about 36 points (these

[R] Data structure to hold the following

2016-02-15 Thread Alaios via R-help
Dear all,I am using R to emulate radio propagation dynamics. I have 90 antennas in a region and each of these 90 antennas hold information about 36 points (these are all exactly the same and there is no need to differentiate them further) Each of these antennas now should keep information about t

[R] Condition layer across panels in lattice

2016-02-15 Thread Jeff Stevens
I would like to plot individual subject means for two different conditions in a lattice stripplot with two panels. I would also like to add within-subject confidence intervals that I have calculated and stored in separate data frame. I am trying to overlay these confidence intervals with latticeExt

Re: [R] filtering a data frame from a column of type integer

2016-02-15 Thread Huzefa Khalil
This is because of the presence of NA's in your "station_RT" column. If you use which(), it will give you the correct result: station_list <- df[which(df$station_RT==142), ] best, huzefa On Mon, Feb 15, 2016 at 11:39 AM, Stefano Sofia < stefano.so...@regione.marche.it> wrote: > Dear R list user

[R] filtering a data frame from a column of type integer

2016-02-15 Thread Stefano Sofia
Dear R list users, I am not able to perform a trivial filter of a data frame. From a txt file (df_file.txt) of this form: sensor_RM station_RM place_RM municipality_RM Y_init_RM M_init_RM D_init_RM Y_fin_RM M_fin_RM D_fin_RM goes_on notes sensor_RT station_RT net Omogneneous 2000 1510 Candelara P

Re: [R] ts time-object indexing question?

2016-02-15 Thread Michael Peng
a.ts[time(a.ts)==1965] 2016-02-15 10:53 GMT-05:00 ce : > > Dear all, > > I can't find an answer to this simple question: > > a.ts <- ts(1:10, frequency = 1, start = c(1959, 1)) > > a.ts > Time Series: > Start = 1959 > End = 1968 > Frequency = 1 > [1] 1 2 3 4 5 6 7 8 9 10 > > Now I wan

Re: [R] R 3.2.3 on Win8; mkdir command produces error

2016-02-15 Thread Ista Zahn
On Feb 15, 2016 8:53 AM, "John Kane" wrote: > > I'd say that Boris Steipe's suggestion is the most likely answer to the problem. Also, it's been a long time since I used Windows (deo gratias) but that path name does not look right. I think I would have expected something more like: > > "C:/Users/

[R] ts time-object indexing question?

2016-02-15 Thread ce
Dear all, I can't find an answer to this simple question: a.ts <- ts(1:10, frequency = 1, start = c(1959, 1)) > a.ts Time Series: Start = 1959 End = 1968 Frequency = 1 [1] 1 2 3 4 5 6 7 8 9 10 Now I want to get let's say value for 1965 , how to get it ? > a.ts["1965"] [1] NA doesn

[R] Package for: Instrumental variables with spatial error and lags for cross-sectional data?

2016-02-15 Thread cpblpublic+rhelp
I have a spatial cross-sectional dataset. I think I have an instrument for my dependent variable, but there's reason to suspect I need a spatial lag with spatial error model. The dataset has about 100,000 observations. I am looking for a package which will estimate my model in R (or Stata or P

[R] non parametric algorithm npEM (library mixtools) usage

2016-02-15 Thread Luigi Marongiu
Dear all, I am using mixtols to find cut-off values from datasets. At the moment I can run the parametric function normalmixEM from the library mixtools, but I owuld like to generalize the procedure with the non parametric version npEM. However I am confused regarding the arguments to use in this i

Re: [R] Error with Twitter Authorization for Sentiment Analysis

2016-02-15 Thread Sandeep Rana
Shivi, I’m not sure how you have installed ‘twitterR’ package. But please follow below steps and your issue will be resolved: - Ensure there are no objects in memory. To be sure run these commands : - .r.restartR() - rm(list=ls()) - gc()

Re: [R] R 3.2.3 on Win8; mkdir command produces error

2016-02-15 Thread John Kane
I'd say that Boris Steipe's suggestion is the most likely answer to the problem. Also, it's been a long time since I used Windows (deo gratias) but that path name does not look right. I think I would have expected something more like: "C:/Users/rhmichel/rprog-data-specdata/specdata/001.csv" A

Re: [R] Estimating Mean of a Poisson Distribution Based on interval censoring

2016-02-15 Thread Therneau, Terry M., Ph.D.
For an interval censored poisson or lognormal, use survreg() in the survival package. (Or if you are a SAS fan use proc lifereg). If you have a data set where R and SAS give different answers I'd like to know about it, but my general experience is that this is more often a user error. I am al

Re: [R] Error with Twitter Authorization for Sentiment Analysis

2016-02-15 Thread Sandeep Rana
Shivi, Could you also share the piece of code to have a look at ? Regards, Sunny Singha > On 14-Feb-2016, at 3:45 PM, SHIVI BHATIA wrote: > > Dear Team, > > > > Every now and then I face issues while connecting to Twitter: > > > > Error in check_twitter_oauth() : OAuth authentication erro

[R] Error installing the package "Cairo"

2016-02-15 Thread Sandeep Mallya
Hello all, I am trying to install the package Cairo on RedHat running R version 3.2.3. So far I have tried install.packages("Cairo") R CMD INSTALL Cairo_1.5-9.tar.gz Both the approaches giving me the same error below. Error : .onLoad failed in loadNamespace() for 'Cairo', details: call: dyn.l

[R] Error with Twitter Authorization for Sentiment Analysis

2016-02-15 Thread SHIVI BHATIA
Dear Team, Every now and then I face issues while connecting to Twitter: Error in check_twitter_oauth() : OAuth authentication error: This most likely means that you have incorrectly called setup_twitter_oauth()' I have checked multiple github suggestion and statsexchange forum & have

Re: [R] View() function

2016-02-15 Thread PIKAL Petr
Hi > -Original Message- > From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of > ALBUKHAITI HESHAM > Sent: Saturday, February 13, 2016 6:34 AM > To: R-help@r-project.org > Subject: [R] View() function > > i am try to show the rows name in r by View() function but i cannot How V