similar to: factors and characters when attaching data...

Displaying 20 results from an estimated 900 matches similar to: "factors and characters when attaching data..."

2001 Oct 18
1
Fw: eval and as.symbol question
----- Original Message ----- From: "Kaspar Pflugshaupt" <pflugshaupt at geobot.umnw.ethz.ch> To: "Gary Collins" <gco at eortc.be> Cc: "r-help" <r-help at stat.math.ethz.ch> Sent: Thursday, October 18, 2001 2:19 PM Subject: Re: [R] eval and as.symbol question > On 18.10.2001 13:46 Uhr, Gary Collins wrote: > > > But when I merge these
2001 May 04
0
R and Xemacs
Can anyone help with the following...? I've just downloaded and installed Xemacs (version 21.1.9) for windows and I would like to try and use it for R, so I've also downloaded ESS 5.1.18. I've read the instructions on installation etc... with regards to ESS and followed the steps for using Xemacs on windows 95. i.e. I've included the path to the Rgui executable in my autoexec.bat
2002 Jan 22
4
splitting a data.frame
I have the following (simple!?) problem which I am unable to find a relatively trivial solution to. If I have a dataframe, A 1 A 7 B 4 B 5 C 3 D 3 D 2 E 5 F 5 F 6 I would like to create a new data.frame in the form ID pt1 pt2 A 1 7 B 4 5 C 3 NA D 3 2 E 5 NA F 5 6 so that for each identifier, in this
2001 Oct 31
2
removing duplicated rows from a data.frame
Dear all, Sorry for the simplicity of the question, but how does one go about removing duplicated rows in a data.frame? I'm looking for a quick and simple solution, as my data.frames are relatively large (50000 by 50). I've racked my brain and searched the help files and found nothing useful or quick, only duplicated() and unique() which work only work on lists. Thanks Gary.
2001 Oct 15
0
date and chron library help...!
Dear all, I'm not sure whether this is a bug or not... But some help would be greatly appreciated. I have a dataframe, which I read in using read.xport (from the foriegn library) as the orginal data is in SAS format. 3 columns of this dataset are supposed to be dates, but read.xport doesn't recognise them as dates (all columns are read in as mode numeric). So I load up the date library
2006 Aug 02
1
ordering columns (longitudinal data in wide format)
Hi, I am working on some longitudinal data in wide format and I am having a problem ordering the data columns. To expand, a subset of what I am working on is as follows; >s L.qol.0 L.qol.0.08 L.qol.0.17 L.qol.0.25 L.qol.0.5 L.qol.0.42 L.qol.0.34 1 83 86 89 92 91 87 90 >names(s) [1] "L.qol.0" "L.qol.0.08"
2002 Jan 08
6
Subsets without NA
Is there a way of removing all rows with missing values from a data frame? I usually use subset(x, var1!="NA") and repeat for each variable. It would be nice to be able to do it in one fell swoop. Also, surprisingly, it doesn't always work. Sometimes I'm left with an empty set even though not all rows have missing values for the variable. Cheers, mikkel Mikkel Grum,
2003 Feb 27
0
spatial evolution and variance after rotation of Principal components
Dear R users, I have been doing rotation on Principal components analyse, with varimax function and promax. Following those changes, I cannot find now how to get the spatial evolution and the variance. Indeed, with the function princomp that has been used to get the principal components, arguments such as $scores and $sdev were available to get the spatial evolution and the variance, with
2003 Mar 12
0
temporal evolution and variance after rotation of eof
Dear R users, I have been doing some eof analysis using princomp function, then the eof results were rotated with varimax and promax functions. Those functions are working fine. However, after their uses, I cannot find how to obtain the temporal evolution and the variance of the obtain components, as varimax and promax does not have the arguments $scores and $sdev. If any body, know how to
2002 Sep 14
0
p.s. regarding stripchart missing-data report (PR#2019)
--oyUTqETQ0mS9luUI Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In case you want this - and feel free to delete this - here are the data for the bug I just reported concerning missing data in stripchart. You need to run hrp2.R. Please excuse the extraneous junk. This was written mostly by a grad student who was learning R in the process (Andrea Gurmankin). She
2007 Mar 23
1
Bug in str or issue with class management in my package?
Dear developeRs, with R 2.4.1 (and also 2.4.0), the function str() fails on objects of class relimplmbooteval, if there are unused slots, which is very often the case. I am not sure whether this is a bug in str() or a correct behavior of str() that unmasks some sloppiness in my usage of S4 classes (that I am not aware of)? Reproducible example (package relaimpo needed): The program
2020 Oct 24
0
Issue with data() function
On 23/10/2020 9:25 p.m., Therneau, Terry M., Ph.D. via R-devel wrote: > I found an issue with the data() command this evening when working on the survival package. > > 1. I have a lot of data sets in the package, almost all used in at least one vignette, > help file, or test.? As a space saving measure, I have bundled many of them together, > i.e., the file data/cancer.rda contains
2010 Aug 27
0
How to maintain class signature in splom
All, I was having trouble trying to create a new class of data and pass it on to splom (in the lattice library). I mentioned this to Martin Morgan after a talk he gave. Following is not so much a question, but rather an answer from Morgan that might be useful to others. Here is the edited part of an email conversation with him: On Thursday, August 26, 2010 1:36 PM, Martin Morgan wrote:
2009 Sep 08
1
Obtaining value of median survival for survfit function to use in calculation
Hi, I'm sure this should be simple but I can't figure it out! I want to get the median survival calculated by the survfit function and use the value rather than just be able to print it. Something like this: library(survival) data(lung) lung.byPS = survfit(Surv (time, status) ~ ph.ecog, data=lung) # lung.byPS Call: survfit(formula = Surv(time, status) ~ ph.ecog, data = lung) 1
2008 Nov 26
1
survreg and pweibull
Dear all - I have followed the thread the reply to which was lead by Thomas Lumley about using pweibull to generate fitted survival curves for survreg models. http://tolstoy.newcastle.edu.au/R/help/04/11/7766.html Using the lung data set, data(lung) lung.wbs <- survreg( Surv(time, status)~ 1, data=lung, dist='weibull') curve(pweibull(x, scale=exp(coef(lung.wbs)),
2004 Nov 23
6
Weibull survival regression
Dear R users, Please can you help me with a relatively straightforward problem that I am struggling with? I am simply trying to plot a baseline survivor and hazard function for a simple data set of lung cancer survival where `futime' is follow up time in months and status is 1=dead and 0=alive. Using the survival package: lung.wbs <- survreg( Surv(futime, status)~ 1, data=lung,
2010 Jan 29
1
help on drawing right colors within a grouped xyplot (Lattice)
Hi, I've lost my mind on it... I have to scatterplot two vectors, grouped by a third variable, with two different dimensions according to whether each cell line in the plot is sensitive or resistant to a given drug, and with a different color for each of 9 tissues of origin. Here's what I've done:
2020 Oct 24
3
Issue with data() function
I found an issue with the data() command this evening when working on the survival package. 1. I have a lot of data sets in the package, almost all used in at least one vignette, help file, or test.? As a space saving measure, I have bundled many of them together, i.e., the file data/cancer.rda contains 19 data sets, many of them small. The resulting file (using xz compression) is quite a bit
2010 Dec 14
0
Urgent help requested using survfit(individual=T):
Hello: I would like to obtain probability of an event for one single patient as a function of time (from survfit.coxph) object, as I want to find what is the probability of an event say at 1 month and what is the probability of an event at 80 months and compare. So I tried the following but it fails miserably. I looked at some old posts but could not figure out the solution. Here's what I did
2010 Dec 14
1
survfit
Hello R helpers: *My first message didn't pass trough filter so here it's again* I would like to obtain probability of an event for one single patient as a function of time (from survfit.coxph) object, as I want to find what is the probability of an event say at 1 month and what is the probability of an event at 80 months and compare. So I tried the following but it fails miserably. I