similar to: Base R: applying min/max functions() to character string vectors (PR#9428)

Displaying 20 results from an estimated 6000 matches similar to: "Base R: applying min/max functions() to character string vectors (PR#9428)"

2007 Jan 03
3
pb in regular expression with the character "-" (PR#9437)
Full_Name: FAN Version: 2.4.0 OS: Windows Submission from: (NULL) (159.50.101.9) These are expected: > grep("[\-|c]", c("a-a","b")) [1] 1 > gsub("[\-|c]", "&", c("a-a","b")) [1] "a&a" "b" but these are strange: > grep("[d|\-|c]", c("a-a","b")) integer(0)
2006 Nov 27
2
as.Date: conversion pb from POSIXct (PR#9386)
Full_Name: Xiao Gang FAN Version: 2.4.0 OS: Windows Submission from: (NULL) (159.50.101.9) > library(chron) > as.Date(as.POSIXct(strptime("1994-01-24","%Y-%m-%d"))) [1] "1994-01-23"
2006 May 02
1
Call trellis function in a function (PR#8827)
Full_Name: Fan Version: 2.2.1 OS: Windows Submission from: (NULL) (159.50.101.9) Hello, When I call trellis function (such as histogram, densityplot, etc.) in a function, the call seems being ignored (no graphics is drawing) if some other instructions are placed afeter that call. Here's an example: y = rnorm(100*3) b = sample(1:3,300,replace=T) f = function() { densityplot(~y|b) }
2004 Oct 10
2
strange behaviour in R 2.0.0 (PR#7275)
Full_Name: Xiao Gang FAN Version: R 2.0.0 OS: Windows Submission from: (NULL) (82.226.247.142) The following codes worked for R 1.9.1 > a = data.frame(x=1:2) > a$y = strptime(c("20010101","20020101"),"%Y%m%d") this no longer works for R 2.0.0: Error in "$<-.data.frame"(`*tmp*`, "y", value = list(sec = c(0, 0), min = c(0, :
2004 Oct 10
1
R 2.0.0 - lazy loading mandadory ? (PR#7274)
Full_Name: Xiao Gang FAN Version: R 2.0.0 OS: Windows Submission from: (NULL) (82.226.247.142) When a package preload another necessary package, say Hmisc, seems that this last one must be precompiled, this is rather boring - we must rebuild all dependant packages ? Here's an error when compiling such a package: ---------- Making package toto ------------
2002 Apr 29
1
Release of Design library; update of Hmisc library
The Design library has been fully ported to R except for Cox proportional hazards regression modeling (using Therneau's survival package) which will be available in about two weeks. It will take much longer to make all the example code executable, is it currently contains many examples for which data are not provided. Thanks to Xiao Gang Fan <xiao.gang.fan1 at libertysurf.fr> who
2002 Apr 29
1
Release of Design library; update of Hmisc library
The Design library has been fully ported to R except for Cox proportional hazards regression modeling (using Therneau's survival package) which will be available in about two weeks. It will take much longer to make all the example code executable, is it currently contains many examples for which data are not provided. Thanks to Xiao Gang Fan <xiao.gang.fan1 at libertysurf.fr> who
2003 Feb 10
1
Type of multi-valued variable
Hi, I've read in the past a thead in the R discussion list about the multi-valued type variable (what was called checklist). At the moment Gregory had intention to add some general code in his gregmisc package. I'm wondering if there's some general code / packages available ? A general class for taking account this type of variable would be very useful in the domain of survey
2003 Aug 11
1
New package: irregular time-series (its)
I have uploaded to CRAN a new package named 'its' (Irregular Time-Series). It implements irregular time-series as an S4 class, extending the matrix class, and records the time-stamp of each row in the matrix using POSIX. Print, plot, extraction, append, and related functionality are available. Feedback and suggestions are welcome. Giles Heywood
2003 Aug 11
1
New package: irregular time-series (its)
I have uploaded to CRAN a new package named 'its' (Irregular Time-Series). It implements irregular time-series as an S4 class, extending the matrix class, and records the time-stamp of each row in the matrix using POSIX. Print, plot, extraction, append, and related functionality are available. Feedback and suggestions are welcome. Giles Heywood
2004 Apr 21
1
Error with 1.9.0 - winMenuAdd not usable in .Rprofile
I had this problem too. The documentation for the winMenus says that these functions are part of the utils package. R must be loading this library after it sources in Rprofile. If you add library(utils) to the beginning of your .First function, it should take care of the problem. Brian Gregor, P.E. Transportation Planning Analysis Unit Oregon Department of Transportation Brian.J.GREGOR at
2004 Oct 10
3
R 2.0.0 not suffisantly reliable to be be used
After wasting one whole day, I've finally decided to stay with 1.9.1, some problems have been reported to R-Bugs. For occasional users, I would say, there's no worst thing than that: you installed the new release, and soem of your existing codes no longer work ! -- Fan
2002 Jan 15
3
R for large data sets
Hi All, As a part of our regular data analysis, I have to read in large data sets with six columns and about a million rows. In Splus, this usually take a couple of minutes. I just tried R, it seems take forever to use read.table() to read in the data frame! It did not help much even though I specified colClasses and nrows in read.table(). How is R's ability to analyze large data sets? I
2002 Nov 17
2
Package tseries: crash for Windows version (PR#2302)
Platform: Windows 98 R version: Version 1.6.1 (2002-11-01) Package 'tseries' version: 0.9-4 Built: R 1.6.0; Win32; Mon Oct 7 14:02:38 2002) (dependanted packages 'quadprog': Built: R 1.5.1; Win32; 2002-07-03 12:20:50) I've just upgraded to R 1.6.1. By typing library(tseries) example(garch) => I've got a crash with the following message: "RGUI a causé une
2002 Nov 17
2
Package tseries: crash for Windows version (PR#2302)
Platform: Windows 98 R version: Version 1.6.1 (2002-11-01) Package 'tseries' version: 0.9-4 Built: R 1.6.0; Win32; Mon Oct 7 14:02:38 2002) (dependanted packages 'quadprog': Built: R 1.5.1; Win32; 2002-07-03 12:20:50) I've just upgraded to R 1.6.1. By typing library(tseries) example(garch) => I've got a crash with the following message: "RGUI a causé une
2008 Apr 27
1
parallel max, min, and median of dataframe columns
Hello, all, I have a dataframe of three rows and umpteen columns. I want to show the maximum, minimum, and median with a vertical line and a central dot (I'd use a boxplot, but with only three data points, that's overkill; I can't just use points, because of overlap and some of the other data plotted on the graph). This works: > boxplot(data_frame,
2007 Jun 28
3
applying max elementwise to two vectors
All, Is there one liner way to obtain the max per observation for two vectors? I looked at apply and lapply but it seems that groundwork would have to be done before applying either of those. The code below does it but seems like overkill. Thanks! Dave x = rnorm(10) y = rnorm(10) ind = which(x < y) z = x z[ind] <- y[ind] ## z now contains the max's
2008 Nov 06
2
comparing matrices using max or min
Dear all, I have 3 matrices with the same dimension, A,B,C and I would like to produce a matrix D where in each position would retrieve the max(or min) value along A,B,C taken from the same position. I guess that apply functions should fit, but for matrices objects I am not getting it. thanks in advance, Diogo André Alagador [[alternative HTML version deleted]]
2004 Oct 10
1
R 2.0.0 (PR#7272)
Full_Name: Xiao Gang FAN Version: 2.0.0 OS: Windows Submission from: (NULL) (82.226.247.142) After installing the new version 2.0.0 (downloaded binary), I've got 2 unexpected behavious vs 1.9.1: 1. When installing some packages from source, the making process stoped with the following message: ---------- Making package toto ------------ adding build stamp to DESCRIPTION making DLL
2009 Jul 24
2
How to find the min and max of two variables in a data frame
I have two variables in a data frame, I want to generate two additional variables. For every observations (i.e. every row), I want the first new variable 'min' to carry the minimum of the two existing variables, and I want the second new variable 'max' to carry the maximum of the two existing variables. I then want to sort the data frame by min and max, and delete duplicated rows