Displaying 20 results from an estimated 700 matches similar to: "help with subset(), still original dataframe in tapply"
2006 Jan 21
3
help... why can''t Iuse data from two tables in the same view
I am new to Rails and Ruby, and to OO languages, and seem to be making a
very silly mistake somewhere here. Can anybody help?
I am trying to write an application which involves ''exercises'', each of
which consists of several ''templates''. This is based on MySQL tables
with these names. I have models and controllers, built with the Rails
Scaffold, for both
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,]
2001 Nov 27
0
lme on large data frames
Recently there was a question on using lme with large data sets. As an
experiment I fit a linear mixed-effects model to a data set with about
350,000 observations on 6 predictors, a numerical response, and a
single grouping factor.
The timings shown below were on a 1.2 GHz Athlon with 1 GB of PC133
memory and 2 GB of swap. The operating system is Debian 3.0
GNU/Linux. The kernel is 2.4.14.
2007 Jun 15
0
Need Help with Dendrogram and DataFrame Leaf names
I having problem with dendrogram leaf names when I read a tab delimited
file into dataframe;
I have a text file, tab delimited, using read.table into a data frame as
follows:
> test1<-read.table("c:\\R\\data\\Tremont4.txt", header=TRUE, sep="\t")
When I do this the "test1" data frame is picking up my first column
names as
part of the data and not the case
2011 Nov 29
5
Why Numeric Values Become Factors in Data Frame
I have a data frame with 1 factor, one date, and 37 numeric values:
str(waterchem)
'data.frame': 3525 obs. of 39 variables:
site : Factor w/ 64 levels "D-1","D-2","D-3",..: 1 1 1 1 1 ...
$ sampdate : Date, format: "2007-12-12" "2008-03-15" ...
$ CO3 : num 1 1 6.7 1 1 1 1 1 1 1 ...
$ HCO3 : num 231 228 118 246
2006 Feb 05
3
reading in a tricky computer program output
Hi R user
I need to read in some values from a computer program output.
I can't change the output format because the developer of the program
doesn't allow to change the format of output.
There are two formats.
First one looks like this
if I have 10 variables,
------------------------------------------------------------------------------------------------------
[ 1]
2007 Jun 13
2
Formatted Data File Question for Clustering -Quickie Project
I am trying to learn how to format Ascii data files for scan or read
into R.
Precisely for a quickie project, I found some code (at end of this
email) to do exactly what I need:
To cluster and graph a dendrogram from package (stats).
I am stuck on how to format a text file to run the script.
I looked at the dataset USArrests (which would be replaced by my data
and labels) using UltraEdit. That
2010 Jul 06
1
acf
Hi list,
I have the following code to compute the acf of a time series
acfresid <- acf(residfit), where residfit is the series
when I type acfresid at the prompt the follwoing is displayed
Autocorrelations of series ?residfit?, by lag
0.0000 0.0833 0.1667 0.2500 0.3333 0.4167 0.5000 0.5833 0.6667 0.7500 0.8333
1.000 -0.015 0.010 0.099 0.048 -0.014 -0.039 -0.019 0.040 0.018
2002 Apr 09
1
write.table
Hello,
When using write.table I am getting two variables pasted together (not
by choice). Has anyone else had this happen?
Specifically, I have the following:
d _ read.dta(paste('/montecarlo/forecast/off/',F,'.dta',sep=''))
write.table(d,file=paste('/montecarlo/forecast/off/csv/',F,'.csv',sep=''),
row.names=FALSE, col.names=FALSE,
2002 Apr 10
0
foreign/write.table
Hello,
When using write.table I am getting two variables pasted together (not
by choice). Has anyone else had this happen?
Specifically, I have the following on a RH7.2/R1.4 box:
d _ read.dta(paste('/montecarlo/forecast/off/',F,'.dta',sep=''))
write.table(d,file=paste('/montecarlo/forecast/off/csv/',F,'.csv',sep=''),
row.names=FALSE,
2003 Dec 18
1
help installing Design package OS-X
I'm wondering if someone has installed the Design library on OS-X.
I have the Developer tools installed (not the OS X SDK kit) but after
downloading the library via RAqua package manager I get the following
errors:
Installation of package Design had a non-zero exit status in :
install.packages(ui.pks, CRAN=
getOption(where), lib =
.libPath()[1]
or
> install.fom.file() npackage
>
2003 May 14
2
building mean/median over subgroups
Dear all,
I'm trying to solve the following problem, and hoping to get some
advise here from the group
I have a dataframe in which the same sample was measured more than
once on the same day. I would reorganize the dataframe to get a
single value (mean /median) for one day
Patient Day Sample Test
A 1 A 23
A 1 A 36
A 5 B 44
A 5 B 23
B 2 C 10
B 2 C 5
mean
Patient Day Sample Test.mean
A
2003 May 28
2
how to get a line plot before/after treatment
Dear R help-list reader,
I would like to generate a plot which compares to states in a patient
treatment, before and after. for this reason I have generated a vector
before<-c(1,30,23,40)
and
after<-c(20,10,20,60)
the first element in "before" corresponds to the first element in "after".
I would like and generate a dotplot with
before and after as x-scale, the elements
2013 Apr 16
1
assistant
Dear Sir/Ma,
I Adelabu.A.A, one of the R-users from Nigeria. When am running a coxph command the below error was generated, and have try some idea but not going through. kindly please assist:
> cox1 <- coxph(Surv(tmonth,status) ~ sex + age + marital + sumassure, X)
Warning message:
In fitter(X, Y, strats, offset, init, control, weights = weights, :
Ran out of iterations and did not
2011 Dec 05
1
finding interpolated values along an empirical parametric curve
Given the following data, I am plotting log.det ~ norm.beta, where the
points depend on a parameter, lambda
(but there is no functional form).
I want to find the (x,y) positions along this curve corresponding to two
special values of lambda
lambda.HKB <- 0.004275357
lambda.LW <- 0.03229531
and draw reference lines at ~ -45 degrees (or normal to the curve) thru
these points.
How can I do
2003 Oct 29
1
I have a problem with the log2 function
Dear R users,
according the help(log), the function
log2(x) should give the natural logarithm of x.
I expect in case of x=2 to to get 0.6931, however, R gives me 1 as a result.
Similar, logb(2,2) gives 1 again.
I'm wondering if I have missed something ?
Yours
Frank
--
Frank Mattes, MD e-mail: f.mattes at ucl.ac.uk
Department of Virology fax 0044(0)207 8302854
Royal Free Hospital
2006 Sep 21
4
Help installing terminal client for MV/Pick Systems DB
Hi-
I'm running Ubuntu 6.06 LTS. I have installed Wine version 9.9. This
is my first attempt with Wine so please be kind...
I have successfully gotten into Win Explorer and verified that the Wine
environment is working.
I'm trying to install a MVTerm client for our MVBase database ( A Pick
Systems variant at www.rainingdata.com). This particular application is
desirable because it
2003 Aug 15
2
help with Tukey Mean-Difference Plot
Dear R users,
I would appreciate for some advise how to generate a Tukey
Mean-Difference Plot with the tmd function part of the lattice
library. I have two test results (log transformed) which showing a
correlation on a scatterplot. However the correlation line is
parallel displaced depending on a clinical condition. I thought to a
Tukey Mean Difference Plot would show me the difference
2014 Dec 15
3
Replication sieve scripts.
Hi,
Robert Schetterer <rs at sys4.de> schrieb:
>[...]
>
>so suse people may upgrade to sieve pigeonhole latest, contact them via
>mail etc
>[...]
I sent a mail to one of the Maintainers (darix) and they updated only an hour
later - very nice guy.
After the following upgrade, the sieve-scripts are replicated - very
good.
Best regards
Hanns Mattes
2011 Aug 06
0
ridge regression - covariance matrices of ridge coefficients
For an application of ridge regression, I need to get the covariance
matrices of the estimated regression
coefficients in addition to the coefficients for all values of the ridge
contstant, lambda.
I've studied the code in MASS:::lm.ridge, but don't see how to do this
because the code is vectorized using
one svd calculation. The relevant lines from lm.ridge, using X, Y are: