Re: [R] Looping Through DataFrames with Differing Lenghts

2017-03-27 Thread Anthoni, Peter (IMK)
Hi Paul, match might help, but without a real data sample, it is hard to check if the following might work. mm=match(df.col378[,"Date"],df.col362[,"Date"]) #mm will have NAs, where there is no matching date in df.col362 #and have the index of the match, where the two dates match

[R] How to source a local R file to a remote session.

2017-03-27 Thread Jeremie Juste
Hello, I don't know exactly where to turn to. I'm using Emacs speak statistics and I can execute a codes on my local computer to a remote session seemlessly. But I've always wondered how to source a file on local computer to the remote session? Till now I have copied the files to the remote

Re: [R] Looping Through DataFrames with Differing Lenghts

2017-03-27 Thread Ulrik Stervbo
You could use merge() or %in%. Best, Ulrik Mark Sharp schrieb am Mo., 27. März 2017, 22:20: > Make some small dataframes of just a few rows that illustrate the problem > structure. Make a third that has the result you want. You will get an > answer very quickly. Without a

Re: [R] Handling nonexistent observations in R for time series analysis and forecasting

2017-03-27 Thread David Winsemius
> On Mar 27, 2017, at 7:15 AM, Paul Bernal wrote: > > Dear friends, > > Hope you are all doing great. I am trying to model historical data on > transits, and the dates are in the following format: 1985-10-01 > 00:00:00.000 (this would be october, 1985). > The data comes

[R-es] Documentación nueva

2017-03-27 Thread javier.ruben.marcuzzi
Estimados De casualidad hice un click y vi que se está creando una documentación nueva de R, o de otra forma, lleva mucho tiempo de trabajo y yo era el único que no estaba ni enterado. En forma general: http://stackoverflow.com/documentation/r/topics De casualidad sobre OOP (los otros días

Re: [R] Looping Through DataFrames with Differing Lenghts

2017-03-27 Thread Mark Sharp
Make some small dataframes of just a few rows that illustrate the problem structure. Make a third that has the result you want. You will get an answer very quickly. Without a self-contained reproducible problem, results vary. Mark R. Mark Sharp, Ph.D. msh...@txbiomed.org > On Mar 27, 2017,

[R] Looping Through DataFrames with Differing Lenghts

2017-03-27 Thread Paul Bernal
Dear friends, I have one dataframe which contains 378 observations, and another one, containing 362 observations. Both dataframes have two columns, one date column and another one with the number of transits. I wanted to come up with a code so that I could fill in the dates that are missing in

Re: [R] How to load fonts in text3d?

2017-03-27 Thread Duncan Murdoch
On 27/03/2017 1:09 PM, olsen wrote: I'm trying to run the example given in ?text3d as follows: library(rgl) open3d() famnum <- rep(1:4, 8) family <- c("serif", "sans", "mono", "symbol")[famnum] font <- rep(rep(1:4, each = 4), 2) cex <- rep(1:2, each = 16) text3d(font, cex, famnum, text =

Re: [R] Handling nonexistent observations in R for time series analysis and forecasting

2017-03-27 Thread Bert Gunter
Ok Jeff. Thanks. Bert On Mar 27, 2017 9:56 AM, "Jeff Newmiller" wrote: > Actually, I think his question is about R because one answer that has been > mentioned is to use the merge function, but I haven't felt the urge to > create a reprex for him (see Posting Guide)

[R] How to load fonts in text3d?

2017-03-27 Thread olsen
I'm trying to run the example given in ?text3d as follows: library(rgl) open3d() famnum <- rep(1:4, 8) family <- c("serif", "sans", "mono", "symbol")[famnum] font <- rep(rep(1:4, each = 4), 2) cex <- rep(1:2, each = 16) text3d(font, cex, famnum, text = paste(family, font), adj = 0.5, color

Re: [R] Handling nonexistent observations in R for time series analysis and forecasting

2017-03-27 Thread Jeff Newmiller
Actually, I think his question is about R because one answer that has been mentioned is to use the merge function, but I haven't felt the urge to create a reprex for him (see Posting Guide) and he keeps posting in HTML so it would have been corrupted even if he had. Someone else also pointed

[R] assistance is greatly needed

2017-03-27 Thread BR_email
Hi R'ers: I am seeking the attachment. Any help is greatly appreciated. Thanks. Bruce Code *** yhat <- seq(1, 0.05, length.out = 20) Response <-c(1,0,1,0,0,0,0,0,1,0,1,0,1,0,0,0,0,0,1,0) cum_R<- cumsum(Response) sam_size <- length(Response) cum_n<- seq(1:1,length=20) cum_wt

Re: [R] Handling nonexistent observations in R for time series analysis and forecasting

2017-03-27 Thread Bert Gunter
A statistics, not really an R programming question, so I believe OT here. But: 1. See the CRAN Time series task view for what's available: https://cran.r-project.org/web/views/TimeSeries.html 2. stats.stackexchange.com is a good site for statistical questions. Cheers, Bert Bert Gunter "The

[R] Handling nonexistent observations in R for time series analysis and forecasting

2017-03-27 Thread Paul Bernal
Dear friends, Hope you are all doing great. I am trying to model historical data on transits, and the dates are in the following format: 1985-10-01 00:00:00.000 (this would be october, 1985). The data comes from an SQL Server Database and there are several missing observations. The problem is

[R] R version 3.3.2, Windows 10: How to identify the common coordinates in two different SpatialPixelDataFrame

2017-03-27 Thread Rathore, Saubhagya Singh
Hello Everyone, I am resending this message as due to some reason, the message was not posted on the list before. I have two SpatialPixelDataFrames (a and b) which have few common coordinates/locations. I need to identify these common coordinates and remove them from both the dataframes.

Re: [R] Assistance would be appreciated

2017-03-27 Thread MyCalendar
Hey Berend and Jim: Yes, it's me, Bruce. I will try your inputs, and let you know. Thanks. Bruce PS: I goal is to create: mean_decc_0, mean_decc_1, ..., mean_decc_9 And then stack them. Also, Aren't these dataframe? --- > On Mar 27, 2017, at 5:30 AM, Berend Hasselman

[R] pvclust: highly varying results for the exactly same analysis, unknown warning message

2017-03-27 Thread paladini
Hello, I have got problems using pvclust() and it would be really nice if somebody could help me. I have got a dataframe called "owner2006" looking like this: company year share0 share1 share2 share5 share6 share7 share11 share12 1 aareal bank

Re: [R] Presentation Quality Tables, e.g., Ten rows, Five columns, with nice headers

2017-03-27 Thread John Kane via R-help
If you are working in LaTeX I'd suggest having a look at the R package  xtable with the  LaTeX package booktabs.  On Sunday, March 26, 2017 2:23 PM, MyCalendar wrote: Hi R'ers: After browsing for a good package for quality table construction, I found nothing.

Re: [R] Assistance would be appreciated

2017-03-27 Thread Jim Lemon
Hi is it still Bruce?, mean_decc_0<-mean_decc_0[c(1:4,6:8)] Jim On Mon, Mar 27, 2017 at 10:13 AM, MyCalendar wrote: > Hi R'ers: > Newbie to R, but I guarantee that I don't ask for help until, in this case, I > spent > Over ten hours today ( Sunday, wife loves it!! ) > I

Re: [R] Assistance would be appreciated

2017-03-27 Thread Berend Hasselman
> On 27 Mar 2017, at 01:13, MyCalendar wrote: > > Hi R'ers: > Newbie to R, but I guarantee that I don't ask for help until, in this case, I > spent > Over ten hours today ( Sunday, wife loves it!! ) > I can't find the bug, trying to remove column cum_wt. > Assistance would

[R] Assistance would be appreciated

2017-03-27 Thread MyCalendar
Hi R'ers: Newbie to R, but I guarantee that I don't ask for help until, in this case, I spent Over ten hours today ( Sunday, wife loves it!! ) I can't find the bug, trying to remove column cum_wt. Assistance would be appreciated. Bruce --- Code --- yhat <- seq(1, 0.05, length.out = 20)

Re: [R] [FORGED] Can fallback font be specified?

2017-03-27 Thread Jinsong Zhao
On 2017/3/27 6:46, Paul Murrell wrote: Hi The following code uses 'gridSVG' to export the plot to SVG (after using 'gridGraphics' to convert the plot to using 'grid'), which allows you to specify a "font stack" for the exported SVG. In this example, I am adding "SimHei" to the "serif" font