Displaying 20 results from an estimated 400 matches similar to: "unexpected result from format(x, digits)"
2012 Jul 30
2
distance matrix and hclustering
Dear R Users,i am very new to R. I want your help on an issue regarding distance matrix and cluster analysis
i had discharge data of 4 rivers(a,b,c,d) in 4 vectors each having 364 values
> dput(qmu)structure(list(a = c(0.26, 0.25, 0.25, 0.25, 0.24, 0.23, 0.22, 0.21, 0.21, 0.21, 0.2, 0.19, 0.19, 0.19, 0.19, 0.18, 0.18, 0.18, 0.17, 0.17, 0.17, 0.17, 0.17, 0.17, 0.17, 0.17, 0.17, 0.17, 0.17, 0.17,
2007 Apr 25
1
help
Hi all,
I have 2 questions:
1)How do I calculate the mean on an imported txt file? I've imported the
file below and that's what it looks like imported. How do I then calcuate
the mean, median, or mode on the column LeafArea using the desktop R
package?
Any help would be greatly appreciated!!
Thanks,
Nat
LeafType Leaflets LeafArea ShapeRatio LeafWeight LeafThickness
1 1
2000 Feb 21
3
incompatibilities between 0.90 and 0.99?
Maybe this is dumb, but I seem to be having problems reading a file saved in R
v. 0.99 into R 0.90.1 (in a different machine).
I did
>save(test1, file="test1.RData")
then I tried to read that data file in R 0.90.1:
>load("test1.RData")
Error in load("test1.RData") : restore file corrupted -- no data loaded
More info:
- both machines are running Linux;
2010 Dec 30
2
optim and singularity
Hello,
I was unable to find clues to my problem in ?optim. Using the data and code
below, I get an error ("system is exactly singular") when a particular line
of code is left in, but have found that 'optim' works when I comment it out.
The line of code in question is after the closeAllConnections() line of code
and contains a call to "na.approx" from the zoo package.
2005 Aug 27
1
survival parametric question
Hi to all,
I am working on design package using survival function.
First using PSM and adopting a weibull specification for the baseline hazard , I have got the following results(since weibull has both PH and AFT propreties ,in addition I have used the PPHSm command):
Value Std. Error z p
(Intercept) 1.768 1.0007 1.77 7.73e-02
SIZE -0.707 0.0895 -7.90 2.80e-15
2005 Apr 15
2
negetative AIC values: How to compare models with negative AIC's
Dear,
When fitting the following model
knots <- 5
lrm.NDWI <- lrm(m.arson ~ rcs(NDWI,knots)
I obtain the following result:
Logistic Regression Model
lrm(formula = m.arson ~ rcs(NDWI, knots))
Frequencies of Responses
0 1
666 35
Obs Max Deriv Model L.R. d.f. P C Dxy
Gamma Tau-a R2 Brier
701 5e-07 34.49
2012 Nov 14
2
indexing for Wilcoxon test (take 2)
Hi everyone,
I've been asked to run a number of Wilcoxon tests on some behavioral data
(below is a sample). They want me to compare each trial to the first
trial, considered the control trial. I know I can use brackets to index and
select, for example, trial 1 vs. trial 4 (not exactly sure how to set that
up either) but it would save me a ton of time if there was a way to do all
the
2011 Jan 19
1
Using subset to filter data table
I am having difficulty understanding how I would constrain a data set by
filtering out 'records' based on certain criteria.
Using SQL I could query using 'select * from my.data where LithClass in
('sand', 'clay')' or some such.
Using subset, there seem to be ghosts left behind (that is, all of the
LithClass *.Labels* remain after subset)
> dput(tcc)
2012 Nov 14
1
indexing for Wilcoxon test
Hi everyone,
I've been asked to run a number of Wilcoxon tests on some behavioral data
(below is a sample). They want me to compare each trial to the first
trial, considered the control trial. I know I can use brackets to index and
select, for example, trial 1 vs. trial 4 (not exactly sure how to set that
up either) but it would save me a ton of time if there was a way to do all
the
2006 Nov 06
2
Fwd: How to grep and remove files
Hi All,
I want to know how to grep and delete (remove) files .
What I need is that there are some unwanted out going mails in the queue in
my Centos 4.4 Sendmail Server. I can find them with the below commad.
mailq /var/spool/mqueue/ |grep '<>'
Then It displays all the mails of that type withg their ids in the following
way.
[root at gateway ~]# mailq /var/spool/mqueue/ |grep
2008 Sep 10
2
Woring message in as.yearmon()
I have following dataset:
> res
[,1] [,2] [,3]
[1,] 1946 4 1.27
[2,] 1946 5 1.27
[3,] 1946 6 1.27
[4,] 1946 7 1.27
[5,] 1946 8 1.52
[6,] 1946 9 1.52
[7,] 1946 10 1.52
[8,] 1946 11 1.52
[9,] 1946 12 1.62
[10,] 1947 1 1.62
[11,] 1947 2 1.62
[12,] 1947 3 1.62
[13,] 1947 4 1.87
[14,] 1947 5 1.87
[15,] 1947 6 1.87
Now I write following code
2010 Feb 17
2
extract the data that match
Hi r-users,
I would like to extract the data that match. Attached is my data:
I'm interested in matchind the value in column 'intg' with value in column 'rand_no'
> cbind(z=z,intg=dd,rand_no = rr)
z intg rand_no
[1,] 0.00 0.000 0.001
[2,] 0.01 0.000 0.002
[3,] 0.02 0.000 0.002
[4,] 0.03 0.000 0.003
[5,] 0.04 0.000 0.003
[6,]
2000 Mar 07
1
update fails after specific sequence of steps (PR#474)
# 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@biostat.ku.dk
#
######################################################
I stumbled on this error while doing a classroom demonstration. The error is reproducible,
2006 Sep 26
2
treatment effect at specific time point within mixed effects model
All,
The code below is for a pseudo dataset of repeated measures on patients
where there is also a treatment factor called "drug". Time is treated
as categorical.
What code is necessary to test for a treatment effect at a single time
point,
e.g., time = 3? Does the answer matter if the design is a crossover
design,
i.e, each patient received drug and placebo?
Finally, what would
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",
2008 Jun 05
1
choosing an appropriate linear model
I am trying to model the observed leaching of wood preservative chemicals
from treated wood during an outdoor experiment where leaching is caused by
rainfall events. For each rainfall event, the amount of rainfall was
recorded as well as the amount of preservative chemical leached. A number
of climatic variables were measured, but the most important is the amount of
rainfall.
I have tried a
2005 Jun 13
2
x86_64 duplicate packages problem with apt
I installed Centos3.4-x86_64 and I notice that I get duplicate packages.
i.e. I also notice that the duplate packages exist on the cd install as
well.
[root at bayamo RPMS]# rpm -qa | grep pam_krb
pam_krb5-1.73-1
pam_krb5-1.73-1
when I use apt after downloading from Dag's site it complains about
duplicate packages after running apt-get update.
I am missing something to get my x86_64
2013 May 15
1
x and y lengths differ
I have a problem with R. I try to compute the confidence interval for my
df. When I want to create the plot I have this problem: Error in
xy.coords(x, y, xlabel, ylabel, log) : 'x' and 'y' lengths differ.
I try this code:
library(dplR)
df.rwi <- detrend(rwl = df, method = "Spline",nyrs=NULL)
write.table(df.rwi,file="rwi.txt",quote=FALSE,row.names=TRUE)
2009 May 21
2
PuppetShow undefined methods problems..
I get these stack traces after setting up puppetshow and browsing the
gui at http://site:3000/
http://pastebin.com/m459851f6
Any ideas? Im using 0.24.5 with rails 2.0.2 on a debian 5.0.1..
/flash
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Puppet Users" group.
To post to this group, send email to
2012 Jan 07
3
LUKS full disk Encryption question
From RHEL docs:
"The default implementation of LUKS in Red Hat Enterprise Linux is AES
128 with a SHA256 hashing. Ciphers that are available are:
AES - Advanced Encryption Standard - FIPS PUB 197
Twofish (A 128-bit Block Cipher)
Serpent
cast5 - RFC 2144
cast6 - RFC 2612"
My question is:
What will be the performance impact on my Celeron 1.73 GHz CPU and/or
hdd