Displaying 20 results from an estimated 20000 matches similar to: "Fw: write.table only writes the first 256 variables/columns"
2002 Jan 08
3
Finding functions in uninstalled libraries
(Many thanks to David Barron & Jonathan Baron for pointing me to 'recode' in
the 'car' package).
I think I've been told this before, but how do I search for a
function/keyword in libraries I don't yet have installed?
(ie. on the CRAN site I tried the search engines with "recode" etc., but
didn't pick up the car package this way)
Stuart
Dr Stuart Leask
2012 Jun 22
3
removing NA from a data frame
Removing rows with NAs, using na.omit(), doesn't seem to be working for me.
Dataset:
> str ( ex10s )
'data.frame': 2189576 obs. of 5 variables:
$ LOPNR : int 58 58 58 58 64 64 64 64 64 64 ...
$ DIAGNOS: Factor w/ 173 levels "F20","F200","F2000",..: 128 128 128 128 105 105 105 160 105 105 ...
$ X_DATE : int 20060821 20061207 20080102 20090904
2002 Jan 18
1
RE: z-scores for different factor levels
Hi Stuart,
I often use this small function
standardize <- function(x) ( x - mean(x, na.rm=T) ) / sqrt(var(x,
na.rm=T))
to standardize variables.
You should be able to use this to do what you want by splitting the data
frame into sections based on the factor level, using standardize() to create
a new variable in each section, then paste the data frame back together.
Something like:
#
2012 Oct 23
10
How to pick colums from a ragged array?
I have a large dataset (~1 million rows) of three variables: ID (patient's name), DATE (of appointment) and DIAGNOSIS (given on that date).
Patients may have been assigned more than one diagnosis at any one appointment - leading to two rows, same ID and DATE but different DIAGNOSIS.
The diagnoses may change between appointments.
I want to subset the data in two ways:
- define groups
2002 Feb 21
2
Re: Factor analysis of categorical or mixed categorical/continuousdata in
I am looking to fit one or more latent categorical variables to data that is
a mixture of categorical and continuous variables. Factor analysis would
work for continuous data, latent class analysis for categorical data. I
understand that in a package such as MPlus I could perform a single analysis
of both data types. Are there similar routines available in R?
Stuart
-----Original Message-----
2002 Jan 09
1
value labels from read.spss()?
>From owner-r-help at stat.math.ethz.ch Wed Jan 9 10:08:44 2002
>
>Does anyone know how to access/list the value labels stored in a SPSS .sav
>file?
>At the moment I can read in variables using read.spss() (foreign package),
>but have to power up SPSS to check value labels.
>
>Stuart
There may be a solution to this in R, and I would love to hear
it, but I was just faced
2002 Feb 21
1
Factor analysis of categorical or mixed categorical/continuous data in
Are there any suitable routines that perform factor analysis of categorical
or mixed categorical/continuous data in R?
Stuart
Dr Stuart Leask MA MB BChir (Cantab) MRCPsych
Clinical Lecturer in Psychiatry, University of Nottingham Dept Psychiatry
Duncan Macmillan House, Porchester Road, Nottingham. NG3 6AA. UK
tel. 00 44 115 969 1300 xtn 40784 fax 0115 955 5352
2001 Sep 18
4
help in a separate window under linux
Hi there.
R v1.3.0, Slackware linux 7.1 or Windows 98SE, PII 266, 64Mb RAM.
I notice that under windows, R puts help info (ie. the response to
'?<function>') into a new window, whereas under linux, it puts it into the
main console window. I find the former much more helpful when checking a
function's syntax.
Is there a simple way of configuring R under linux to put its help
2012 Jul 18
3
'symbols' not plotting correct circle radii
Hi there.
I have been plotting some circles using 'symbols', with radii representing my data, but the radii looked incorrect.
It seems to happen with a single circle too:
Symbols ( 0, 0, circles = 40, xlim = c(-40, 40), ylim= c(-40, 40))
If I put a ruler up to my monitor (technology!) to compare the radius with the axes, the circle isn't radius 40; it is closer to 15...
I
2002 Jan 07
0
Recoding variable levels in R
>From: "Stuart Leask" <stuart.leask at nottingham.ac.uk>
>
>Hi there. When I wished to recode two variables in SPSS, I could use the
>command RECODE:
>
>recode VAR1 VAR2 VAR3 etc. (1=0) (2=1) (3,MISSING=SYSMIS) (else=0).
>
>In R, I can 'hand-crank' each variable (using ifelse, or if the data is in a
>matrix by logical tests, or no doubt numerous
2002 Jan 18
0
RE: z-scores for different factor levels
Brian Ripley pointed out that there is already an R function scale() that
does the work of my standardize().
-Greg
-----Original Message-----
From: Warnes, Gregory R
Sent: Friday, January 18, 2002 9:38 AM
To: 'Stuart Leask'
Cc: 'r-help at stat.math.ethz.ch'
Subject: RE: z-scores for different factor levels
Hi Stuart,
I often use this small function
standardize <-
2002 Nov 27
1
R on the Zaurus
Hello All,
I have a working port of R on my SL5500. I've not tested the X windowing
support yet, but was more concerned about the accuracy of the fp emulation.
The following is the result of the test which Stuart Leask recommended I
should try:
Mandrake 8.2
> x<-NA
> is.na(x)
[1] TRUE
> x+1
[1] NA
> 2*x
[1] NA
Zaurus OZ3
> x<-NA
> is.na(x)
[1] TRUE
> x+1
[1] 1
2002 Jan 06
2
Passing names of variables to functions
Hi,
I am still new to R and have a programming question. I have created a
small function which takes a parameter. In the function I want to be able
to refer to the names of the variables sent to the function (specifically
I want to be able to use the name of the variable given to the function in
an output table). For example, in the following (fictional) function I
want some way of printing
2003 Mar 06
1
[stuart.leask@nottingham.ac.uk: R in your pocket on a Sharp Zaurus]
Ah, but the interesting thing is that they are coming out with a 'clam'
version like the 5MX. Details are limited at the moment, but that could
mean the combination of 5MX usability with a supported linux distro. I
am drooling in anticipation. Sounds like a "I've finally finished my
PhD and deserve a treat" situation to me :)
Dave
On Thu, Mar 06, 2003 at 09:17:20AM
2010 Apr 30
2
RBloomberg for 2.11 ?
Dear R Users,
Is there a version of the Windows binary for RBloomberg that works with R 2.11 ?
Thanks in advance,
Tolga
This email is confidential and subject to important disclaimers and
conditions including on offers for the purchase or sale of
securities, accuracy and completeness of information, viruses,
confidentiality, legal privilege, and legal entity disclaimers,
available at
2001 Mar 23
0
Re: Finding functions (eg. 'lag')
Many thanks to those who gave me a loaf, and others who taught me how to
fish!
Stuart
>
> > From: "Dr Stuart Leask" <stuart.leask at nottingham.ac.uk>
> > To: "R-help" <r-help at stat.math.ethz.ch>
> > Subject: [R] 'lag' in R?
> > Date: Thu, 22 Mar 2001 16:46:18 -0000
> > X-Priority: 3
> > X-MSMail-Priority: Normal
2001 Dec 03
0
Summary on R script editor
Thanks for the advice, folks!
Shravan Vasishth <vasishth at ling.ohio-state.edu>
Try pico.
There's no substitute for/comparison with emacs, though, IMHO.
but just to be sure: you don't have to have ESS to use (x)emacs for
editing R scripts.
Sven Garbade <garbade at psy.uni-muenchen.de>
ESS can be installed via rpm on Mandrake.
baron at cattell.psych.upenn.edu (Jonathan
2001 Sep 21
4
How to change the levels of a variable???
Hi,
I have a simple question.
I have a variable with 3 levels.
Variable
A A A A A A
B B B B B B
C C C C C C
I need to make a new vector renaming de levels B and C for D.
NewVariable
A A A A A A
D D D D D D
D D D D D D
I dont find how to make it in manuals or in this list.
Can anyone help-me???
Thank you
Ronaldo
--
Agnes' Law:
Almost everything in life is easier to get into than out of.
2002 Jun 25
4
re: GUI's for teaching
Hi,
Have you seen the tcltk package? I believe it is a better option than the
one you outline in your message. Why develop a Windows-only GUI? Maybe in a
few years your teaching department will give up Windows for Linux (for the
reasons you wrote about R: it is free, advanced, and adaptable). There is
an article in R News (vol.1, n?3) by Peter Dalgaard on the tcltk package,
and the latter
2001 Mar 10
1
Bug in qchisq?
Hello developers and users:
My system fails (the computer freezes) when I use the ncp parameter,
with the lower.tail=FALSE option in the qchisq function.
qchisq(0.025,31,ncp=1,lower.tail=FALSE)
Thank you very much for your help.
Kenneth Cabrera
Universidad Nacional de Colombia
ICNE
Sede Medellin
krcabrer at perseus.unalmed.edu.co
PS
I am using:
$platform "i386-pc-mingw32"