Assign new row names?
Uwe Ligges
ychu066 wrote:
hi,
i delete row 65,70,75 in my data
data- data[-c(65,70,75),]
But i also want the order of the row to match up
eg:
67 11111111111111
1
68 1111111
Copied form the R-help messages' footer:
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
Uwe Ligges
Waverley @ Palo Alto wrote:
Hi,
I am using the function heatmap(stats) to draw a microarray
separent wrote:
In a loop, I compose the name of a csv file using paste, then read it (e.g.,
dataset1.csv, dataset2.csv, etc). The name of the dataframe assigned to the
imported csv is also composed with paste (e.g., dataset1, dataset2, etc.).
Now I want to perform operations on the dataframes
Dear R-users,
i try to recode a factor according to old levels
F - factor(sample(c(rep(A, 4), rep(B,2), rep(C,5
recode(F, levels(F)[c(1,3)]='X'; else='Y')
i tried to work with eval or expression around levels(F)[c(1,3)], but
nothing seems to work.
Many thanks if anyone could tell me
PE == Peter Ehlers ehl...@ucalgary.ca
on Mon, 16 Nov 2009 06:55:00 -0700 writes:
PE David Winsemius wrote:
On Nov 15, 2009, at 10:18 AM, rkevinbur...@charter.net wrote:
This is a very simple question but I couldn't form a site search
quesry that would return
Thank you for all the answers!
Kjetil,
I am not sure if we are talking about the same thing. I only have a two
dimensional normal distribution which leads to three dimensional data.
You mean with reject I should not do such a test?
My data files contain about 26 points which I can reduce
Hello dear R help group,
I would like to download the tRNA data on:
http://gtrnadb.ucsc.edu/download.html
And then import it into R.
Can anyone direct me as to how to do so?
Thanks,
Tal
--
My contact information:
Tal Galili
E-mail:
I often use a debug flag (set to TRUE) to turn on various debugging print
statements in my R scripts. I was thinking I should create a function
debugPrint(object,debugFlag),
to print out the object name and contents if the debugFlag is set to TRUE.
Then I wouldn't have to make my script
Dear Rexperts,
Given,
aar -function(command) {
switch(command,
{scrn = cat(scrn :Screening,\n)}
{dx = cat(dx:Diagnosis,\n)}
{df = cat(df:Don't Forget,\n)}
)
}
I want to be able to do:
aar(dx) # function does cat(dx:Diagnosis,\n)
aar(c(dx,df)) # function does cat(dx
Hi,
ggplot2 can also split the graphs in different panels,
d=
read.table(textConnection(
chr start1 end1 meth positive
1 1 10 20 1.5y
2 2 12 18 -0.7n
3 3 22 34 2.0y
4 1 35 70 3.0y
5 1120 140 -1.3n
6 1180 190
Hi
r-help-boun...@r-project.org napsal dne 18.11.2009 09:24:40:
Dear R-users,
i try to recode a factor according to old levels
F - factor(sample(c(rep(A, 4), rep(B,2), rep(C,5
recode(F, levels(F)[c(1,3)]='X'; else='Y')
i tried to work with eval or expression around
Andreas Wittmann wrote:
Dear R-users,
i try to recode a factor according to old levels
F - factor(sample(c(rep(A, 4), rep(B,2), rep(C,5
recode(F, levels(F)[c(1,3)]='X'; else='Y')
i tried to work with eval or expression around levels(F)[c(1,3)], but
nothing seems to work.
I assume
I think you just missed some commas out...
aar -
function(command = c(scrn, dx, df))
{
command - match.arg(command)
switch(command,
scrn = cat(scrn :Screening,\n),
dx = cat(dx:Diagnosis,\n),
df = cat(df:Don't Forget,\n)
)
}
Colin.
Ps you don't need the curly
If you want type twice commands in function aar, you could try this:
aar -function(command) {
switch(command,
scrn = cat(scrn :Screening,\n),
dx = cat(dx:Diagnosis,\n),
df = cat(df:Don't Forget,\n))
}
invisible(Vectorize(aar)(c('dx', 'df')))
On Wed,
And if you want to do both do
invisible( lapply(c(scrn,dx), aar) )
but I think you will have to use multiple ifs rather than switch if you
intend to add more functionality...
.
.
.
I think you just missed some commas out...
aar -
function(command = c(scrn, dx, df)) {
command -
Try this:
debugPrint - function(x, ...){
print(sprintf(%s: %d, deparse(substitute(x)), x), ...)
}
On Wed, Nov 18, 2009 at 8:35 AM, Andrew nodeco...@yahoo.com wrote:
I often use a debug flag (set to TRUE) to turn on various debugging print
statements in my R scripts. I was thinking I
Thank you,
it is what I was looking for:
library(fitdistrplus)
x-rlnorm(100)
res-mledist(x, distr=lnorm)
res
Anyway, the results do not provide confidence intervals, but mle estimates
and the hessian matrix, whose extradiagonal elements are null... is it
correct?
Dear list
This is much like a linux problem, but I can't find any reference for
it. My OS is ubuntu 9.04 and a version of 2.9.2 of R has been already
installed in. Now, I need to install the version of 2.7.1. I google a
lot of websites and it seems like without a painless way provided me
Sorry, probbaly it is...:blush:
Krusty the Klown wrote:
Anyway, the results do not provide confidence intervals, but mle estimates
and the hessian matrix, whose extradiagonal elements are null... is it
correct?
http://www.weibull.com/LifeDataWeb/confidence_bounds_log.htm
I believe that is what you want:
aar -function(command) {
for(i in command){
cat(i,:,switch(EXPR=i,
scrn = Screening,
dx = Diagnosis,
df = Don't Forget),
\n)
}
}
aar(c(dx,df))
dx : Diagnosis
df : Don't Forget
Alain
oscar linares wrote:
On Wed, Nov 18, 2009 at 4:14 AM, Tim Smith tim_smith_...@yahoo.com wrote:
Hi,
I was trying to get a graph in lattice with the following data frame (7 rows,
5 cols):
chr start1 end1 meth positive
1 1 10 20 1.5 y
2 2 12 18 -0.7 n
3 3 22 34 2.0
On Tue, Nov 17, 2009 at 3:31 PM, Wilberforce
will.pa...@matrixknowledge.com wrote:
I have a data frame with two factors and want to create panel barcharts with
one factor defining the panels and the other the vertical categories by
which I can count the rows of data in each combination of
On Mon, Nov 16, 2009 at 9:47 PM, wintere ericawint...@gmail.com wrote:
Hi,
I am trying to plot two types of data on the same graph: points and
distributions. I am attempting to use the panel.groups function, but cannot
seem to get it to work. I have a melted data set and put in a FLAG column
Hi,
I have simple query
In which package drawBoxplot function is available?
Regards,
Sukhbir Singh Rattan
[[alternative HTML version deleted]]
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read
Dear list,
I'm seeking advice to extract some numeric values from a log file
created by an external program. Consider the following example,
input -
readLines(textConnection(
some text
ax =1.3770E-03 bx =3.4644E-07
ay =1.9412E-04 by =4.8840E-08
other text
aax =
I believe
drawBoxplot doesn't exist.
Are you looking for
?boxplot
?
Tal
--
My contact information:
Tal Galili
E-mail: tal.gal...@gmail.com
Phone number: 972-52-7275845
FaceBook: Tal Galili
My Blogs:
http://www.talgalili.com (Web and general,
Change the factor names of var in:
y~x | var
Tal
--
My contact information:
Tal Galili
E-mail: tal.gal...@gmail.com
Phone number: 972-52-7275845
FaceBook: Tal Galili
My Blogs:
http://www.talgalili.com (Web and general, Hebrew)
I am trying to reduce the dimension of matrix by removing zero elements and
creating a sub-matrix.
For example:
A= [1,0,0,3; 0,1,2,0; 0,0,3,5]
then the new matrix B would be:
B= [1,3;1,2;3,5]
There are the same number of zero elements in each row of A so dimension of B
will not be a
one way is the following:
A - rbind(c(1,0,0,3), c(0,1,2,0), c(0,0,3,5))
t(apply(A, 1, function (x) x[x != 0]))
I hope it helps.
Best,
Dimitris
lloyd barcza wrote:
I am trying to reduce the dimension of matrix by removing zero elements and
creating a sub-matrix.
For example:
A= [1,0,0,3;
Try this:
strapply(input, ([0-9]+\\.[0-9]+E-[0-9]+), c, simplify = rbind,
combine = as.numeric)
On Wed, Nov 18, 2009 at 9:57 AM, baptiste auguie
baptiste.aug...@googlemail.com wrote:
Dear list,
I'm seeking advice to extract some numeric values from a log file
created by an external program.
Hi
I am running a Savitzky-Golay smoothing filter
(http://tolstoy.newcastle.edu.au/R/help/04/02/0385.html) for variables
in my dataset, dim (272:90). I managed to run the code for individual
variables in the dataset and then combine the results into a single
dataset. My novice attempt at this
?write.table
If you read the help file, and do a little experimenting, you will see
that there is a parameter 'rownames=FALSE' that may answer your
question.
Also since you did not have column names on your input, you get V1,
V2,... You can put your own column names. It helps again to read the
Thanx
but I am not able to find a graph that wud suit my data
Regards
Our Thoughts have the Power to Change our Destiny.
Sunita
On Sun, Nov 15, 2009 at 8:54 PM, milton ruser milton.ru...@gmail.comwrote:
Google R graph grallery
Google R ggplot2
Google R lattice
and good luck
milton
On
A minor variant might be the following:
library(gsubfn)
strapply(input, \\d+\\.\\d+E[-+]?\\d+, as.numeric, simplify = rbind)
where:
- as.numeric is used in place of c in which case we do not need combine
- \\d+ matches one or more digits
- \\. matches a decimal point
- [-+]? matches -, +
readFASTA in the BioConductor Biostrings package.
b
On Nov 18, 2009, at 8:14 AM, Tal Galili wrote:
Hello dear R help group,
I would like to download the tRNA data on:
http://gtrnadb.ucsc.edu/download.html
And then import it into R.
Can anyone direct me as to how to do so?
Thanks,
Tal
Hi Charlie,
Yes, you are perfectly right, when I make the clusters I should put 2, not
10 (it remained 10 from previous trials with 10 slaves).
cl- makeCluster(2, type=SOCK )
To tell the truth I do not understand very well what the 2nd parameter for
clusterApplyLB() has to be.
If the
Hello,
today I upgraded R to 2.10 and Tinn-R to 2.3.3.1.
Tinn-R needs the package svIO, but it is not available anymore on the
package lists.
Every session I start R and chose the CRAN-Mirror I receive the following
warning:
Bitte einen CRAN Spiegel für diese Sitzung auswählen ---
Warnmeldung:
Dear useRs,
I'd like to plot a confidence interval on a periodogram. My problem is
that spec.pgram(sunspots,ci=0.95,log=yes) gives me a blue error bar on
the plot, but spec.pgram(sunspots,ci=0.95,log=no) does not. My
questions are:
1. how should I plot the confidence interval with log=no?
2.
Dear list
I have two datasets, one with a large number of point coordinates, the other
with spatial polygons. I want to measure
the shortest distance from each point to the border of all polygons, and
then store the results as a column in a data frame.
(Or a vector that can be turned into a column
Thanks for the Rxpert advice! I am up and running again...
Oscar
On Wed, Nov 18, 2009 at 5:57 AM, Colin Millar c.mil...@marlab.ac.uk wrote:
I think you just missed some commas out...
aar -
function(command = c(scrn, dx, df))
{
command - match.arg(command)
switch(command,
scrn =
Thanks a lot, both of you.
Incidentally, I made R crash when I forgot the X argument to strapply,
library(gsubfn)
Loading required package: tcltk
Loading Tcl/Tk interface ... done
strapply(test, as.numeric)
*** caught bus error ***
address 0x13c, cause 'non-existent physical address'
I would start with
?boxplot
--
My contact information:
Tal Galili
E-mail: tal.gal...@gmail.com
Phone number: 972-52-7275845
FaceBook: Tal Galili
My Blogs:
http://www.talgalili.com (Web and general, Hebrew)
http://www.biostatistics.co.il (Statistics,
Hello,
All sv packages are undergoing a major revision that makes them
incompatible for some functions with the previous ones (among them,
functions that were used by Tinn-R. However, Tinn-R is now supposed to
use its own TinnR packages that uses its own version of the old
functions, so
On Wed, 18 Nov 2009 04:18:08 -0800 (PST) lloyd barcza
floyd...@yahoo.com wrote:
I am trying to reduce the dimension of matrix by removing
zero elements and creating a sub-matrix.
For example:
A= [1,0,0,3; 0,1,2,0; 0,0,3,5]
then the new matrix B would be:
B= [1,3;1,2;3,5]
There
Hi Tal,
Tal Galili wrote:
Hello dear R help group,
I would like to download the tRNA data on:
http://gtrnadb.ucsc.edu/download.html
And then import it into R.
Can anyone direct me as to how to do so?
You probably want the readFASTA() function in Biostrings, which is part
of Bioconductor.
Dear R users,
i try to use function dmvnorm(x, mean, sigma, log=FALSE)
from R package mvtnorm to calculate the probability of x
under the multivariate normal distribution with mean equal
to mean and covariance matrix sigma.
I become the following
Error in solve.default(cov, ...) :
system is
Hi,
I try to calculate the correlation between macroeconomic data from
FRED vs Market Data
However, since the timeseries are not in synch, the correlation fails.
require(quantmod)
USPBS =get(getSymbols(USPBS, src=FRED ))
USPBS = USPBS['1983-1-1::']
monDMANEMP = Cl(to.monthly(USPBS))
Hi Erwin,
Thank you for the information about Cplex. It seems quite impressive. Is
it a proprietary software? I saw that there is a Matlab interface to it.
Is there an R interface?
Thanks,
Ravi.
---
Ravi
A warm thank you to both James and Benilton.
James, I will go on that list and start looking around.
Best,
Tal
--
My contact information:
Tal Galili
E-mail: tal.gal...@gmail.com
Phone number: 972-52-7275845
FaceBook: Tal Galili
My Blogs:
I cannot really be sure what you are trying to do, but doing a bit of
surgery on your code lets it run on a multicore Mac:
library(e1071)
library(snow)
library(pls)
data(gasoline)
X=gasoline$NIR
Y=gasoline$octane
NR=10
cost1=seq(0.5,30, length=NR)
sv.lin- function(c) {
for (i in 1:NR) {
I just saw that Cplex is a commercial software from ILOG/IBM, and that there
is an R interface, Rcplex, for it. While this is bad news, it is still
encouraging to know that the LSAP problem can be solved faster. I will keep
looking for better/faster open source algorithms.
Ravi.
It means that your covariance matrix sigma is numerically singular.
Ravi.
---
Ravi Varadhan, Ph.D.
Assistant Professor, The Center on Aging and Health
Division of Geriatric Medicine and Gerontology
Johns Hopkins
Hi, R Users
When I use the default package lattice, I found a problem about adjusting
the Figure Margin that can be changed by par(mai or mar) in traditional
plots.
So it's hard for me to add top and right axis.
Any suggestions will be appreciated.
--
Wenjun
[[alternative HTML version
Dear R-Help Members,
I am trying to read and analyse a set of 100 csv files.
I need work only on some columns in each of those, so I decided to use
a for loop, isolate the
column in each file to work on, but then an error mesage appear:
undefined columns selected
Here is my code:
Yes I tried all the basic ones like box plot, pie chart, etc but the data
representation isnt that clear.
Regards
Our Thoughts have the Power to Change our Destiny.
Sunita
On Wed, Nov 18, 2009 at 7:20 PM, Tal Galili tal.gal...@gmail.com wrote:
I would start with
?boxplot
Hello, I found a solution to the problem, quite easy. The R paste was on
read-only, so I went to the properties/security. Apparently he considers me
as a user and not an administrator when I open the files so I just gave the
users ( me) the authorization to modificate and it worked.
anna_l
Achim Zeileis wrote:
On Fri, 13 Nov 2009, Michael Friendly wrote:
Alternatively, is there a way to generate .png graphs from the .Rnw
file so that those are used in building
the .pdf for the package? AFAICS, \SweaveOpts{} offers only the
choices of eps/pdf = {TRUE/FALSE}.
Yes, but you can
Ravi:
Cplex use to be an independent firm. Was acquired by Ilog which was acquired by
IBM.
It has a nice callable API which is written in C++. It is a very good product.
The other optimizer you might want to look at that performs fast is FortMP
which might
provide source code also. I last
Hi
r-help-boun...@r-project.org napsal dne 18.11.2009 16:01:27:
Yes I tried all the basic ones like box plot, pie chart, etc but the
data
representation isnt that clear.
I agree with Tal. But it partly depends on your data. If you have many
levels and only few time values in each boxplot
On Wed, 18 Nov 2009, Michael Friendly wrote:
Achim Zeileis wrote:
On Fri, 13 Nov 2009, Michael Friendly wrote:
Alternatively, is there a way to generate .png graphs from the .Rnw file
so that those are used in building
the .pdf for the package? AFAICS, \SweaveOpts{} offers only the choices
Hi, I have some code that uses rJava. One of the Java side methods returns a
byte[] representing the bytes from a PNG image.
What I'd like to do is to be able to bring up the PNG on the R side (I can
bring up a Swing window to show the PNG but I want to avoid that). I have
looked at the pixmap
I have been using R just very recently, I have gone through this
http://addictedtor.free.fr/graphiques/
a few weeks back but I am not able to understand as to how to choose the
graph amongst them? Can anyone guide me regarding this?
Thanks in advance
Regards
Our Thoughts have the Power to Change
See also:
http://yetanothermathprogrammingconsultant.blogspot.com/2009/11/assignment-problem.html
http://yetanothermathprogrammingconsultant.blogspot.com/2009/11/assignment-problem.html
Erwin Kalvelagen
Amsterdam Optimization
Hello everybody, I´ve been looking for a function that would create an excel
file in my working directory where I would write my dataframe but I only
found the functions to write or read in an existing file that you gave me on
my former post or on some websites. I can´t find either functions to
yes in my data the 1st column is the main category say suppose Secretary
the second column is the sub category HR Dept the 3rd column is the list
of duties performed by the Secretary from HR dept and 4th column is time
required to perform the duty
so there are many such posts and dept with varied
Hi Charlie, I´ve been trying to use the sqlSave the way you showed me but it
would give me this error message which I couldn´t solve:
Erro em sqlSave(xlsFile, strategy, tablename = Result, rownames = FALSE) :
table ‘Result’ already exists
I would like to save the data frame in a specified
Dear r-helpers,
I want to test groups of samples for significant differences.
Question: Does Group1 differ significantly from group2.
This is a question to be answered by mann-whitney-u-test.
I know that I can use wilcox.test with 2 samples.
My problem: How can r perform the test automatically
Yes I tried all the basic ones like box plot, pie chart, etc but the data
representation isnt that clear.
Given that you have neither provided your data, nor explained what you
are trying to uncover from it, what sort of advice do you expect to
get?
Hadley
--
http://had.co.nz/
Thanks. This is now fixed in the development version so that it gives
an error rather than crashing:
library(gsubfn)
Loading required package: proto
Loading required package: tcltk
Loading Tcl/Tk interface ... done
source(http://gsubfn.googlecode.com/svn/trunk/R/gsubfn.R;)
strapply(test,
Hello Sir
I had given a sample of my data, As I cannot disclose whole of my data this
is just a sample given
1st column: Posts (GM, Secretary, AM, Office Boy)
2nd Column: Dept (Finance, HR, ...)
3rd column: Tasks (Open the door, Fix an appointment, Fill the register,
etc.) depending on the
Try the RDCOMClient [1] package.
[1]http://www.omegahat.org/RDCOMClient/
On Wed, Nov 18, 2009 at 1:31 PM, anna_l lippelann...@hotmail.com wrote:
Hello everybody, I´ve been looking for a function that would create an excel
file in my working directory where I would write my dataframe but I
Michela Leonardi wrote:
Dear R-Help Members,
I am trying to read and analyse a set of 100 csv files.
I need work only on some columns in each of those, so I decided to use
a for loop, isolate the
column in each file to work on, but then an error mesage appear:
undefined columns selected
Here
That is not enough information for anyone to suggest a useful plot.
For a start:
* How many observations do you have?
* How many difference posts/departments/tasks?
* Are the variables nested or crossed?
* Have you successfully parsed the time representation into something
R can work with?
Hi,
(Sorry, I didn't cc the r-help list)
On Nov 18, 2009, at 10:22 AM, Sunita Patil wrote:
I have been using R just very recently, I have gone through this
http://addictedtor.free.fr/graphiques/
a few weeks back but I am not able to understand as to how to choose
the
graph amongst them?
Sorry Charlie, I didn´t understand that tablename=R Results was creating a
worksheet. But the thing now is that it works very well when I write for the
first time on the excel file but when I want to rewrite on it it gives the
error i wrote before saying that Results already exists, is there a
Hi (again),
On Nov 18, 2009, at 10:53 AM, Sunita Patil wrote:
Hello Sir
I had given a sample of my data, As I cannot disclose whole of my
data this
is just a sample given
1st column: Posts (GM, Secretary, AM, Office Boy)
2nd Column: Dept (Finance, HR, ...)
3rd column: Tasks (Open the
Hello Sir
I have got 150 observations, got 10 posts/ 6 departments/ tasks vary from 5
to 10,
A few of the variables are crossed specially in case of Office boy, where
the tasks are like open the door, put on the lights,
Yes time variable I have used Chron package, so that it works well
My aim
Kim Vanselow wrote:
Dear r-helpers,
I want to test groups of samples for significant differences.
Question: Does Group1 differ significantly from group2.
This is a question to be answered by mann-whitney-u-test.
I know that I can use wilcox.test with 2 samples.
My problem: How can r perform
Sorry, correction below.
Peter Ehlers wrote:
Kim Vanselow wrote:
Dear r-helpers,
I want to test groups of samples for significant differences.
Question: Does Group1 differ significantly from group2.
This is a question to be answered by mann-whitney-u-test.
I know that I can use wilcox.test
Dear list
This is much like a linux problem, but I can't find any
reference for it. My OS is ubuntu 9.04 and a version of 2.9.2 of R has
been already installed in. Now, I need to install the version of 2.7.1.
I google a lot of websites and it seems like without a painless way
provided me
On Wed, 18 Nov 2009 08:02:47 -0800 (PST) anna_l lippelanna21
@hotmail.com wrote:
Sorry Charlie, I didn?t understand that tablename=R Results was creating a
worksheet. But the thing now is that it works very well when I write for the
first time on the excel file but when I want to rewrite on it
On Tue, Nov 17, 2009 at 6:01 PM, raluca uca...@hotmail.com wrote:
Hello,
Is the first time I am using SNOW package and I am trying to tune the cost
parameter for a linear SVM, where the cost (variable cost1) takes 10 values
between 0.5 and 30.
I have a large dataset and a pc which is not
How can I determine what S3 method will be called for a particular
first-argument class?
I was imagining something like functionDispatch('str','numeric') =
utils:::str.default , but I can't find anything like this.
For that matter, I was wondering if anyone had written a version of
`methods`
The previous elegant solutions required the use of the gsubfn package.
Nothing wrong with that, of course, but I'm always curious whether still
relatively simple base R solutions can be found, as they are often (but not
always!) much faster. And anyway, it seems to be in the spirit of your query
Thanks Karl, well I am getting an error now after the following sqlSave
command:
sqlSave( xlsFile, datas, tablename = 'Datas_and_coefficients', rownames =
FALSE )
-- [RODBC] Failed exec in Update
22018 39 [Microsoft][Driver ODBC for Excel]invalid character value for the
diffusion specification
Peter Ehlers wrote:
Sorry, correction below.
Peter Ehlers wrote:
Kim Vanselow wrote:
Dear r-helpers,
I want to test groups of samples for significant differences.
Question: Does Group1 differ significantly from group2.
This is a question to be answered by mann-whitney-u-test.
I know that I
I am somewhat new to R although using and liking already. I am curious if
there are any probabilistic packages similar in function to others such and
Link King (http://www.the-link-king.com/). I am looking for functions in SSN,
First/Last name, date of birth, and a couple other indicators for
Hello I need to know how to put a closed frame around my plot. I am plotting
using the igraph package, and I have been able to use box() with limited
success. Box() puts a border around only the upper and right edges of the
plot area, but misses the axes. By default, setting the axes=TRUE in
Hi all.
I would like to understand what are the units defined on the y-axis
when you plot the one-dimensional predictions (histograms) from lda()
(MASS) discriminant function objects?
While the helpfile suggests that a histogram is returned by default,
the presumably proportion-like values for
Hi,
Thanks for the alternative approach. However, I should have made my
example more complete in that other lines may also have numeric
values, which I'm not interested in. Below is an updated problem, with
my current solution,
tc - textConnection(
some text
ax =1.3770E-03 bx =
Why don't try the fabulous WRITEXLS package?
Caveman
On Wed, Nov 18, 2009 at 7:45 PM, anna_l lippelann...@hotmail.com wrote:
Thanks Karl, well I am getting an error now after the following sqlSave
command:
sqlSave( xlsFile, datas, tablename = 'Datas_and_coefficients', rownames =
FALSE )
It only works if some text at the beginning has no digits, dots, E
characters or sign characters.
On Wed, Nov 18, 2009 at 12:44 PM, Bert Gunter gunter.ber...@gene.com wrote:
The previous elegant solutions required the use of the gsubfn package.
Nothing wrong with that, of course, but I'm always
Here is a slight variation:
read.table(textConnection(grep(aa?[xy], input, value = TRUE)),
+colClasses = c(NULL, NULL, numeric))
V3 V6
1 0.00137700 3.4644e-07
2 0.00019412 4.8840e-08
3 0.00137700 3.4644e-07
4 0.00019412 4.8840e-08
On Wed, Nov 18, 2009 at 1:54 PM,
How do you perform a multicollinearity test using R. Also how do you perform
a selection stepwise to carry out a multiple regression analysis?
[[alternative HTML version deleted]]
__
R-help@r-project.org mailing list
I'm wondering how to choose an appropriate linear model for a given
problem. I have been reading Applied Linear Regression Models by John
Neter, Michael H Kutner, William Wasserman and Christopher J.
Nachtsheim. I'm still not clear how to choose an appropriate linear
model.
For multi-factor
http://www.lmgtfy.com/?q=multicollinearity+test+using+R
http://www.lmgtfy.com/?q=selection+stepwise+multiple+regression+analysis+using+R
Moritz
Karen Federico schrieb:
How do you perform a multicollinearity test using R. Also how do you perform
a selection stepwise to carry out a multiple
Dear R users,
I want to draw standard error lines for the predicted regression line
estimated by logistic regression using lmer. I have two predictors: cafr and
its quadratic form I(cafr^2), where cafr is a variable centered around the
mean of original variable. Now, the estimated value from the
I have several hundred Excel 2007 data files in a folder. I would like to
read every file in a single given folder using a loop.
I have searched the FAQ, the forum archives here, other or older R boards
and the R Import / Export documentation, and have asked some very
knowledgeable R users
Hello Peng,
What you are talking about is model selection process.
Although it also sound like you are referring to the more general subject of
regression model strategies, consider finding this book:
http://www.amazon.com/Regression-Modeling-Strategies-Frank-Harrell/dp/0387952322
Frank Harrell
another useful trick that could come in handy, thanks!
baptiste
2009/11/18 Gabor Grothendieck ggrothendi...@gmail.com:
Here is a slight variation:
read.table(textConnection(grep(aa?[xy], input, value = TRUE)),
+ colClasses = c(NULL, NULL, numeric))
V3 V6
1 0.00137700
1 - 100 of 160 matches
Mail list logo