[R] Plot with two seperate y axis

2006-11-24 Thread Thorsten Muehge

Hello,
I would like to plot the following matrix:
Wk=x achsis.
Para 1 = left y-axis as a barplot
para 2 right y-axis as a normal scatter plat.

I could not find such a solution in any of my documentation.

Can someone help me?

Thanks a lot
Thorsten

WkPara 1  Para 2
312000  99.8
322005  99.0
332002  98.0
341090  98.5
352001  99.1
362010  97.0
372010  98.8

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] Reformat a data frame

2006-11-07 Thread Thorsten Muehge

Hello Experts,
how do I reformat a data frame in the way described below:


df1:
IDdesc  resist  thick temp
1 4711  100   5 20
2 4712  101   4 21
3 4711  993 19
4 4712  987 22

TO

df2:
iddesc  Param Value
1 4711  resist  100
1 4711  Thick 5
1 4711  temp  20
2 4712  resist  101
2 4712  Thick 4
2 4712  temp  21
3 4711  resist  99
3 4711  thick 4
3 4711  temp  19
4 4712  resist  98
4 4712  thick 7
4 4712  temp  22

Thanks a lot for your help.
With best regards
Thorsten

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] OBS in Column 1

2006-11-07 Thread Thorsten Muehge

Hello R Freaks,

is there a way to omit the counts in the first column of a data.frame.

Thanks a lot for your help
Thorsten

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] Variables in RODBC environment

2006-10-05 Thread Thorsten Muehge

Hello Experts,
how can I use variables in the RODBC environment.

Example which does not work:

Thanks for your help.

Thorsten

pn -  '39R5238';

library(RODBC);
odbcobj - odbcConnect(SQUIT21C,uid=muehge,pwd=xxx);
sql - select
u.unitid,
from test
where part in ('pn')
;
parameter - sqlQuery(odbcobj,sql);
odbcClose(odbcobj);

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] Help on Dates in R again

2006-09-21 Thread Thorsten Muehge

Hello R Experts,
I want to aggregate parameters by week. But our production week ends Friday
night instead of Sunday Night which is the default value in R.

In order to solve the problem I want to substract two days from the current
data and than use the R function

test$week-format(test$dates,%U);

with a testdates format equal to 2006-09-21.

How do I substract the two days from the test$dates column in the
data.frame?

Thanks a lot for your help
Thorsten

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] Variable im Data Frame Namen

2006-09-20 Thread Thorsten Muehge

Hello R Experts,
how can I incorporate a variable in a data frame definition?

Example:
week - 28
test(week) - data.frame(a,b,s,c);
test28

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] R-question

2006-09-13 Thread Thorsten Muehge


Hello Colleagues,
I programmed in SAS for 3 years and would like to switch to a not so costly
software product.

Hence I started to evaluate R, and my first test look promising.

However I have some question:

1. Is it possible to query R files by SQL internally on data frames (not on
a database) and how is the syntax (I have the RODBC package installed).

I would like to extract year, Quarter, week, from a date column in a data
frame (see attachment). After this I want to attach the column to the
original data frame.

How do I do this in R?

Dr .Th.Mühge,

PMP®
Procurement Technology Center
IBM Deutschland GmbH, Hechtsheimer Str.2, D-55131 Mainz
Phone: xx49-(0)6131-84-2416
Mobile: xx49-(0)15117457978
e-mail: [EMAIL PROTECTED]
(See attached file: Debug1.csv)__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.