Displaying 20 results from an estimated 10000 matches similar to: "Function some()"
2011 Mar 09
1
state.x77 dataset
I tried:
> data(state.x77)
Warning message:
In data(state.x77) : data set 'state.x77' not found
data(iris) seems to work fine, but the other state datasets (which I haven’t every tried before) don’t seem to be available
on my windows 7 running R 2.12.2 installation.
?state brings up the state help page page which suggest the dataset should still be there. In help there still seems to
2011 Oct 18
1
nuisance variables
*Dear experts,*
Please excuse me for disturbing... Right now I am struggling with GLM a
bit... Would you be so kind to provide me a solution on using nuisance
variables. The problem is that I have data on Depression (volumetric
measurements of different brain regions) and I want to include age, gender
and education as nuisance parameters in the model. In the other words I
would like to model the
2000 Aug 21
4
symbols: xlim and ylim cannot be specified (PR#639)
symbols(iris[,1],iris[,2],rectangles=as.matrix(iris[,3:4]),inches=0.3,
ylim=c(1,5))
Error in plot.default(NA, NA, type = "n", ylim = ylim, xlim = xlim, xlab = xlab, :
formal argument "ylim" matched by multiple actual arguments
Since plot is called inside symbols, with specified xlim and ylim,
any specification through ,... hurts this call.
I am pretty sure that you
2011 Sep 22
3
Identifying Package for Function
While reading ?subset I'm referred to learn about dropvalues() as a
following operation. Yet, when I issue ?dropvalue I see, "No documentation
for '?dropvalues' in specified packages and libraries:".
How do I identify the library/package that contains a specific function
such as, in this case, dropvalues()?
Rich
2005 Feb 02
4
(no subject)
can you recommend a good manual for R that starts with a data set and gives
demonstrations on what can be done using R? I downloadedR Langauage
definition and An introduction to R but haven't found them overly useful.
I'd really like to be able to follow some tutorials using a dataset or many
datasets. The datasets I have available on R are
Data sets in package 'datasets':
2008 Apr 15
6
looking for a string
Hi all,
I have not been able to find an answer to what is a simple question:
conaguaMexicoSub <- subset(conagua, unidad == "Jalapa", select =
c(equipo,X101:X309))
This subset gives me all the rows from conagua where unidad is Jalapa.
But, please, how do I get all the rows where unidad contents Jalapa?
I've been looking at regex, but I didn't find how pass one to unidad
2008 Jan 12
2
Lattice equivalent of par(mfrow = )
Dear r-helpers,
Does anyone have a straightforward example of putting together three
unrelated (expect for a common y-axis) xyplot() figures in what would
be in base graphics a par(mfrow = c(1, 3)) arrangement?
_____________________________
Professor Michael Kubovy
University of Virginia
Department of Psychology
USPS: P.O.Box 400400 Charlottesville, VA 22904-4400
Parcels: Room 102
2005 Feb 13
1
missing X11 graphics title bar
I have on occasion had the problem of missing title bars on X11
graphics windows when using R, and would like to know what others have
found in terms of the occurance, source, or solution of this problem.
In searching for information on this I found only the brief thread
from last November which I have copied below. Anyone who has
experienced this knows it brings a very unwelcome interruption to
2008 May 06
1
Spacing between lattice panels
I'm trying to set up a lattice plot with two y-axes for each panel. (Yes,
I know that multiple y-axes are generally a bad idea; the graph is for
someone else and they want it that way.) I've used a custom
yscale.component in xyplot to achieve this:
myyscale.component <- function(...)
{
ans <- yscale.components.default(...)
ans$right <- ans$left
foo <-
2009 Mar 24
1
Is aggregate() function changing?
Hi R developers and debian users:
Finally I found how to work with aggregate() function
on the last patched version fo R.
I you use this command it fails:
aggregate(state.x77, list(Region = state.region), mean)
But if you modify it in this way, it works!:
aggregate(state.x77, list(Region = state.region), function(x) mean(x) )
Is it necesary to change the example?
What is changing in
2009 Mar 24
1
Is aggregate() function changing?
Hi R developers and debian users:
Finally I found how to work with aggregate() function
on the last patched version fo R.
I you use this command it fails:
aggregate(state.x77, list(Region = state.region), mean)
But if you modify it in this way, it works!:
aggregate(state.x77, list(Region = state.region), function(x) mean(x) )
Is it necesary to change the example?
What is changing in
2011 Jan 17
1
isoreg memory leak?
I believe there is a memory leak in isoreg in the current version of R,
as I believe the following shows
> gc()
used (Mb) gc trigger (Mb) max used (Mb)
Ncells 120405 3.3 350000 9.4 350000 9.4
Vcells 78639 0.6 786432 6.0 392463 3.0
> for(k in 1:100) {
+
+ y <- runif(10000)
+ isoreg(x,y)
+ }
> rm(x)
> rm(y)
> gc()
used (Mb) gc
2024 Jul 21
2
[External] Using the pipe, |>, syntax with "names<-"
The main challenge in Bert's original problem is that `[` and `[<-` cannot
be called in a pipeline. The obvious solution is to define named versions,
e.g.:
elt <- `[`
`elt<-` <- `[<-`
Then,
> z <- data.frame(a = 1:3, b = letters[1:3])
> z |> names() |> elt(2)
[1] "b"
> z |> names() |> elt(2) <- "foo"
> z
a foo
1 1 a
2 2
2009 Apr 05
1
problem with lattice tiff or bitmap: character size and color
Hi all,
I am trying to make tiff files of lattice plots at a resolution greater
than 300 dpi required by a journal (PLoS ONE). I have tried both the tiff
and bitmap functions. tiff keeps panel colors but reduces axes and tick
labels so they are nearly invisible. bitmap maintains correct label size
but only produces greyscale. Regular plots work fine with tiff; the
problem is only with lattice
2013 Apr 09
4
Converting matrix to data frame without losing an assigned dimname
Hello All,
Would like to be able to convert a matrix to a dataframe without losing an assigned dimname.
Here is an example that should illustrate what I'm talking about.
tableData <- state.x77[c(7, 38, 20, 46), c(7, 1, 8)]
names(dimnames(tableData)) <- c("State", "")
tableData
State Frost Population Area
Connecticut 139 3100 4862
2011 Sep 27
4
Question concerning Box.test
Hi everyone,
I've got a question concerning the function Box.test for testing
autocorrelation in my data.
My data consist of (daily) returns of several stocks over time (first
row=time, all other rows=stock returns). I intend to perform a Box-Ljung
test for my returns (for each stock). Since I have about 3000 stocks in my
list, I'm not able to perform the test individually for each
2007 Aug 16
4
Linear models over large datasets
I'd like to fit linear models on very large datasets. My data frames
are about 2000000 rows x 200 columns of doubles and I am using an 64
bit build of R. I've googled about this extensively and went over the
"R Data Import/Export" guide. My primary issue is although my data
represented in ascii form is 4Gb in size (therefore much smaller
considered in binary), R consumes about
2009 Mar 24
1
aggregate() example fails]
Hi R users and developers on debian platforms.
I compile the R version 2.8.1 Patched (2009-03-18 r48193)
on my UBUNTU linux distribution.
But when I ask for the aggregate example it fails.
What am I missing?
example(aggregate)
aggrgt> ## Compute the averages for the variables in 'state.x77',grouped
aggrgt> ## according to the region (Northeast, South, North Central,West) that
2007 Aug 21
2
divided scatter plots
I have a data set which contains two columns. The first column is a
list of countries, and the second column contains their political risk
ratings. I would like to create one large plot that contains 5
different sections, each with a scatter plot. To clarify, I have
divided the countries into 5 groups. For each group (continent), I
would like to have the name of the continent on the x-axis, and
2001 Dec 27
1
scale in stars() is not as documented (PR#1230)
R 1.4.0
?stars has
scale: logical flag: if `TRUE', the columns of the data matrix are
scaled independently so that the maximum value in each column
is 1 and the minimum is 0. If `FALSE', the presumption is
that the data have been scaled by some other algorithm to the
range [0,1].
but the code has
if (scale) {
x <- sweep(x, 2,