Re: [R] Non date value

2017-04-14 Thread Jeff Newmiller
You don't follow instructions very well. Read the Posting Guide more carefully. -- Sent from my phone. Please excuse my brevity. On April 14, 2017 9:39:30 PM PDT, Ashta wrote: >DF1 is a data frame. I am suspecting there might be non date value >in that column. My question

Re: [R] Non date value

2017-04-14 Thread Ashta
DF1 is a data frame. I am suspecting there might be non date value in that column. My question is how to remove a non date values from that field. example if Alex152 has 12253,. This value is not a date format. On Fri, Apr 14, 2017 at 11:24 PM, Bert Gunter wrote:

Re: [R] Non date value

2017-04-14 Thread Bert Gunter
Show us str(DF1) . It is not a data frame. -- Bert On Fri, Apr 14, 2017 at 9:02 PM, Ashta wrote: > Hi all, > I am reading a field data that contains several variables. The sample > of the data with the first two variables is shown below. I wanted to > know the minimum

Re: [R] Can this be done in ggplot?

2017-04-14 Thread Kenneth Roy Cabrera Torres
A very dirty solution. I hope someone can give a better solution: library(ggplot2) set.seed(1) df <- expand.grid(g = factor(1:4), f = factor(c("a", "b", "c"))) df <- df[-1, ] # some factors are not present in certain groups df$v <- runif(nrow(df)) library(dplyr) df <- df %>% arrange(g,

Re: [R] seq argument along.with

2017-04-14 Thread Carl Sutton via R-help
Hi Jeff I have seen the seq_along function but never knew the what or why of it.  Your response is much appreciated and just shows how brilliant the creators of R were/are. Thank you for enlightening me. Carl Sutton On Friday, April 14, 2017 3:54 PM, Jeff Newmiller

[R] Non date value

2017-04-14 Thread Ashta
Hi all, I am reading a field data that contains several variables. The sample of the data with the first two variables is shown below. I wanted to know the minimum and maximum recording date However, I have some problem. Name Rdate V1 to V20 Alex101/03/2015 Alex201/03/2014

Re: [R-es] Variograma - Bins

2017-04-14 Thread CARLOS ALBERTO TAIMAL YEPES
Muchas gracias Rubén, me ha sido muy útil la información. El 14 de abril de 2017, 13:32, Rubén Fernández-Casal escribió: > Hola Carlos, > > Los paquetes gstat y geor fijan el número de saltos sin ningún criterio. > La recomendación sería determinar un número de saltos de

Re: [R] seq argument along.with

2017-04-14 Thread Jeff Newmiller
Have you ever used the seq_along() function? If you want to delegate the decision of how many elements you want to process to some earlier point in your (or someone else's) code, then the most logical way to create a result vector that is the same size as some input vector, even if that vector

[R] seq argument along.with

2017-04-14 Thread Carl Sutton via R-help
Hi just messing around today and am now perplexed by the seq argument "along.with". Please, I am just just seeking some knowledge here. Obviously I missed a point and would like to know what it is. seq(1,10,length.out = 2) makes sense seq(1,10,by = 2) makes sense seq(1,10,

Re: [R-es] Variograma - Bins

2017-04-14 Thread Rubén Fernández-Casal
Hola Carlos, Los paquetes gstat y geor fijan el número de saltos sin ningún criterio. La recomendación sería determinar un número de saltos de forma que el número de aportaciones al primer salto sea en torno a 30 (20 podría valer...) y considerando hasta la mitad del máximo salto posible. Un

[R] Can this be done in ggplot?

2017-04-14 Thread Axel Urbiz
Hi, I need to bars to display in order based on the values of "v" within each group "g". Is this possible? library(ggplot2) set.seed(1) df <- expand.grid(g = 1:4, f = factor(c("a", "b", "c"))) df <- df[-1, ] # some factors are not present in certain groups df$v <- runif(nrow(df)) ggplot(df,