similar to: Prompt / Console problem

Displaying 20 results from an estimated 2000 matches similar to: "Prompt / Console problem"

2006 Jan 24
9
Number of replications of a term
Hello, Is there a simple and fast function that returns a vector of the number of replications for each object of a vector ? For example : I have a vector of IDs : ids <- c( "ID1", "ID2", "ID2", "ID3", "ID3","ID3", "ID5") I want the function returns the following vector where each term is the number of replicates for the
2006 Feb 15
2
Setting intial path under windows to MyComputer in Interactive file browser
Hello everyone, How can I specify in tcltk file browser the initial directory to "MyComputer" in Windows where Drives and Partition are accessible? And just a little question if anyone knows, is there a way to use the function choose.files under windows to select a directory? Thanks a lot for your help. Laetitia.
2008 Jul 29
1
Bug in sd() and var() in handling vectors of NA (R version 2.7.1)?
In the previous versions of R (2.6.1), when a vector of NA was given to the functions 'sd' or 'var' with parameter na.rm = TRUE, it used to return NA. Now (2.7.1) it returns an ERROR : Example in 2.6.1: > sd(c(NA, NA, NA, NA), na.rm = TRUE) [1] NA Example in 2.7.1: > sd(c(NA, NA, NA, NA), na.rm = TRUE) Error in var(x, na.rm = na.rm) : paires d'éléments
2003 Aug 29
3
R and pointer
Hi everyone, I want to write a function that modify directly variables passed as parameters (the equivalent in C language of *ptr/&ptr) so that I don't have to return a list and to reaffect all my variables. Is it possible to do so in R? Thanks a lot. Laetitia Marisa.
2004 Jul 27
1
Display on Windows console from script
Hello, When I launch a script under windows it does not display sequentially my cat calls or maybe the console is not refreshed at every line of my script. For instance with that code cat("\n\n================== IMPORT DATA FROM FILE ===================\n\n") fileschosen <- choose.files(caption="Select gpr files", filters = matrix(c("genepix
2004 Jul 28
2
problem with the .Rhistory
Hello, The history function doesn't seems to work when I am working with R. I have a .Rhistory file in my working directory and I have tried savehistory(file = ".Rhistory") or the command given in the history help : .Last <- function() if(interactive()) try(savehistory(".Rhistory")) and I get the same error message Error in
2010 Jan 11
1
apply a function down each column
Hello World, I have a function that makes pairwise comparisons between two strings. I would like to apply this function to my data (which consists of columns with different strings) in the way that it compares the first with the second entry, and then the third with the fourth, and then the fifth with the sixth, and so on down each column... So (2x-1) and (2x) would be the different entries to be
2010 Jan 09
3
string functions
Hi! Does anybody know a string function that would calculate how many characters two strings share? I.e. ("Hello World","Hello Peter") would be 7. Thanks. Laetitia
2005 Jun 04
2
glm with a distribution free family
Dear R users, I am trying to fit a glm with a distribution free family, link = log and variance = constant*mu. I guess I have to use the quasi family but the choices of variance are restricted to constant or mu or mu^2..., I don't know the way to choose the variance that I need, i.e. constant*mu. If you have any ideas or advice, please tell me. Thanks, Laetitia Mestdagh Laetitia Mestdagh
2013 Feb 07
1
Saving history across sessions
I have an environment variable `$R_HISTFILE` pointing to `/home/my.username/.RHistory` and the following code in my `.Rprofile` in my home directory: .Last <- function() { if (!any(commandArgs()=='--no-readline') && interactive()){ require(utils) try(savehistory(Sys.getenv("R_HISTFILE"))) } }
2003 Apr 28
2
Algorithm did not converge
Help! Being a bit of a novice, please bear with me if this is a stupid question! I am trying to fit a saturated model to some count data that I have: model<-glm(COUNT~SP*LOC*COL*TIME*TREAT,poisson) but R keeps on crashing and coming up with (occasionally before crashing) an error that states: Algorithm did not converge in: (if(is.empty.model(mt)) glm.fit.null else glm.fit)(x = X, y = Y,
2010 Apr 25
3
numerical or not?
Hi, I've had a little problem for several weeks now. It is annoying and therefore I will ask for help now: When I write a script with several iterations, I make it write out a text file to save the data during the run. For example I write: if (i %% 25) write.table(output,"temporary_output.txt") Later on, when I read in this output and want to calculate things, R complains that
2009 Dec 09
3
.Rhistory in R.app
Dear R users, I am having a minor but annoying issue with R.app. It doesn't retain the history information from the previous sessions. By "history," I mean a record of commands/functions entered into R rather than the list of objects--that is properly recorded in the .Rdata file as well as in a workspace file I save separately. System details: R version 2.9.0 R.app GUI 1.28 Mac OS
2002 Sep 19
3
savehistory directories and quitting R (PR#2038)
# # r-bugs@r-project.org # ###################################################### Because I work in different directories, but always want to save my .Rhistory in the same place, I have changed the system function savehistory to this: function (file = "D:/R50/.Rhistory") invisible(.Internal(savehistory(file))) When I use q() to quit R, and it asks me whether I want to
2010 Aug 20
3
if-else function
Hi R people! I am looking for some suggestions writing an if-else function. The idea is to characterize different plots containing counts of variables (here parasites). If a plot has a count equal or higher than 4 for any parasite the function should return a 1 else a 0. Later I can loop the function over all plots. Here I have a little subset of my data: VariablePAR Plot1
2000 Jun 29
3
Overal plot title after mfrow and .Rhistory questions.
Hello everyone, I had a few questions that I have not been able to figure out despite a lot of reading. 1) Adding a title to a multiplot figure: If I plot multiple plots with >par(mfrow=c(2,6)) how do I add an overall title to the figure, not the individual plots? 2) Saving histories on the fly: Is there a .Rhistory equivalent to >save.image() ? I would like to be able to save the
2006 Mar 16
1
autoloading .RData files / .Rhistory file
NOTE: WinXP, R2.2.0 All, a while back I posted a question about using relative filereferencing. The responses have allowed me to successfully set up the following directory structure: ...\data\raw ...\data\derived ...\prog ...\lst ...\log In the \prog directory I have put an RGui.exe shortcut and "pointed it" at \prog as the "Start In" location. In the same
2002 Sep 04
1
readline doesn't work even thou cled=TRUE
Can anyone offer suggestion about getting readline to work on Solaris? (v1.5.1) When I use the up arrow or ctrl-p to try to repeat the last command my session just beeps. It appears that the .Rhistory file that should appear in my startup directory is not being created. Thanks! The screen shot below shows cled=TRUE and no .Rhistory file created: $ /apps/R-1.5.1/bin/R R : Copyright 2002, The
2003 Jun 12
3
defaults in R: packages, .Rhistory
With the current version (rw1070), every time I start R it loads a whole bunch of packages, many of which I do not need in a typical session: > search() [1] ".GlobalEnv" "package:methods" "package:ctest" "package:mva" [5] "package:modreg" "package:nls" "package:ts" "Autoloads" [9]
2010 Aug 28
2
extracting columns
Hi, Can anybody show me how to extract all columns in my dataset that are polymorphic? Or phrased in another way I would like to delete all columns that have no more than one letter in it (that are monomorphic). Thank you. Laetitia -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: seqCol.txt URL: