Hi Ezra,
Since each dataset is for a different variable, I think your best bet is to
make a "two-panel" plot, but stacked so the time axes line up. This doesn't
require anything fancy to do with the fact the series are sampled at
different intervals. You may need to decimate or interpolate for
Dear all,
I am a beginner in R and want to ask a simple question. I have a code file
in text format which I need to change to .r format only. For example now it
is RHtestsV4.r.txt which needs to be changed to just RHtestsV4.r. I tried
this
sub("^([^.]*).*", "\\1", 'RHtestsV4.r.txt')
[1]
My guess is that your on Windows. If so, make sure to change settings in
Explorer to always show filename extensions, because now I think it drops
.txt when it lists/displays your files (this is one of the most annoying
features in Windows).
Also, some basic editors add .txt extension when you
It is a very fundamental fact about data frames that they are COLUMNS of like
data. If you have specific row-oriented requirements then you will need to
build a data frame or matrix of character strings of formatted data.
On 06/11/2015 3:26 PM, Deepthi Theresa wrote:
Hi all,
My question is about R dataframes. I am making html reports using R
datframe tables and RMarkdown.
I have a dataframe with integer values on it and I had to rbind another
dataframe with decimal values with the first dataframe.
After the
Does [1] help?
[1]
http://stackoverflow.com/questions/10528631/add-exp-power-trend-line-to-a-ggplot
---
Jeff NewmillerThe . . Go Live...
DCN:
For reference, also asked here:
http://stackoverflow.com/questions/33569737/unable-to-call-a-function-in-r
On Sat, Nov 7, 2015 at 4:22 AM, Chattopadhyay, Somsubhra
wrote:
> Dear all,
>
> I am a beginner in R and want to ask a simple question. I have a code file
> in text
Read the help for facet_grid, in particular about the scale parameter. I don't
think you can individually control it though.
---
Jeff NewmillerThe . . Go Live...
Hello Duncan,
Thank you.
I completed the task using the exact way you described here. Changed the
data frame in to a character type using apply function and complicated the
task.
Thanks,
Deepthi
On Nov 6, 2015 4:44 PM, "Duncan Murdoch" wrote:
> On 06/11/2015 3:26
Hi all,
My question is about R dataframes. I am making html reports using R
datframe tables and RMarkdown.
I have a dataframe with integer values on it and I had to rbind another
dataframe with decimal values with the first dataframe.
After the rbind function all values changed to decimal
Perhaps this would be a good time to use your operating system capabilities to
change the name of the file. All you have been doing is mucking with data in R
without affecting the actual file name.
---
Jeff Newmiller
Please do not post in HTML. Your post is gibberish.
Also please have a look at
http://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example
and/or http://adv-r.had.co.nz/Reproducibility.html for some suggestions on
asking questions in R-help.
John Kane
Kingston ON
I have tried all different options - compile from source, Rtools, binary,
RWinEdt versions <2.0 and current - on both R 3.1.2 and R 3.2.2. All have
failed with error
messages as follows:
- 1-
install from binary from drop down
Hi,
i want to read a file on every 0.5 (or less) second. How can i set this time
loop to read a file ?
Any idea will be appreciated . Thanks . Tanvir Ahamed
Göteborg, Sweden | mashra...@yahoo.com
[[alternative HTML version deleted]]
I have a variable meanedf which may sometimes not be defined due to a
complex set of circumstances.
I would like to be able to find out whether or not it exists, and then
branch appropriately in my code.
I had hoped to be able to use is.null() or exists() but neither of these
returns TRUE or
There is no fundamental difference between an .R file and a .txt
file. They are both just text files; all you are doing is changing
the name. This Stack Overflow question shows how to use
`file.rename` to do
so. http://stackoverflow.com/a/10759083/1850696.
Chattopadhyay, Somsubhra writes:
Quotation marks help also for exists():
exists( "meanedf" )
[1] TRUE
On Saturday 07 November 2015 04:48:04 Margaret Donald wrote:
> I have a variable meanedf which may sometimes not be defined due to a
> complex set of circumstances.
> I would like to be able to find out whether or not it
For me,
"meanedf" %in% ls()
works:
meanedf <- 1
"meanedf" %in% ls()
[1] TRUE
rm( meanedf )
"meanedf" %in% ls()
[1] FALSE
Rgds,
Rainer
On Saturday 07 November 2015 04:48:04 Margaret Donald wrote:
> I have a variable meanedf which may sometimes not be defined due to a
> complex set of
Hola a tod@s,
quería realizar una gràfica de una variable a lo largo de los meses.
Tengo una tabla con los meses en la col1 ="Mesos" y una variable en la
col3="Serie01".
Quiero representar cada valor de Serie01 en su mes a lo largo del tiempo.
Con la función indexplot consigo representar la
hi, just throwing this out there. it's not clear to me how to reproduce
the crashes, because they are sporadic (but common)
guessing it's related to the switched default of setInternet2(TRUE) but not
sure
here's a semi-absurd screenshot
http://s17.postimg.org/70omgtmi7/early_crashes.png
i
Hi,
I have a data frame with multiple columns, which are belong to several
groups
like that:
X1X2X3Y1Y2Y3
1232357230987172
0719811795743
4391907614
I would like to filter such rows out, where the sums in one
Is this what you want:
> x <- read.table(text = "X1X2X3Y1Y2Y3
+ 1232357230987172
+ 0719811795743
+ 4391907614", header = TRUE)
> x
X1 X2 X3 Y1 Y2 Y3
1 1232 357 23 0 9871 72
20 719 811 795
If you have code that is running for a long time, then take a small case
that only runs for 5-10 minutes and turn on the RProfiler so that you can
see where you are spending your time. In most cases, it is probably not
the 'for' loops that are causing the problem, but some function/calculation
If you have multiple cores, you could try the foreach package. Jim's advice
still holds, but you would be farming the work out.
FWIW,
Stephen
On Fri, Nov 6, 2015 at 8:54 AM, jim holtman wrote:
> If you have code that is running for a long time, then take a small case
> that
Please learn to use dput() to post example data.
# This is your data:
data <- structure(c(1232, 0, 43, 357, 71, 919, 23, 9, , 0, 811, 0,
9871, 795, 76, 72, 743, 14), .Dim = c(3L, 6L), .Dimnames = list(
NULL, c("X1", "X2", "X3", "Y1", "Y2", "Y3")))
data
# define groups and threshold
Providing a reproducible example and the results of `sessionInfo` will help
get your question answered. For example, did you use the formula or
non-formula interface to `train` and so on
On Thu, Nov 5, 2015 at 1:10 PM, Bert Gunter wrote:
> I am not familiar with
Trying to install vcd package but can’t
It seems like it tries but runs into some kind of error and so quits.
Maybe it has something to do with the “dependencies” – not sure what that means
Also think it might have something to do with Windows 10 keeping Documents
folder synced with OneDrive.
Hello everyone!
Could someone recommend a good reference for Fortran with R, please? I
know that Dirk has an excellent book for C/C++, but I feel more comfortable
with Fortran (I'm old school, maybe just old!)
Thank you very much in advance,
Sincerely,
Erin
--
Erin Hodgess
Associate
Hi,
It's possible to use ggplot and geom_smooth to adjust a power curve to the
data?
Initially i have done the adjustement with nls and the formula 'a*x^b', but
resulted the singular matrix error for start solution. Alternatively I used
the log transformation and i had correct results, but I
Hi All,
Using R for text processing is quite new to me, while I have found a lot of
useful functions and I'm beginning to learn regex, I need help with the
following task. How do I calculate the distance between words?
That is, given a specific keyword, I need to assign labels to the other
words
I assume the solution is somewhat the same; you just have to define how to
determine what the "distinctive" names are to create the groupings. My
solution assumed it was the first character. If the group names end in a
unique sequence, you can use this to form the groups, or you can provide a
Hi, I'm running this script:
library(scatterplot3d)datos<-read.csv("C:\\prueba.csv",sep=",",header=TRUE)str(datos)scatterplot3d(datos)
s3d<- scatterplot3d(datos, type = "h", color = "blue", angle = 55, scale.y =
0.7, pch = 16, main = "title”)
my.lm <- lm(datos$Bx ~ datos$e + datos$t)
Please keep the list in the conversation.
Yes stacking was my intention, since the graphical presentation does not need
the same time basis. However, your other analyses may indeed require that you
interpolate or decimate to obtain aligned data records.
On 05/11/2015 9:42 PM, Adam Garza wrote:
Trying to install vcd package but can’t
It seems like it tries but runs into some kind of error and so quits.
Maybe it has something to do with the “dependencies” – not sure what that means
Most packages depend on other packages. The vcd package
Jeff -- Thank you for the clarification.
Ezra
On Fri, Nov 6, 2015 at 10:36 AM, Jeff Newmiller
wrote:
> Please keep the list in the conversation.
>
> Yes stacking was my intention, since the graphical presentation does not
> need the same time basis. However, your
> On Nov 6, 2015, at 3:28 AM, Karl wrote:
>
> Hi All,
>
> Using R for text processing is quite new to me, while I have found a lot of
> useful functions and I'm beginning to learn regex, I need help with the
> following task. How do I calculate the distance between words?
> On 6 Nov 2015, at 17:23, Erin Hodgess wrote:
>
> Hello everyone!
>
> Could someone recommend a good reference for Fortran with R, please? I
> know that Dirk has an excellent book for C/C++, but I feel more comfortable
> with Fortran (I'm old school, maybe just old!)
Great..thanks for the package names. I was going to use the "Writing R
Extensions" but wanted some more material as well. Looking at the other
packages might just do the trick.
Thanks,
Erin
On Fri, Nov 6, 2015 at 10:59 AM, Berend Hasselman wrote:
>
> > On 6 Nov 2015, at
En un archivo estan los meses en formato chapuzero:
Setembre-97, Octubre-97, Novembre-97.
Y en el otro en formato fecha: 01.09.1997, 01.10.1997, 01.11.1997 etc.
Simplemente quiero representar la Serie01 en función de los meses.
Danke! Gracias!
El 6 de noviembre de 2015, 14:39, Carlos Ortega
Hola,
De esta forma lo tienes...
#
datIn <- read.table("Dades_PAC1Des96_Des08_PUNTS_DATE.csv", header=T, as.is=T,
sep=",")
head(datIn)
library(stringr)
datIn$newMesos <- str_replace_all(datIn$Mesos, "/9", "/199")
library(lubridate)
datIn$dimeye <-
Awesome!
Thanks!
On Fri, Nov 6, 2015 at 2:09 PM, Eduardo M. A. M.Mendes wrote:
> Dear Erin
>
> I have written some packages using my old fortran source codes. Nothing
> fancy as the ones in CRAN but they do what they suppose to do. If you are
> interested in checking
This is greatI have wonderful ideas/examples to work with.
Thanks to all!
On Fri, Nov 6, 2015 at 2:13 PM, ProfJCNash wrote:
> It's not a full book on the issue, but I have some material in "speeding
> things up" in my book on Nonlinear parameter estimation tools in
Dear Erin
I have written some packages using my old fortran source codes. Nothing fancy
as the ones in CRAN but they do what they suppose to do. If you are interested
in checking a very simple package using a fortran code, please look at
https://github.com/emammendes/mittagleffler
It's not a full book on the issue, but I have some material in "speeding
things up" in my book on Nonlinear parameter estimation tools in R. I
suspect the examples are the useful bit.
JN
On 15-11-06 12:17 PM, Erin Hodgess wrote:
> Great..thanks for the package names. I was going to use the
Hola,
Simplemente definiendo la columna de las fechas como "asDate()" es
suficiente para que cuando hagas un plot (base) tengas tus fechas en el eje
X.
http://stackoverflow.com/questions/24481176/r-x-axis-date-labels-using-plot
Hola a tod@s,
sigo intentando representar una variable en función de meses. En la columna
Mesos tengo los meses de la siguiente manera:
01/08/1996, 01/09/1996 etc.
He probado con el siguiente comando:
plot(Mesos, Serie01)
obteniendo
y tendría que obtener:
[image: Imágenes integradas 2]
sorry, for the misunderstanding. here is a more elaborate description of
what i would like to achieve.
I have a data set of counts from a RNA-Seq experiment and would like to
filter reads with low counts. I don't want to set everything to 0
automatically.
I would like to set each categorical
Hello Everyone,
I'm using the following code to plot sulfate concentrations vs. time for
several groundwater wells at one time. Normally I need the scales to all
be the same but in the case of sulfate I need to use a different scale for
each well. This is because some of my wells have very high
Uwe,
When I tried to install RWinEdt (R-3.2.2 installed from CRAN binary, Win 7), I
got the following message:
> utils:::menuInstallPkgs()
Package which is only available in source form, and may need
compilation of C/C++/Fortran: ‘RWinEdt’
Do you want to attempt to install these from sources?
49 matches
Mail list logo