Merry Chrismas to everyone,
I have came across a problem when I tried to install 'qvalue' package, which
depends on 'tcltk', in Centos 5.x, 64 bit. I compiled R 2.12.1(./configure
--enable-R-static-lib --with-x --enable-memory-profiling) and tcl/tk(8.5.9).
There is no warning message when I finish
Whenever a task calls for breaking a data object into pieces, operate on the
pieces, then put it back together, then think about using the plyr package.
Sent from my iPod
On Dec 24, 2010, at 6:58 AM, "Ali Salekfard" wrote:
> Hi all,
>
> I'm new to the list but have benfited from it quite ext
Hi,
Another option is to vectorize your function and have the theta()
function return the data frame. On my system, this approach was
roughly 10x faster than using your original function + for loop and
gave identical results. I also made a few other minor changes to your
code to make it easier f
Also, in case one was wondering, the output would look something like:
1900 1
1850 1
1800 1
1700 0
1700 1
1680 1
1600 0
1500 0
2000 1
2100 1
2150 1
1750 1
1550 1
...
On Fri, Dec 24, 2010 at 5:28 PM, Joseph Regan wrote:
> R-help group,
>
> I'm looking for some assistance on using an R-script t
R-help group,
I'm looking for some assistance on using an R-script to read STDIN from
hadoop.
Example, say I have two tables. One is a student table, the other is a class
roster table (tables join on student_id). Student SAT score is in the
student table, whether the student passed or not is in th
Hi Gabor,
Thanks very much for your reply. I was hoping to ask a follow-up question. Can
you explain why it's better to use transform than to use within? The main
difference between the two functions seems to be that within allows one to use
variables created in a step (e.g., A and B) to creat
Hi:
David explained the quoting issue well. My question is: what type of output
do you want from the function? Using David's fix, I get
learnfn <- function(data,column) {
print(data)
data[, column]
}
The idea is to leave the column unquoted in the body of the function and to
quote it in the func
David,
I must not have understood your suggestion. The code below does not work:
# create data frame
x<-1:10
y <- x+rnorm(10)
z <- 11:20
data <- data.frame(x,y,z)
data
learnfn <- function(data,column) {
print(data[[column]])
}
# work on the "x" column
learnfn(data,x)
work on the "y" column
l
On Dec 24, 2010, at 4:29 PM, John Sorkin wrote:
I am trying to learn more about how to write functions. I would like
to pass a data frame (or matrix) and depending on the parameters
passed to the function work with a given column of the data frame or
matrix. My function, learnfn is given
I am trying to learn more about how to write functions. I would like to pass a
data frame (or matrix) and depending on the parameters passed to the function
work with a given column of the data frame or matrix. My function, learnfn is
given below as are two calls to the function. The first call
Hi:
On Thu, Dec 23, 2010 at 4:37 PM, Tautz, Art ENV:EX wrote:
> Dear list
>
> I am sorry to have to ask this question, but I have not been able to
> find a solution to what seems a simple problem. I have created a
> lattice plot of
> a number of regression points and lines using a function cont
Hi:
One way to combine Jorge's and David's solutions is to visualize the data in
ggplot2 and/or lattice:
library(ggplot2)
x <- c(0.349763, 3.39489, 1.52249, 0.269066, 0.107872, 0.0451689,
0.590268, 0.275755, 0.751845, 1.00599, 0.652409, 2.80664, 0.0269933,
0.137307, 0.282939, 1.23008, 0.436429, 0
On Fri, Dec 24, 2010 at 3:11 PM, Paul Miller wrote:
> Hi Gabor,
>
> Thanks very much for your reply. I was hoping to ask a follow-up question.
> Can you explain why it's better to use transform than to use within? The
> main difference between the two functions seems to be that within allows one
We really can't help unless you give us a repeatable example of
what you've done.
Sarah
On Fri, Dec 24, 2010 at 2:21 PM, F wrote:
>
> I have a vector which is an interval on which I'm trying to calculate the
> values of the following function for a probability distribution:
>
> http://r.789695.n
I have a vector which is an interval on which I'm trying to calculate the
values of the following function for a probability distribution:
http://r.789695.n4.nabble.com/file/n3163464/Equation.jpg
I want to generate a k-size sample of values following the distribution
above.
For some reason, I'
Thank so much David !
--
View this message in context:
http://r.789695.n4.nabble.com/selection-of-outputs-from-the-function-tp3163361p3163421.html
Sent from the R help mailing list archive at Nabble.com.
__
R-help@r-project.org mailing list
https://st
Dear Sir/Madam
*CALL FOR PAPER JANUARY / FEBRUARY ISSUE*
Greetings from INTERNATIONAL JOURNAL OF COMPUTER TECHNOLOGY AND APPLICATIONS
(IJCTA)
IJCTA is an international, peer-reviewed online journal entitled to publish
original research articles in the fields of Computer science and Information
> with(YourDataFrame, tapply(`Effective Date`, `RULE COLUMNS`,
> function(x) x[which.max(x)]))
David pointed out that this will just return a table of dates. One
work around is:
do.call("rbind", by(DataFrame, DataFrame[, "RULE COLUMNS"],
function(x) x[which.max(x[, "Effective Date"]), ]))
bu
> -Original Message-
> From: r-help-boun...@r-project.org
> [mailto:r-help-boun...@r-project.org] On Behalf Of Ali Salekfard
> Sent: Friday, December 24, 2010 5:46 AM
> To: r-help@r-project.org
> Subject: [R] Removing rows with earlier dates
>
> Hi all,
>
> I'm new to the list but have b
On Dec 24, 2010, at 12:58 PM, David Winsemius wrote:
On Dec 24, 2010, at 11:56 AM, ufuk beyaztas wrote:
Hi Dear All,
This is a function which contains Covariance Ratio and Likelihood
Distance
values (CVRi, LDi). i want to compute the all row's values, that is
run this
function for nrow
On Dec 24, 2010, at 11:56 AM, ufuk beyaztas wrote:
Hi Dear All,
This is a function which contains Covariance Ratio and Likelihood
Distance
values (CVRi, LDi). i want to compute the all row's values, that is
run this
function for nrow(X) times. The X and Y matrices are;
X<-
matrix(c(1125
Hi Dear All,
This is a function which contains Covariance Ratio and Likelihood Distance
values (CVRi, LDi). i want to compute the all row's values, that is run this
function for nrow(X) times. The X and Y matrices are;
X<-matrix(c(1125,920,835,1000,1150,990,840,650,640,583,570,570,510,555,460,275
ggplot2
ggplot2 is a plotting system for R, based on the grammar of graphics,
which tries to take the good parts of base and lattice graphics and
avoid bad parts. It takes care of many of the fiddly details
that make plotting a hassle (l
Hi,
On Fri, Dec 24, 2010 at 5:45 AM, Ali Salekfard wrote:
[snip]
> I have a data frame that contains mapping rules in this way:
>
> ACCOUNT, RULE COLUMNS, Effective Date
>
>
> The dataframe comes from a database that stores all dates. What I would like
> to do is to create a data frame with only
Hi,
The read.csv.ffdf function in package ff will create the ff object
physical file in the default directories, I am trying to let the files
created in the paths users specify, I think the point is to make use
of the asffdf_args parameter,
I have a test CSV file named D:\rtemp\fftest.csv, the
On Dec 24, 2010, at 11:04 AM, David Winsemius wrote:
On Dec 24, 2010, at 8:45 AM, Ali Salekfard wrote:
Hi all,
I'm new to the list but have benfited from it quite extensively.
Straight to
my rather strange question:
I have a data frame that contains mapping rules in this way:
ACCOUNT,
On Dec 24, 2010, at 8:45 AM, Ali Salekfard wrote:
Hi all,
I'm new to the list but have benfited from it quite extensively.
Straight to
my rather strange question:
I have a data frame that contains mapping rules in this way:
ACCOUNT, RULE COLUMNS, Effective Date
The dataframe comes from
Seeing 'plot.Predict' makes me think you are using the Gls function in the
rms package. If so, you are not reading the package's documentation. Also
please follow the posting guide.
Frank
-
Frank Harrell
Department of Biostatistics, Vanderbilt University
--
View this message in context:
Dear R Gurus,
How do I generate/obtain the 95% CI of the predicted values from the
GLS model? "Not plot.Predict"
Currently I know how to get the 95% CI for the GLS model parameters.
Please advice
Regards
Peter
South Africa
Please Note: This email and its contents are subject to our
Hi all,
I'm new to the list but have benfited from it quite extensively. Straight to
my rather strange question:
I have a data frame that contains mapping rules in this way:
ACCOUNT, RULE COLUMNS, Effective Date
The dataframe comes from a database that stores all dates. What I would like
to do
30 matches
Mail list logo