Displaying 20 results from an estimated 200 matches similar to: "New user help with plot.default"
2005 Jul 27
1
Question on glm for Poisson distribution.
Good afternoon,
I REALLY try to answer to my question as an autonomous student searching in
the huge pile of papers on my desk and on the Internet but I can't find out
the solution.
Would you mind giving me some help? Please.
#########################################
I'm trying to use glm with factors:
> Pyr.1.glm<-glm(Pyrale~Trait,DataRav,family=poisson)
If I have correctly
2008 Sep 16
4
Unexpected returned value from a function
Hi R-Users,
I wrote a simple function to change values of a matrix or vector to NA
based on the element value being -9999 or -999999. I don't understand
why the function returns a unit vector (NA) instead of setting all
values in the vector which have -9999 or -999999 to NA. When I apply the
function in line, it appears to work correctly?
Can someone enlighten me what I am doing wrong?
2008 Sep 23
2
Counting character occurrences in data frame
Hi R-Users,
I have a data frame containing year, month, day, and code columns. The
code column is a unique character of set ('E','A','B') - I am trying to
determine an efficient way of summarizing the count of each of these
codes by month and year without having to use for...loops and subsets.
Does anyone have any suggestions?
Thanks in advance,
Dave
Here is a snapshot
2010 Oct 28
2
R and Matlab
Dear Group,
I am looking for ways to use R and Matlab. Doing the data transformations in
R and using the data in Matlab to analyze with some pre-defined scripts.
Any good ways to transfer the data into matlab in its most recent version?
I tried using R.matlab but the writeMat output is not readable by Matlab.
I just need to output a data.frame and read it as is into matlab where I can
do any
2008 May 28
1
manipulating multiply imputed data sets
Hi folks,
I have five imputed data sets and would like to apply the same
recoding routines to each. I could do this sort of thing pretty
easily in Stata using MIM, but I've decided to go cold turkey on other
stats packages as a incentive for learning more about R. Most of the
recoding is for nominal variables, like race, religion, urbanicity,
and the like. So, for example, to recode race
2009 Oct 14
1
Beginning R help?
Hi all,
I'm currently working through the "Beginner's Guide to R" (Zurr et al.) and
I'm wondering about the first exercise in chapter 3:
I imported the data from BirdFluCases.txt and executed the 'names' and 'str'
functions as follows:
Bird = read.table(file='C:\\rbook\\BirdFluCases2.txt', header=TRUE)
names(Bird)
[1] "Year"
2006 Sep 15
1
"ccf versus acf"
I am trying to run a cross-correlation using the "ccf()" function. When
I select plot = TRUE in the ccf() I get a graph which has ACF on the
y-axis, which would suggest that these y-values are the auto-correlation
values.
How should I adjust the code to produce a plot that provides the
cross-correlation values?
Here is my code:
w002dat <-
2008 Apr 28
1
strptime format argument
I am getting an unanticipated result attempting to format a datetime
string
date1 <- strptime('2005 297 1030 35', '%Y %j %H%M %S') # returns
"2005-10-24 10:12:35"
date2 <- strptime('2005 297 912 35', '%Y %j %H%M %S') # returns NA
Are there any ways to adjust the format argument (e.g., '%H') to accept
one or two digit hours?
2008 Nov 18
1
Namespaces of imported packages
Hi,
I am trying to build an R package. My existing code makes use of the
bitops and chron packages. So I have included statements to import
required functionality into the NAMESPACE file using import(). When I
run Rcmd build, and error is generated "Error: package 'bitops' does not
have a name space"
I exclude the import(bitops) statement from the NAMESPACE file and
rebuild
2009 Feb 02
1
xyplot with lowess curves
I am trying to change the attributes of the lowess lines fit to an
xyplot command, but have been unsuccessful in my search of the online
help. Right now, both the points and lowess line come out in the same
color (blue). I am unsure how I can change the properties of the lowess
line separately.
xyplot (
SnowLineElevation ~ Year | Model,
data = data,
ylim = c(0,1800),
type =
2009 Apr 30
1
Creating datasets in packages
I am developing an R package which includes datasets. The build and
install works correctly. However, when I access the dataset
("BowRiver"), I get:
> data(BowRiver)
> BowRiver
Error: object "BowRiver" not found. However, I can access the dataset
from
> data
Example R datasets (such as USArrests) are loaded and can be accessed by
the dataset name:
>
2010 Feb 22
1
lmom: plotting log Pearson Type III
Can anyone show me how to add a log Pearson type III plot using the
evdistq() command to an extreme value plot using the lmom package?
Attached sample code below...
Thanks in advance,
Dave
library(lmom)
# annual maximum daily streamflows Mackenzie River
mackenzieRiver = c(26600, 30300, 34000, 32000, 29200, 28300, 28600,
26400, 28300, 28800, 29000, 22100, 32900, 31800, 21600, 32100, 27000,
2010 May 13
1
aggregate.zoo
I have been using aggregate function to determine the annual minimum in
a daily time series. However, I was also hoping to determine the date of
occurrence without having to loop through each year to identify the date
of each minimum returned from aggregate(). Is there a more convenient
way of doing so?
Thanks in advance,
Dave
library(zoo)
n <- 1000
dly <- zoo( x = rnorm(n), order.by
2009 Oct 14
1
R neophyte question.
Hi all,
I'm currently working through the "Beginner's Guide to R" (Zurr et al.) and
I'm wondering about the first exercise in chapter 3:
I imported the data from BirdFluCases.txt and executed the 'names' and 'str'
functions as follows:
Bird = read.table(file='C:\\rbook\\BirdFluCases2.txt', header=TRUE)
names(Bird)
[1] "Year"
2011 Mar 24
0
[LLVMdev] Reversing a function's CFG?
This is in reply to the posting below.
I am not a compiler writer type, so I am probably in over my head a bit.
Several years ago I was a bit interested in something called code slicers.
An example of one (probably no longer supported) is UNRAVEL
(http://www.itl.nist.gov/div897/sqg/unravel/unravel.html )
Their basic idea is to identify the algorithm which serves to determine the
value of
2007 Apr 03
1
Re: asterisk-users Digest, Vol 33, Issue 12
Ah, yes. One of the many differences between the US and the rest of the world.
>>> support@drdos.info 4/3/2007 2:52:16 PM >>>
john beaman wrote:
> I too was curious about this, so I copied the text into Babel Fish, and this is the result:
>
> I miss of the 2/04/2007 to the 11/04/2007. I will answer your message as of my return. For any urgency, to contact Emmanuelle
2012 Sep 03
2
Adding summary title to table
All,
I have:
x <- matrix(c(22,3,6,69,9,4,7,81,23,4,22,50),nrow=3,byrow=TRUE)
rownames(x) <- c("Cold or flu","Headache","Backache");
colnames(x) <- c("Went to doctor","No response","Did
nothing","Self-medicated")
x <- t(x)
print(x)
1. I'd like to add the title "Nutritional Status" above the column
2012 Sep 03
3
Horizontal grid in background of barplot
All,
I have:
x <- matrix(c(22,3,6,69,9,4,7,81,23,4,22,50),nrow=3,byrow=TRUE)
rownames(x) <- c("Cold or flu","Headache","Backache");
colnames(x) <- c("Went to doctor","No response","Did
nothing","Self-medicated")
x <- t(x)
print(x)
barplot(x,beside=TRUE,
ylim=c(0,90),
xlab="Ailment",
2006 Apr 26
2
help in R
Hi,
I cant understand where I am going wrong.Below is my code.I would really appreciate your help.
Thanks.
> genfile<-read.table("c:/tina/phd/bs871/hw/genfile.txt",skip=1)
>
> #read in SNP data
> snp.dat <- as.matrix(genfile)
> snp.name <- scan("c:/tina/phd/bs871/hw/genfile.txt",nline=1,what="character")
Read 100 items
2014 Feb 04
2
Status
So, just some quick notes:
- dovecot.org server was down a couple of days again, need to find time to move it to a VM..
- my tss at iki.fi emails were also broken for some hours at least and it was bouncing back all mails to it during the time
- I fixed some bugs reported by people, but I did it in airplane so couldn't reply back with links to the fixes in hg repo. I'll probably do