Displaying 20 results from an estimated 1000 matches similar to: "how to write nicely a condition on a loop "for" (that is, not like I did)"
2007 Aug 27
4
Problem with save or/and if (I think but maybe not ...)
Hi,
I recently discovered the R program and I thought it could be useful to me.
I have to analyse data saved as .Px file (x between 0 and 8 - .P0 files have
18 lines at the beginning that I have to skip). New files are generated
everyday.
This is my strategy :
In order to analyse the data, I first want to copy the new data in a
database in MySQL (which already contains the previous data).
So
2007 Aug 29
1
Strage result with an append/strptime combination
Hi,
I keep on trying to write some small scripts in order to learn R but even
with basic scripts I have problems ...
I start with the name of a file which is in fact the time the file has been
generated (I cannot change the format). Then I convert namefile with
strptime. The problem occurs when I add another time from another file with
append. It displays some informations I don't want.
I
2007 Dec 17
2
Must be obvious but not to me : problem with regular expression
Hi,
I have a vector called nfichiers of 138 names of file whose extension is .P0
or P1 ... to P8.
The script is not the same when the extension is P0 or P(1 to 8).
Examples of file names :
[128] "Output0.P0"
[129] "Output0.P1"
[130] "Output0.P2"
[131] "Output01102007.P0"
[132] "Output01102007.P1"
[133]
2007 Sep 17
4
Must be easy, but haven't found the function (numerical integration)
Hi,
I have a data frame of 2 columns with the following types :
data$day char
data$value num
And I plot my data with :
plot(strptime(donnees$day,format="%Y-%m-%d %H:%M:%S"),donnees$value,
type="l")
And I'd just like to get the numerical value of the integration of this
graph.
I looked at ?integrate but, as far as I understood (that is, not very much,
due to my poor
2004 Jan 18
1
multcomp, simint, simtest and computation duration
Dear R-listers,
I am trying to compute simultaneous confidence intervals with simint from the package multcomp. 230 measures (abundance) have been taken in 23 sites (factor) of a data.frame (donnees: a file can be sent on request, saved with save(donnees,file="donnees")). I would like to get all pairwise comparisons with :
mc<- simint(ren~ID,type="Tukey",data=donnees)
I
2010 Mar 27
0
Error lm.fit(...) - pairs cointegrated trading
Hello guys,
I'm trying to do a pairs trading cointegration analysis on two stocks (AXAP
and AXANY), but I get an error that I don't understand...
Here's my code:
setwd("S:/Users/Alexis/Desktop/Essai") #chemin du dossier contenant les
donn?es
donnees <- read.csv("Data_R.csv", head=T, sep=";", stringsAsFactors=F)
library(xts)
dates <-
2009 Oct 21
2
linear regression: Is there a way to get the results of lm as variables
Hi R users
I used R to get the results of a linear regression
reg<-lm(y~x)
here are the results:
# Call:
# lm(formula = donnees$txi7098 ~ donnees$txs7098)
#
# Residuals:
# Min 1Q Median 3Q Max
#
2007 Apr 27
1
add arrows to barchart with groups
Hello Rhelpers,
I am trying to represent the following data (hereafter named donnees) in a barchart with a grouping variable :
site traitement date s res
1 NT 17/10/2005 normal 76.2
1 T 17/10/2005 normal 103.2
1 NT 23/11/2005 tardif 81.6
1 T 23/11/2005 tardif 98
2 NT 15/10/2005 normal 72.71
2 T 15/10/2005 normal 94.47
2 NT 15/11/2005 tardif 79.65
2 T 15/11/2005 tardif 94.7
2006 Aug 18
0
roaming profile unusable after smb ports = 139
Hello,
I have a big problem with a samba setup.
After I tried the config option
smb ports = 139
in the global section, 90% of the roaming profiles are not
usable by the windows XP clients.
Removing the smb ports options didn't help.
No errors in the samba logfile.
erasing the profiles seems to fix the issue, but I cannot
afford losing all my users profile data!
here is my smb.conf.
2005 Aug 08
1
get the wald chi square in binary logistic regression
hello,
I work since a few time on R and i wanted to know how to obtain the Wald chi
square value when you make a binary logistic regression. In fact, i have the z
value and the signification but is there a script to see what is the value of
Wald chi square. You can see my model below,
Best regards,
S??verine Erhel
[Previously saved workspace restored]
> m3 = glm(reponse2 ~ form +
2006 Aug 24
0
strange kind of sharing violation disappearing with socket options
Hello,
On a samba (3.0.22 from samba.org on FC4) setup running at
one of our customer site, we got a strange kind of bogus sharing
violation using
excel and word (french version).
the messages, translated in english:
Excel:
"saving of the document has succeeded, but Excel was not able to
reopen-it due to
a sharing violation. Close the document and try to reopen-it".
"New
2008 Aug 01
1
Best way to select good points in a noisy signal ?
Hello,
When I plot y=f(x) from the file xy.txt (
http://www.nabble.com/file/p18773387/xy.txt xy.txt ), I can clearly see a
trend.
Is there a function or a package able to take the median value of y for an
interval of x (x +/- a defined value) to plot nice graph (at least a better
one) ?
Thanks in advance,
Have a nice week-end,
Ptit Bleu.
--
View this message in context:
2005 Oct 20
3
problème d'import de fichier
hello!
je veux importer un fichier de donnees excel que j'ai au prealable
converti en fichier txt avec separateurs tab, fichier de la forme entree
simple (suite de colonnes contenant des variables).
Voila ma ligne de commande :
> poussins <- read.table("poussins.txt", header=T, sep="\t")
et sa reponse
Erreur dans scan(file = file, what = what, sep = sep, quote =
2007 Aug 31
2
Problem of vocabulary : retrieve element of a list of a list
Hi,
I read the posts for 2 hours and ?list and tried many comninations but I
haven't found the answer to this basic question. So I decided to post my
question even if it is a silly one ...
What is the instruction to retrieve, for example, the "D" of the first list
?
Thanks in advance,
Ptit Bleu.
> x<-list(LETTERS[1:5], LETTERS[10:20])
> x
[[1]]
[1] "A"
2009 Jan 12
1
Problem between panel.abline and log scales (lattice)
Hello and Happy New Year to all R-Users !!!
I would like to plot a lattice graph with a logarthmic y axis and add two
reference lines that is :
ref<-c(0.0070, 0.0096)
graph1<-xyplot(data$y1 ~ as.numeric(strptime(data$x1, format="%Y-%m-%d
%H:%M:%S")) | as.character(data$Code),
list(y = list(log = T)),
xlab="X'", ylab="Y",
panel = function(...) {
2009 Jun 05
2
find a sequence of characters in a vector
Hello,
I'm just looking for an easy way to find the positions of a complete
sequence in a bigger vector.
For example :
c("a","z","e") in c("a","z","e","r","t","a","z","a","z","e","c")
and the result should be
1 8
that is the positions of the beginning of
2009 Mar 13
1
How to combine xtable and minipage with Sweave ?
Hello,
I'm trying to put a dynamic table and a dynamic graph side by side in a pdf
document using Sweave.
The data.frame used to generate the table is called rg (rg.txt):
"Date"; "Code"; "Data1"; "Data2"
"2009-03-10";"1";1958;147
"2009-03-10";"2";302;144
"2009-03-10";"3";4;141
2008 Nov 07
1
sapply and median, possible or not ?
Hello,
I have a list of data.frame
rowsplit : List of 15
$ (0,0.025] :'data.frame': 169 obs. of 7 variables:
$ (0.025,0.05]:'data.frame': 174 obs. of 7 variables:
$ (0.05,0.075]:'data.frame': 92 obs. of 7 variables:
$ (0.075,0.1] :'data.frame': 76 obs. of 7 variables:
$ (0.1,0.125] :'data.frame': 37 obs. of 7 variables:
$
2007 Nov 20
2
Friendly way to link R - MySQL and non-(R and Mysql) users ?
Thanks to your help, I managed to link R and a Mysql Database, send queries,
plot the results and put everything in a pdf document (with Sweave).
My co-workers find the job not bad but they would like to have a friendly
interface to send queries and see the graphs (the pdf document is not
necessary).
Something like this coul be a good starting point :
---------------------------------------
|
2005 Nov 13
0
Julien Ruiz est absent.
Je serai absent(e) du 12/11/2005 au 16/11/2005.
Je r??pondrai ?? votre message d??s mon retour.
I will be out of the office from 14-MAR-2005 until 18-MAR-2005
I will reply to your message on my return.
Julien Ruiz
----------------
L'acces immediat aux meilleurs tarifs Air France et au billet electronique
sur http://www.airfrance.com
For immediate access to the best Air France fares