search for: ihe

Displaying 12 results from an estimated 12 matches for "ihe".

Did you mean: ide
2004 Jan 08
1
(no subject)
...t imports several datasets. The file names of the datasets contain the '_' character which forces me to construct a valid dataset name for each file. Although I can do this by hand, I would like to know if there is any solution to my first approach. Thanks in advance, Sixten Sixten Borg IHE Box 2127 S-220 02 Lund Sweden tel: +46 46 32 91 07 fax:+46 46 12 16 04 www.ihe.se ******************************************************************* Note: The information contained in this message and attachments may be privileged and confidential and protected from disclosure. If the reader of...
2006 Mar 24
1
R crashes when loading library/package; Windows, Cygwin
...ormats: text html latex example sygehus text html latex example missing link(s): ~~fun~~ /bin/sh: latex: command not found adding MD5 sums packaged installation of package 'cultosaurus' as cultosaurus_0.1.zip * DONE (cultosaurus) $ Sixten Borg IHE Box 2127 S-220 02 Lund Sweden tel: +46 46 32 91 07 fax:+46 46 12 16 04 "Kommer man inte upp f?re klockan fyra p? morgonen, s? vaknar man inte p? hela dan." www.ihe.se ******************************************************************* Note: The information contained in this message an...
2004 Jan 08
0
(no subject)
...contain the '_' character which forces me to construct a > valid dataset name for each file. Although I can do this by > hand, I would like to know if there is any solution to my > first approach. > > Thanks in advance, > Sixten > > > Sixten Borg > > IHE > Box 2127 > S-220 02 Lund > Sweden > > tel: +46 46 32 91 07 > fax:+46 46 12 16 04 > www.ihe.se ------------------------------------------------------------------------------ Notice: This e-mail message, together with any attachments,...{{dropped}}
2004 Jun 24
3
R 1.9.0, special characters in variable names.
Hello all, I upgraded from R 1.8.1 to 1.9.0 (Windows XP), and spotted an odd thing. The last three letters in the Swedish alphabet are ??, ?? and ??. (In case they don't show correctly: they are a with a ring, a with two dots, and o with two dots (HTML: å ä ö). When I use these as variable names in a data.frame, odd things happen: In R 1.8.1, ?? (å)
2009 May 04
1
help_if command_new column
Hi everyone, Do you know how to apply a If command to a vector in a data.frame, creating a new column? Example: If one species has "1" value in the Abundance column then it is "Solitary". If the abundance is higher than 1, is "School". I did: aggregationFunction <-function(x){ (if (x>1) a<- 'School' else a<-
2004 Sep 01
1
Advice on good programming practice, lexical scope
In "An Introduction to R" (See R help menu), there is an example of a function 'open.account' that makes use of the lexical scope in R. I have a set of functions that can be used to output R tables and graphics into a single report document. (I am aware that several tools can do this already). While reorganizing my code, I realize that I can collect my functions in a list, in
2009 May 05
1
self organizing map advice for categorical data
...f command_new column To: barbara horta e costa <barbarahcosta at gmail.com> Cc: r-help at r-project.org Message-ID: <A93E6C26-52CB-42B2-B4E2-D97FEE5B5D49 at comcast.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed; delsp=yes You should be looking at the ifelse function. Ihe if and else constructs are not appropriate for recoding because they do not return vectors. Much easier than all that folderol would be: df$Aggregation <- ifelse( df$Number>1, "School", "Solitary") On May 4, 2009, at 12:31 PM, barbara horta e costa wrote: > Hi...
2004 Feb 18
0
Ang: How to write efficient R code
Hej Lennart, I would like to add one thing: Often, there already exists an R function that solves the problem at hand. Instead of writing your own function, search the help files [apropos(), help.search()]. What I some times find difficult though, is guessing what key words will produce relevant search hits... Mvh Sixten >>> <Lennart.Borgman at astrazeneca.com> 2004-02-17
2004 Apr 06
0
Extracting the survival function estimate from a survreg object.
Hello all, I want to extract the survival function estimate from a model fitted by survreg(). Using predict.survreg(..., type="quantile", p=seq(0,1,0.001)), gives the quantiles, which I managed to turn around into a survival function estimate (Prob{T > t} as function of t). Is there a more straightforward way of doing this? I have had difficulties using pweibull() with the
2004 Jun 24
1
Summary R 1.9.0, special characters in variable names.
Summary: The locale setting in the operating system seems to be involved in what confused me a little bit. Thank you all for your help, especially the suggested work-around data.frame(..., check.names=F) which works very well. A mystery still to be solved is why two versions of R, running on the same machine on the same time, behaves differently. Please do not respond to this on the list. I
2005 Mar 21
1
Sv: Using locator() to digitise
Hi, Splus allows pasting a graphics object into the plotting window, which makes it possible to do what you describe below. Now I use R which doesn't seem to allow pasting the picture into the graphics window, so I copy the graph onto a transparency sheet, and stick it onto my screen using tape. The coordinates need to be converted to make sense (as you describe). My methodology with the
2004 Jul 28
2
Simulation from a model fitted by survreg.
Dear list, I would like to simulate individual survival times from a model that has been fitted using the survreg procedure (library survival). Output shown below. My plan is to extract the shape and scale arguments for use with rweibull() since my error terms are assumed to be Weibull, but it does not make any sense. The mean survival time is easy to predict, but I would like to simulate