similar to: Output and history

Displaying 20 results from an estimated 2000 matches similar to: "Output and history"

2002 Sep 01
2
Converting the columns of a data frame to numeric
Hello, I have a data frame whose columns are factors with numeric levels and I want to convert the columns to numeric so that I can treat the data frame as a matrix. I found a way of doing this but would like to know if there is an easier way. My way is: M <- matrix(ncol=ncol(df) , nrow=nrow(df) , as.numeric(as.matrix(df))) where 'df' is the data frame. I am wondering if there is
2002 Jul 09
3
Assignment converts variable to factor
Hello, I would like to know if this behaviour in R is as expected. I have a data frame 'dat' with column var1 being character (and not factor). Then I create a new column 'var2' by: > dat[,"var2"] <- dat$var1; Column var2 is now a factor. But if I do: > dat$var2 <- dat$var1; Then column var2 is character (and not factor). I don't want to have
2002 Apr 11
2
time (or output of function) in the R prompt
Dear R-help, Would it be possible to have the "prompt" option accept a function, such as date()? This way, I can easily deduce the elapse time of top level R expressions. This would be similar to how Unix shells handle their prompt variables. Cheers, Andy ------------------------------------------------------------------------------ Notice: This e-mail message, together with any
2017 Dec 21
1
Wish List: base::source() + Add Execution Time Argument
R does provide the addTaskCallback / taskCallbackManager to run a callback function after every top level command. However there is not an equivalent interface that would be run _before_ each command, which would make it possible to time of top level calls and provide other execution measurements. On Thu, Dec 21, 2017 at 11:31 AM, William Dunlap via R-devel <r-devel at r-project.org> wrote:
2002 May 28
2
problems with rcmd check
Hello, I have developed a R package. When I pass it through the rcmd check command (windows 98) to see if it is ok, everything works fine until there is a call to the program "sh.exe". It seems that rcmd calls it with the option --c, but it doesn't seem to be a legal option. After that, when rcmd tries to create a directory inside the "package_name.Rcheck" directory there
2002 Jun 19
4
drawing ellipses
Hello again, First I want to thank all the people who answered my question about line width in graphs. I promise I will learn the 'par' help page by heart for the end of the month ! I now want to trace some ellipses to emphasize groups of data. I found how to trace circles with 'symbols()', but no ellipse. I'm planning on writing my own function based on
2004 Apr 25
5
a simple suggestion for the next version of R windows
Is it possible to replace the word "R Console" on the title bar (is it what it's called? It's the blue area above menu bar) with the name of the work space file you're using or loaded, so people who are runing multple R sessions at same time can identify them immediately. I'm using 1.9.0 in SDI mode. Thanks, ...Tao
2004 Apr 25
5
a simple suggestion for the next version of R windows
Is it possible to replace the word "R Console" on the title bar (is it what it's called? It's the blue area above menu bar) with the name of the work space file you're using or loaded, so people who are runing multple R sessions at same time can identify them immediately. I'm using 1.9.0 in SDI mode. Thanks, ...Tao
2011 Jul 31
3
Display/show the evaluation result of R commands automatically
Hello R-help, I wonder if it is possible to configure R, so that it will display/show the evaluation result of the R commands automatically (similar to the behavior of Matlab) i.e. If I type x <- 8 it will print 8 in the command prompt, instead of having type x explicitly to show the result and perhaps put an ";" at the end to suppress the output. i.e. x <- 8; Thank you
2002 Oct 30
2
two small wishes for R
1. allows underscore as part of a variable name 2. Uses C or Java style comments mark. Jason ===== Jason G. Liao, Ph.D. Division of Biometrics University of Medicine and Dentistry of New Jersey 335 George Street, Suite 2200 New Brunswick, NJ 08903-2688 phone (732) 235-8611, fax (732) 235-9777 http://www.geocities.com/jg_liao __________________________________________________ HotJobs - Search
2017 Dec 21
4
Wish List: base::source() + Add Execution Time Argument
Dear R Developers, Adding to source() base function a Timer which indicates the execution time of the source code would be a very well welcome feature, and in my opinion not difficult to implement as an additional funtion argument. The source(timing = TRUE) function shall execute internally the following code for each statement: old <- Sys.time() # get start time at the beginning of source()
2002 Apr 19
1
trouble with tcltk (was RE: trouble compiling R on Irix )
Thanks to Peter Dalgaard and Suchandra Thapa for answering my question! Before I settle on a particular option, I'd like to ask one more question if I may: Are there any practical advantages to compiling R to 64-bit vs 32-bit? Regards, Andy > -----Original Message----- > From: Peter Dalgaard BSA [mailto:p.dalgaard at biostat.ku.dk] > Sent: Thursday, April 18, 2002 4:19 PM > To:
2004 Dec 07
0
Installation of R-2.0.1 failure
I'm trying to install R on RedHat Enterprise 3. I installed /usr/local/bin/f2c and then in the same dir libf2c.a. I ran configure ok, though there were 7 warnings. Then I ran make and it errored out. Can anyone tell what's wrong? missing link(s): installed.packages INSTALL INSTALL install.packages data install.packages installed.packages INSTALL REMOVE library.dynam
2006 May 09
4
Can't there be a cd command?
R is quite a powerful environment. Here's a small way it could be even better. I wanted to change the working directory, so I tried the obvious thing > cd("foo") Error: couldn't find function "cd" Then I looked for `directory' in the FAQ but found nothing. A search for directory in the introduction also turned up nothing. A Google search for "gnu R
2002 Nov 07
1
language inconsistency puzzle (in the tradition of Bill V enables (Hi Bill) puzzle "what is x")
R allows you to dynamically extend a vector by assigning past the end. So if a has length 10, then assigning to a[11] creates also a[11] with value a2[11] NA. So a is now length 11, while a2 is still length 10. So the occurrence of a[11] has a different meaning on the assigned-to side than on the assigned-from side. E.g. >a <- rep(1,10) >b <- 11 >a2 <- a >a[b] <- a2[b]
2002 Jul 06
5
about image and rgb
Hi all, I have a 16 bit image (TIFF) and i want to analyse the pixels distribution. So, i obtain a matrix which values are between 0 and 2^16 -1. Now i would like to represnt this image with the fucntions rgb() and image(). I am not sure , but i think that only 256 colors are available. So is there a solution to represent all the palette of the colors or i have to limit the representations with
2002 Jul 09
4
changing angle in scatterplot3d
Hi all, I was wondering whether it is possible to change the angle of all axis in a scatterplot3d graph. I know that there is one parameter <angle> but I was wondering whether it is possible to control the angle of all different axis individually (eg by using <anglex><angley><anglez>). In addition I was wondering whether there is a way to change the angle of a plot
2003 Dec 12
0
proofreading corrections (cvs) (PR#5730)
Here is a patch of changes from the proof-reading of the R reference manual, made against the current cvs. regards -- Brian Gough Network Theory Ltd -- Publishing Free Software Manuals 15 Royal Park Bristol BS8 3AL United Kingdom Tel: +44 (0)117 3179309 Fax: +44 (0)117 9048108 Web: http://www.network-theory.co.uk/ Index: src/library/base/man/Arithmetic.Rd
2002 May 21
6
Point labels
Hello, Is there an option I can easily set to put labels next to the points in a simple plot? The closest I got to it was to use the option pch, but this replaces the point symbol with the character specified, and it is not what I want. Thanks -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read
2001 Sep 17
1
R console history v/s unix history
Hi i'm new to R and find that the "history" functionality works a little different than in unix. A very convenient feature of history in unix is the ability to recall a comand by typing in !x where x is a letter and the latest matching command in the history that starts with the letter is (re)called. This is useful for instance, when calling a "source" command by !s rather