Displaying 20 results from an estimated 10000 matches similar to: "Upgrading R means I lose my packages"
2007 Jun 12
4
Generating artificial datasets with a specific correlation coefficient.
I need to create artificial datasets with specific correlation
coefficients (i.e. a dataset that returns r = 0.30, etc.) as examples
for a lab I am teaching this summer. Is there a way to do that in R?
Thanks.
Jim Milks
Graduate Student
Environmental Sciences Ph.D. Program
136 Biological Sciences
Wright State University
3640 Colonel Glenn Hwy
Dayton, OH 45435
[[alternative HTML version
2005 Feb 11
3
Saving graphs in formats other than PDF?
I am running R 2.01 on Mac OS 10.3.7. Whenever I save graphs, they are
saved as PDF files. Are there any other file formats to which I could save
my graphs. I would like to directly export my graphs to MS Word, if
possible.
Thank you in advance.
Sincerely,
Jim Milks
Graduate Student
Environmental Sciences Ph.D. Program
Wright State University
3640 Colonel Glenn Hwy
Dayton, OH 45435
2005 May 31
2
plane3d
I am attempting to fit a logistic regression plane to a 3-D scatterplot
(which was generated using scatterplot3d). I've noticed that the help
pages of scatterplot3d include a function titled "plane3d." However,
when I attempt to use the function, I get the following message:
Error: couldn't find function "plane3d"
I've searched the archives and found no
2007 Jul 02
4
Extracting sums for individual factors in data frames
I have a data frame with two columns, one of which is a factor
(Species) and the other is numeric (BA, which stands for basal
area). Here's a sample:
Species BA
ACSA 55.7632696
FRAM 122.9933524
ACSA 67.54424205
ACSA 89.22123136
ACSA 82.46680716
ACSA 22.46238747
ACSA 19.94911335
ACSA 20.42035225
ACSA 19.00663555
ACSA 21.67698931
ACSA 57.80530483
ACSA 30.31636911
Dead 43.98229715
Dead
2007 Jul 08
1
generating a data frame with a subset from another data frame
R gurus,
I have a data set that looks something like this:
Site Species DBH #Vines
G PLOC 45.9 4
G ACNE 23.3 1
G ACNE 12.0 0
G FRAM 35.9 5
G AEGL 11.2 2
N PLOC 77.3 12
N JUNI 78.6 7
N ACNE 18.9 1
N ACNE 15.7 3
N ACRU 35.5 4
H ACSA2 24.1 6
H ULAM 35.2 7
There are 730 individual trees (22 species) from four sites in the
actual data set. I would like to create a second data frame that
2007 Aug 13
2
Error message when using zero-inflated count regression model in package zicounts
I have data on number of vines per tree for ~550 trees. Over half of
the trees did not have any vines and the data is fairly skewed
(median = 0, mean = 1.158, 3rd qu. = 1.000). I am attempting to
investigate whether plot location (four sites), species (I'm using
only the four most common species), or tree dbh has a significant
influence on the number of vines per tree. When I
2007 Aug 31
1
Strange behavior using subset
Dear R Gurus,
Let's get the technical details out of the way first:
Computer: 1.83 GHz MacBook
R version 2.5.1
I have a data set that contains the following variables: site,
species, total.vines. I need to partition the main data set by site,
the further select only those species that occurred at each site.
When I select by site (site.name<-subset(data frame,Site=="Site
2005 Apr 18
1
Forcing best-fit lines to go through the origin
Dear All,
I have a rather unusual problem. I have a set of data for a class in
subsurface processes. From that dataset, I must calculate the slope of
the best-fit line (which is the parameter of interest). The problem I
have is twofold: 1) for the purposes of the exercise, I must force my
best-fit line to go through the origin (0,0), and 2) the line must be
linear, even though the data is
2006 Sep 12
1
Using XY location data to calculate ecological parameters
Dear R gurus,
I have XY data giving the locations of tree seedlings that were
surveyed during a 210 meter belt transect. This belt transect was
taken by stretching a line across the field, then measuring all
seedlings within 1 meter on either side of the line. The end result
was XY coordinates and height for ~1,300 seedlings. I would like to
use that data to calculate density of
2007 Jul 31
2
choosing between Poisson regression models: no interactions vs. interactions
R gurus,
I'm working on data analysis for a small project. My response
variable is total vines per tree (median = 0, mean = 1.65, min = 0,
max = 24). My predictors are two categorical variables (four sites
and four species) and one continuous (tree diameter at breast height
(DBH)). The main question I'm attempting to answer is whether or not
the species identity of a tree has
2013 Sep 02
3
Product of certain rows in a matrix
Hi,
You could try:
A<- matrix(unlist(read.table(text="
1 2 3
4 5 6
7 8 9
9 8 7
6 5 4
3 2 1
",sep="",header=FALSE)),ncol=3,byrow=FALSE,dimnames=NULL)
library(matrixStats)
?res1<-t(sapply(split(as.data.frame(A),as.numeric(gl(nrow(A),2,6))),colProds))
?res1
#? [,1] [,2] [,3]
#1??? 4?? 10?? 18
#2?? 63?? 64?? 63
#3?? 18?? 10??? 4
2005 Mar 09
1
Aid with 3-D scatterplots
I am attempting to classify pixels from a Landsat image by using their
associated numbers in bands 2, 3, and 4 (It's from an assignment on
classification). To aid me, I want to create a 3-D scatterplot using
the "cloud" command. Due to my ignorance of the finer plotting
functions, I am unable to display the scale on the three axes or to
display the grid.
My dataframe (RS)
2005 May 01
1
Partial F-test comparing full and reduced regression models
Dear all:
I have a regression model that has collinearity problems (between three
regressor variables). I need a F-test that will allow me to compare
between full (with all variables) and partial models (minus 1=<
variables). The general F-test formula I'm using is:
F = {[SS(full model) - SS(reduced model)] / (#variables taken out)} /
MSS(full model)
Unfortunately, the ANOVA table
2010 May 27
2
Trying to upgrade from R 2.7.1
[Running debian stable]
I followed the instructions at
http://cran.r-project.org/bin/linux/debian, adding
deb http://cran.R-project.org/bin/linux/debian lenny-cran/
to /etc/apt/sources.list. But apt-get still leaves me with R 2.7.1.
How can I diagnose what's wrong or correct this?
euclid: /etc/apt # apt-get update
Hit http://debian.yorku.ca stable Release.gpg
Ign http://debian.yorku.ca
2013 Sep 26
2
Sums based on values of other matrix
Dear all,
I have a big problem:
- I got two matrices, A and B
- A shows identifies the value of B, however the values of B must be summed
- For instance,
1 1 2 2
2 2 1 1
gives matrix a
3 4 2 1
1 1 2 2
gives matrix b
Now the result for the value 1 would be
7
4
which are the rowsums of the values of matrix B given that matrix A has the value 1.
How can I do this automatically? I
2007 Apr 01
3
Doing partial-f test for stepwise regression
Hello all,
I am trying to figure out an optimal linear model by using stepwise
regression which requires partial f-test, I did some Googling on the
Internet and realised that someone seemed to ask the question before:
Jim Milks <jrclmilks at joimail.com> writes:
> Dear all:
>
> I have a regression model that has collinearity problems (between
> three regressor variables). I
2003 Nov 06
3
import data troubles
HI R lovers,
I have been facing a petty trouble with datas' import :
I have a plain txt file (see attached file or the copy below) that I cannot
read either with scan or read.table
> scan(file="F:/Alt/HDG/Stoliaroff/Data/test.txt")
Error in scan(file = "F:/Alt/HDG/Stoliaroff/Data/test.txt") :
"scan" expected a real, got "??6"
>
2003 Sep 20
3
conditional function definition?
Hi Folks,
What is the best way to avoid a function being read in
anew (and masking an exiting function) when a definition
of it has already been established in R?
Reason: Fernando Tusell and I are working up Schafer's 'CAT'
for R (basically done now, just needs some cosmetic tidying up).
This uses a function 'slice.index', present in S but not in
the versions of R we were
2012 Aug 09
4
indexing in data frames
I'm still not fully understanding exactly how R is handling data frames, but am getting closer. Any help with this one will likely go a long way in getting me there. Let's say I have a data frame, let's call it "a". Within that data frame i have two variables, let's call them "b" and "c", where "b" is a single numeric value per observation,
2018 Nov 28
2
Problem Upgrading to R 3.5 on Ubuntu 18.04
Somehow during the process of updating both Ubuntu and R to the latest
versions I ended up with a version of R 3.5 installed into the sudo
user's home directory with default libraries set to the sudo user home
directory as well (/home/uname/R/x86_64-pc-linux-gnu-library/3.5 rather
than usr/local/lib/R/site-library).
I've tried to remove using sudo apt purge r-base r-base-dev and get a