Displaying 20 results from an estimated 6000 matches similar to: "Trying to understand factors"
2010 Sep 25
1
Question on levels function and extracting the associated level number
>
> Dear Sir/Madam,
>
> I have a quick question, which I hope someone can help.
>
> I am using the levels function in R, which helps to summarize the number of
> factors that I have in a vector in an ordered manner.
>
> Using an already existing example:
>
> > state <- c("tas", "sa", "qld", "nsw", "nsw",
2007 Nov 16
7
sorting factor levels by data frequency of levels
using an example from r online help
> state <- c("tas", "sa", "qld", "nsw", "nsw", "nt", "wa", "wa",
"qld", "vic", "nsw", "vic", "qld", "qld", "sa", "tas",
"sa", "nt", "wa", "vic",
2005 Jul 26
1
beginner finds a bug - crash induced. (PR#8035)
Full_Name: Stephen Holland M.D.
Version: 2.1.1
OS: Mac OS X
Submission from: (NULL) (67.184.33.112)
I did a bunch of stuff, then did in sequence:
> state <- c("tas", "sa", "qld", "nsw", "nsw", "nt", "wa", "wa",
+ "qld", "vic", "nsw", "vic",
2015 Jul 27
2
Error sql en función
Hola:
No consigo que la función sqldf () funcione dentro de una función. Alguien puede echarme una mano. En resumen, el problema es que cuando lo ejecuto fuera de una función no tengo ningún problema:
==========================
> # install.packages("sqldf")
> library(MASS)
> library (sqldf)
> data(Aids2, package="MASS")
> options(digits=3)
> table
2002 Jan 31
1
obvious answer
I apologise for this question, as I'm sure the answer has got to be
obvious, but I am trying to follow the John Maindonald tutorial and have
stumbled at the first page.
I have sussed out that I need to use the source command rather than the
read.table command as illustrated in the tutorial, but the data isn't
reading in properly with additional names at the beginning and end of the
2015 Jul 27
2
Error sql en función
Hola Carlos:
Gracias por responder!
Ayer caí en esta página al buscar el problema con google, pero no conseguir entender y implementar lo que sugiere. Sin entender nada, lo que hice fue:
========================
> library(MASS)
> library (sqldf) # Per SQL
> data(Aids2, package="MASS")
> SQL_PROVA = function (XDADES, XWHE)
+ {
+ XDADES_SQL = sqldf ("select * from
2001 Feb 27
6
How to read a text table? A bit of trouble with Using R - An Introduction
> Ok...So I actually *typed* the table with WordPad, using the Tab button
>in order to separate the columns, and saved it in rich text format. As you
>might have guessed, it didn´t work. I got a:
> Error in count.fields(file, sep, quote, skip, blank.lines.skip) :
> string terminated by newline or EOF
RTF is not what is meant by text. What I am writing is text.
Your
2002 Feb 01
0
No subject
> myotis at cix.compulink.co.uk (Graham Smith) writes:
>
>> I apologise for this question, as I'm sure the answer has got to be
>> obvious, but I am trying to follow the John Maindonald tutorial and
have
>> stumbled at the first page.
>
>Link? (I suppose that I could find it, but it is you problem...)
http://wwwmaths.anu.edu.au/~johnm/r/dsets/
>> I have
2007 Apr 30
1
mirror's choice when installing a package for R-2.5.0 (PR#9643)
Hello,
Just a quick message to say that,
------------------------------------------------------------------------
-------
when choosing (with or without the tcltk window) "Bern 1 (swiss)" as
CRAN mirror to install
a package (function install.packages) for R-2.5.0, the list of
available packages
for osx seems not complete:
AMORE, AdaptFit, AlgDesign, AnalyzeFMRI, SemiPar,
2005 Aug 12
1
Help converting a function from S-Plus to R: family$weight
Hi all
I am converting an S-Plus function into R. The S-Plus code
uses some of the glm families, and family objects.
The family objects in S-Plus and R have many different
features, for example:
In R:
> names(Gamma())
[1] "family" "link" "linkfun" "linkinv" "variance"
[6] "dev.resids" "aic"
2006 Apr 19
2
How to do case-sensitive searches
Forgive me if this topic has already been discussed on the list. I
googled but couldn''t find much. I''d like to search through text for
US state abbreviations that are written in capitals. What is the best
way to do this? I read somewhere that tokenized fields are stored in
the index in lowercase, so I am concerned that I will lose precision.
What is the best way to store a
2007 Oct 31
2
R GUI for Linux
I have downloaded and tried to install JGR - Java GUI for R - Version 1.5.
I followed all the instructions (at least in my best resolution) and
installed Java latest version.
R installation complete fine.
Has anyone succeded in installing JGR on SuSE 10.3 ?
In the following I hade detailed the failed installation,
As root /i did the following:
linux-Mimin:/usr/local/bin # ./R
R version 2.6.0
2005 Oct 06
2
R/S-Plus equivalent to Genstat "predict": predictions over "averages" of covariates
Hi all
I'm doing some things with a colleague comparing different
sorts of models. My colleague has fitted a number of glms in
Genstat (which I have never used), while the glm I have
been using is only available for R.
He has a spreadsheet of fitted means from each of his models
obtained from using the Genstat "predict" function. For
example, suppose we fit the model of the type
2010 Sep 15
1
Difficulty creating Julian day in data frame
Hi,
I'm attempting to add a "Julian Day" column to a data frame.
Here is my code and the resulting data frame:
vic.data <- read.table("C:/VIC/data/vic.data.csv", header=F)
names(vic.data) <- c("year", "month", "day", "precip", "evap",
"runoff", "baseflow", "Tsup",
2005 Mar 06
1
wine wont' run
Any guess's as to whats going on here?
A new from source compile/install
vic@zeus:/usr/local/bin$ wine
wine: creating configuration directory '/home/vic/.wine'...
Unknown option '-w'
usage: wineserver [options]
options:
-d<n> set debug level to <n>
-p make server persistent
-h display this help message
-s server will use shared memory
2007 Aug 30
5
Single plot multiple levels in x?
Plotting with 2 x axis?
One axis inside another, for example salary within state,
1-50 | 50 ? 100 | 100+ | 1- 50 | 50 -100 | 100+ | ? repeated bins for salary
AL ! AR ?? more states
The values are all stored with a single data frame. I have tried different things with the axis function and done many
2006 Nov 27
2
[R-sig-Geo] plot() and Jpeg() increase font size and resolution
Thanks to Edzer and Roger,
I can now plot with increased font sizes. However, jpeg still does not
reproduce these, nor does it show up in high quality. What I would like
to do is produce some highresolution jpegs.
Any help would be appreciated
Thanx
Herry
R2.4 on Mandriva 10.2 linux.
Dr Alexander Herr
Spatial and statistical analyst
CSIRO, Sustainable Ecosystems
Davies Laboratory,
University
2003 Sep 07
3
bug in crossprod? (PR#4092)
# Your mailer is set to "none" (default on Windows),
# hence we cannot send the bug report directly from R.
# Please copy the bug report (after finishing it) to
# your favorite email program and send it to
#
# r-bugs@r-project.org
#
######################################################
# The last line of following code produces a segmentation fault:
x <- 1:10
f <- gl(5,2)
2004 Sep 23
2
Cisco 2610XM and Asterisk
A little off-topic:
I have the following hardware:
2610 XM
NM-2V
VIC-2BRI NT/TE
IOS loaded:
flash:c2600-ipvoice-mz.123-5d.bin"
I get the following error while booting:
%C542-1-UNKNOWN_VIC: VNM(1), vic daughter card has an unknown id of FF
Is the VIC-2BRI compatible with the 2610XM? What IOS needs to be loaded?
http://www.cisco.com/en/US/products/hw/modules/ps2641/products_tech_note0918
2007 Jun 14
1
blotched y-axis text in plot function
Hi List,
I have recently upgraded to opensuse10.2 and R 2.5 (compiled from
source). Now, whenever I use plot the y-axis and labels are black
blotches while x-axis and labels are fine.
Using demo(graphics) this occurs with plot/boxplot/hist/pairs/coplot but
not in the pie graphs and in the "The level of Interest in R" plot,
which uses axis to define the y-axis.
I presume this has to