similar to: System exit codes

Displaying 20 results from an estimated 60000 matches similar to: "System exit codes"

2007 Oct 01
2
Idioms for empty dataframes
I'm fairly new to R, coming from a programming background -- it's quite nice to work with dataframes, though, as opposed to explicit iteration. One thing I've found, which is surprising is that zero-length dataframes seem to cause errors: > t <- data.frame(bob=c(100)) > order(t$bob) [1] 1 > t1 <- t[t$bob < 50] > order(t1$bob) Error in order(na.last, decreasing,
2007 Oct 25
1
Indexes on dataframe columns?
Hi -- I'm working with some data frames with fairly high nrows (call it 8 columns, by 20,000 rows). Are there any indexes on these columns? When I do a df[df$foo == 42,] [which I think is idiomatic], am I doing a linear search or something better? If the column contents is ordered, I'd like to at least be doing a naive binary search. Thanks! Ranjan
2007 Dec 05
1
newbie lapply question
Hi -- I just noticed the following (R 2.6.1 on OSX) > lapply(c(as.Date('2007-01-01')), I) [[1]] [1] 13514 This is a bit surprising.. Why does lapply unclass the object? Sorry for such a basic question, I don't seem able to produce the right google keywords. Ranjan
2025 May 20
2
how to read a PSB file in R?
On Tue May20'25 05:56:59AM, Rui Barradas wrote: > From: Rui Barradas <ruipbarradas at sapo.pt> > Date: Tue, 20 May 2025 05:56:59 +0100 > To: Ranjan Maitra <mlmaitra at gmx.com>, r-help at r-project.org > Subject: Re: [R] how to read a PSB file in R? > > ?s 03:17 de 20/05/2025, Ranjan Maitra via R-help escreveu: > > I have come across this file (warning,
2018 Jan 18
1
reading lisp file in R
Thanks! I am trying to use it in R. (Actually, I try to give my students experiences with different kinds of files and I was wondering if there were tools available for such kinds of files. I don't know Lisp so I do not actually know what the lines towards the bottom of the file mean.( Many thanks for your response! Best wishes, Ranjan On Wed, 17 Jan 2018 20:59:48 -0800 David Winsemius
2018 Mar 30
0
getting all circular arrangements without accounting for order
New function below is a bit faster due to more efficent memory handling. for-loop FTW! directionless_circular_permutations2 <- function( n ) { n1 <- n - 1L v <- seq.int( n1 ) ix <- combinations( n1, 2L ) jx <- permutations( n-3L, n-3L ) jxrows <- nrow( jx ) jxoffsets <- seq.int( jxrows ) result <- matrix( n, nrow = factorial( n1 )/2L, ncol = n ) k
2018 Mar 30
0
getting all circular arrangements without accounting for order
I don't know if this is more efficient than enumerating with distinct directions and weeding... it seems kind of heavyweight to me: ####### library(gtools) directionless_circular_permutations <- function( n ) { v <- seq.int( n-1 ) ix <- combinations( n-1, 2 ) jx <- permutations( n-3, n-3 ) x <- lapply( seq.int( nrow( ix ) ) , function( i ) {
2018 Mar 30
2
getting all circular arrangements without accounting for order
Jeff, I wanted to let you know that your function is faster than generating the directional circular permutations and weeding. Here is the time for n = 10. I compared with just doing the permutations, there is no point in proceeding further with the weeding since it is slower at the start itself. system.time(directionless_circular_permutations(10)) user system elapsed 1.576 0.000
2014 Mar 03
2
Project: Weighting Schemes
Hello Sir, I am Reetesh Ranjan, a 3rd year undergraduate student at the *INDIAN INSTITUTE OF TECHNOLOGY BHU, Varanasi-*one of the premier engineering colleges of India. I have gone through your webpage thoroughly and I am very interested in the work that you are undertaking on *Project: Weighting Schemes.*. I earnestly wish to work under your guidance, learn and progress through this experience.
2025 May 20
1
how to read a PSB file in R?
?s 03:17 de 20/05/2025, Ranjan Maitra via R-help escreveu: > I have come across this file (warning, massive, 4.3 GB) https://esahubble.org/media/archives/images/original/heic1502a.psb and it appears to be a filetype I was not aware of previously. > > Is it possible to read the file in R using any tool? It is an image and I am looking for the RGB of the file. > > Many thanks and
2012 May 07
1
commenting out a block of R code
Dear friends, Is there an easy way of commenting out a block of R code after it has been written? (I am aware that R-aware editors can insert # line-by-line while it is being written, but I want to basically block out chunks of R code in a few strokes.) This question was asked on this mailing list some time ago: Professor Ripley's answer was to try the following:
2001 Feb 23
4
hclust question
Dear all, I have a question with regard to the use of hclust. I would like to be able to specify my own distance matrix instead of asking R to compute the distance matrix for me. It is computationally easier for me this way. My question is: How can I get hclust to accept this? Thanks, Ranjan -- *************************************************************************** Ranjan
2018 Mar 30
3
getting all circular arrangements without accounting for order
Thanks! Yes, however, this seems a bit wasteful. Just wondering if there are other, more efficient options possible. Best wishes, Ranjan On Thu, 29 Mar 2018 22:20:19 -0400 Boris Steipe <boris.steipe at utoronto.ca> wrote: > If one is equal to the reverse of another, keep only one of the pair. > > B. > > > > > On Mar 29, 2018, at 9:48 PM, Ranjan Maitra
2025 Feb 06
1
pairs plot
Possibly because: panel.hist is not an existing R function -- you have to first create it so pairs() can use it. ?pairs shows you how in the Help examples, i.e. panel.hist <- function(x, ...) { usr <- par("usr") par(usr = c(usr[1:2], 0, 1.5) ) h <- hist(x, plot = FALSE) breaks <- h$breaks; nB <- length(breaks) y <- h$counts; y <- y/max(y)
2020 Aug 26
11
[Bug 3202] New: Ed25519 key on HSM is not getting listed in ssh-add -l command
https://bugzilla.mindrot.org/show_bug.cgi?id=3202 Bug ID: 3202 Summary: Ed25519 key on HSM is not getting listed in ssh-add -l command Product: Portable OpenSSH Version: 8.2p1 Hardware: ARM64 OS: Linux Status: NEW Severity: enhancement Priority: P5 Component: ssh-add
2007 Mar 21
3
question on suppressing error messages with Rmath library
Dear list, I have been using the Rmath library for quite a while: in the current instance, I am calling dnt (non-central t density function) repeatedly for several million. When the argument is small, I get the warning message: full precision was not achieved in 'pnt' which is nothing unexpected. (The density calls pnt, if you look at the function dnt.) However, to have this happen a
2025 May 26
1
how to read a PSB file in R?
On Tue May20'25 12:15:41AM, Ranjan Maitra via R-help wrote: > From: Ranjan Maitra via R-help <r-help at r-project.org> > Date: Tue, 20 May 2025 00:15:41 -0500 > To: r-help at r-project.org > Reply-To: Ranjan Maitra <mlmaitra at gmx.com> > Subject: Re: [R] how to read a PSB file in R? > > On Tue May20'25 05:56:59AM, Rui Barradas wrote: > > From: Rui
2017 Jul 25
1
To Supporting graphpad prism in R, add external library to poratbleR
Hi Jeff, 1). I have tried install.packages( c("dplyr", "tidyr" ) ) into the r-script file got below error:- > install.packages( c("dplyr", "tidyr" ) ) Installing packages into ?/tmp/1776492876238396447/lib/portableR-master/site-library? (as ?lib? is unspecified) Error in install.packages(c("dplyr", "tidyr")) : This version of R is
2018 Jan 18
0
reading lisp file in R
The file also has a bunch of email headers stuck in the middle of it: ..... (QUALITY-OF-LIFE SCALE:1-5 4) (ACADEMIC-EMPHASIS HEALTH-SCIENCE) ) ------- ------- >From LEBOWITZ at cs.columbia.edu Mon Feb 22 20:53:02 1988 Received: from zodiac by meridian (5.52/4.7) Received: from Jessica.Stanford.EDU by ads.com (5.58/1.9) id AA04539; Mon, 22 Feb 88 20:59:59 PST Received: from
2018 Jan 18
0
reading lisp file in R
> On Jan 17, 2018, at 8:22 PM, Ranjan Maitra <maitra at email.com> wrote: > > Dear friends, > > Is there a way to read data files written in lisp into R? > > Here is the file: https://archive.ics.uci.edu/ml/machine-learning-databases/university/university.data > > I would like to read it into R. Any suggestions? It's just a text file. What difficulties