Re: [R] Reading CSV file

2013-04-19 Thread Bretschneider SIG-R
Dear Gafar Matanmi Oyeyemi, Re: > I am trying to read a csv file using the code; > contol <- read.csv("RBS.csv") > This is the error message I got; > Error in file(file, "r") : unable to open connection > In addition: Warning message: > In file(file, "r") : > cannot open file 'RBS.csv', reason '

Re: [R] A categorized list of R functions

2013-04-08 Thread Bretschneider SIG-R
Dear Rees Morrison, Re: (...) > > What additional code would create a table output, with the function name in > the left column, sorted alphabetically within a pattern, and the pattern of > the function in the column to the right. Users could then sort by those > patterns, rename some to su

Re: [R] categorized complete list of R commands?

2013-04-06 Thread Bretschneider SIG-R
Dear Rees Morrison, Re: > Franklin, I am very impressed. I ran your code and am amazed at the output. > I want to use it in my efforts to figure out which are the most widely used > functions, so that I can concentrate on understanding those basics reasonably > well. > > May I ask you tw

Re: [R] categorized complete list of R commands?

2013-04-05 Thread Bretschneider SIG-R
On 04 Apr 2013, at 07:34 , ivo welch wrote: > every time I read the R release notes for the next release, I see many > functions that I had forgotten about and many functions that I never knew > existed to begin with. (who knew there were bibtex facilities in R? > obviously, everyone except me.)

Re: [R] custom startup/welcome message

2013-04-04 Thread Bretschneider SIG-R
Dear lejeczek, Re: > hi everybody > > I wonder if there is a simple way, but not simple would be > ok too, > to customize info/welcome page at session start time? > > what I'd like to do is to put together simple short howto / > dos & don'ts page for users, > I'm thinking it would be great if

Re: [R] Plotting with basic plot

2013-03-16 Thread Bretschneider SIG-R
Dear Neuwirth Erich, Re: On 16 Mar 2013, at 19:18 , Neuwirth Erich wrote: > When I run this code fragment > > x <- (0:100)/100 > y <- x^2 > plot(x,y,type="l",xlab=expression(x),ylab=expression(f(x)==x^2), > main="Quadratfunktion") > > the exponent on the y-axis label is mutilated. > How can

Re: [R] Add text A, B, C and D on multiple ordered plot

2013-02-08 Thread Bretschneider SIG-R
Dear Fabrice Tourre, Re: > John Kane, > > Thanks. It makes some of sense. But it seems not exactly what I want. > I just remember it need using mtext and adjust margin. I saw such of > example long time ago, but I have forgotten it. (etc...) Maybe this is what you're after? Fiddled a bi

Re: [R] low pass filter analysis in R

2013-02-08 Thread Bretschneider SIG-R
Dear Janesh, Re: > Dear Franklin Bretschneider, > > Thank you so much for your reply and explanation about the filter using the > stats and signal package. > > I decided to opt the filter method in signal package. I have a simple > question about the cut off frequency here. > > I have 30

Re: [R] low pass filter analysis in R

2013-02-07 Thread Bretschneider SIG-R
Dear Janesh Devkota, Sorry, I forgot an edit. The last command should read: yfiltered = signal:::filter(myfilter, y) # apply filter Best wishes, Franklin Bretschneider -- Dept Biologie Kruytgebouw W711 Padualaan 8 3584 CH Utrecht The Netherlands _

Re: [R] low pass filter analysis in R

2013-02-07 Thread Bretschneider SIG-R
Dear Janesh Devkota, Re: > > Hello R users, > > I am trying to use R to do the low pass filter analysis for the tidal data. > I am a novice in R and so far been doing only simple stuffs on R. I found a > package called signal but couldn't find the proper tutorial for the low > pass filter. >

Re: [R] Starting with R

2012-12-30 Thread Bretschneider SIG-R
On 30 Dec 2012, at 12:22 , Siddhant Gupta wrote: > I have installed R on my machine. > > Can anyone now suggest to me the best book/e-book from where I can learn > the R language most efficiently? > > Thanks in advance > > -- > Siddhant Gupta > III Year > Department of Biotechnology > IIT Roo

[R] what is the function naming convention?

2012-11-04 Thread Bretschneider SIG-R
Dear R people, In typing names of functions (built in or from a package) I often guess wrong, and have to look the name up. In other words, I don't understand the logic in naming functions (if there is any): - most names are plain, lower case: cos, plot, sapply, t, toupper, unserializ

Re: [R] Reading multiple files

2012-09-26 Thread Bretschneider SIG-R
On 26 Sep 2012, at 16:11 , Silvano Cesar da Costa wrote: > Hi, > > I have 35 data files for reading. I would like get a program for > performing reading of 35 files at once. > All are of the type: Dados1.raw, Dados2.raw and so on. > > If the files have the same number of columns, I can read wit

Re: [R] how to get list of files within a particular local file folder

2012-07-04 Thread Bretschneider SIG-R
Dear Ajay Ohri, Re: > Dear List, > > Say I can use getwd() and setwd() to change my working directory. How can I > read in all the files within that directory using command line (like a ls() > but for the path specified) > I use this function, # functions getFolder <- function(pat) {

Re: [R] how to plot a nice legend

2012-02-12 Thread Bretschneider SIG-R
Dear Jonas Stein, You may add a line defining a large margin to harbour the legend, such as: par(mai=c(0.5, 0.5, 0.5, 1.8)) # enlarged right margin plot(1:10) legend("right", legend=c("one", "two"), inset=-0.2, xpd=NA) Kind regards, Franklin Bretschneider -- Dept

Re: [R] How to loop on file names

2012-01-17 Thread Bretschneider SIG-R
Dear Hélène Genet, Re: > Dear all, > > I need to do the same procedure on several files. But I don't know how to > refer to the file name. > Here is an example of what I am trying to do. > > List of files: file1(A,B,C, D1...Dn), file2(A,B,C,E1,...,En), > file3(A,B,C,F1,...,Fn) > > Procedure