All of this is syntactic sugar. Just because a language does not have
the sintax that you are used (e.g, Perl) does not make it bad/hard to
use. What is the problem if I have to type a couple of extra lines:
f - function(x) list(a = seq_along(x), b=x*3)
result - f(1)
r1 - result$a
r2 - result$b
i m searching on net,material related to R,
whenever i get ppt presentation of some topic ,i found it in speical format
white backgroud blue bars,having links for further topics
see link
1) https://www.rmetrics.org/files/Meielisalp2007/Presentations/Pfaff.pdf
Hi everyone.
Newbie to statistics.
I have 40 matrices of ~400 values. how may I determine whether the
distribution follows zips law?
response -sample (1:20,400*4, replace= TRUE)
Thank you vry much.
--
View this message in context:
Dear R People:
I'm trying to compile R-2.15.0 on a 64 bit Windows machine.
However, I'm getting the following error:
c:\R64\R-2.15.0\src\gnuwin32set TMPDIR=c:\temp
set TMPDIR=c:\temp
c:\R64\R-2.15.0\src\gnuwin32make all recommended
make all recommended
make[1]: `MkRules' is up to date.
It is the OPENMP switch. I changed it from -fopenmp to blank and all was well.
thanks,
Erin
On Sat, Mar 31, 2012 at 4:38 AM, Joshua Wiley jwiley.ps...@gmail.com wrote:
I may be putting my foot in my mouth, but I want to say that Rtools changed
at 2.15 from mingw to gcc. I would check that
I may be putting my foot in my mouth, but I want to say that Rtools changed at
2.15 from mingw to gcc. I would check that you have the most recent version of
Rtools installed, make sure you have the right directories in your path
environment variable (which also changed, I believe), and make
On 03/28/2012 01:49 PM, alan wrote:
I want to plot many points and want to use circles. The filling color
depends on variable a. if a=1, then not fill
if a=2 then fill with red, if a=3 then fill with blue, if a=4, fill
half with red and half with blue. Can anyone tell me how to plot the
case
Good old base R...
Thanks Michael for your rapid response.
--
Henrik Pärn
Centre for Conservation Biology
Department of Biology
Norwegian University of Science and Technology
NO-7491 Trondheim
NORWAY
Office: +47 735 96084
Mobile: +47 909 89 255
Fax: +47 735 96100
Hi,
It's not a standard format for R presentations, but you can certainly use it.
The blue and white style you referenced is one of the standard Beamer themes.
Those people are using LaTeX and Sweave to write their presentations.
You'd need to install LaTeX for your OS and do some reading,
Dear Friends,
I had performed anova test on certain data frame (Health Care
Management) and got results [summary(aov)]. I am new to R and also
some extent to Statistics. Can somebody help me how should I interpret
these figures. I feel difficulty in interpreting values and respective
rows and
i want aic value to find best model from AR ARMA model
i calculate ARMA model via autofit() function from itsmr package
when i get aic of AR model,then i will compare with ARMA's aicc value
is my way logically correct?
--
View this message in context:
sagarnikam123 sagarnikam123 at gmail.com writes:
i m searching on net,material related to R,
whenever i get ppt presentation of some topic ,i found it in speical format
white backgroud blue bars,having links for further topics
see link
1)
Hello,
btc1 wrote
Hey thanks, that worked. So you're right, I'd like to run it for multiple
values of i. As it's written, I'm doing it in a for loop, as
plotter-function(i,fram,framvec,obj,form1,form2){
temp.i-fram[framvec =(i*.10),]
plot(form1, data=temp.i, xlim=c(0,1500),
Hi all,
Can anybody debug the following programme, as I am getting some Junk graphs in
the pdf.
Please find the attached raw data file.
Thank you
Regards
Rayalu
library(ggplot2)
setwd(D:\\General Check list)
library(RODBC)
conn - odbcConnectExcel (Book1.xls)
Orange1 - sqlFetch (conn, Sheet3)
i have attached time series file
http://r.789695.n4.nabble.com/file/n4521545/1A1I_A_phi_psi_pot_r_k.txt
1A1I_A_phi_psi_pot_r_k.txt
i am not understanding formula() function,but what i read,from that
1 st method:-
t-read.table(file.choose()) #choosing attached file
lm-lm(t$V1~ 1) # i used
hi,
I use R - 2.15(32bit), and want to make a code to clear a console.
Actually, I used to run following code to do that but after update the
version of R from 2.14 to 2.15, it doesn't work.
cls - function (t) {
require(RDCOMClient)
wsh - COMCreate(Wscript.Shell)
Attachments don't come through on this list.
It would be helpful to know what you mean by junk graphs.
Your coding style is a little hard to follow as it is a mix of - and - but I
think you definitely have a problem in
for (i in refid)
which should probably be
for (i in 1:length(refid))
On 31.03.2012 15:03, Bryan Hanson wrote:
Attachments don't come through on this list.
It would be helpful to know what you mean by junk graphs.
Your coding style is a little hard to follow as it is a mix of - and- but I
think you definitely have a problem in
for (i in refid)
which
Hello all,
I need some help with extracting the feature-wise weights from the SVM
object that is the output of *ksvm* function in R (from *kernlab* package).
For instance, if I use the same data/example as the help page does, i.e.,
data(spam)
index - sample(1:dim(spam)[1])
spam.train -
The forward slashes are to escape quotes and the new lines. Here is
an example showing that when you output the file with 'cat' you
probably get the results you are expecting:
x - ({\total\:5,\results\:[\n {\n \id\: 1,\n\name\: \Monkey D
+ Luffy\,\n\position\: \Captain\,\n\ambition\: \I Will
On 30.03.2012 07:18, achernia wrote:
Balko, Justin wrote
Hi all, thanks for your help in advance.
I was running some scripts and suddenly R began taking a very long time to
process mundane errors, which I often generate since I am new to R...such
as forgetting to add in my quote
On Sat, Mar 31, 2012 at 8:09 AM, mrzung mrzun...@gmail.com wrote:
hi,
I use R - 2.15(32bit), and want to make a code to clear a console.
Actually, I used to run following code to do that but after update the
version of R from 2.14 to 2.15, it doesn't work.
cls - function (t) {
Hello,
Try
cls2 - function(lines=25) cat(rep(\n, lines))
cls2()
It's simpler, and doesn't need any special package.
(In my system, R 2.14.1/Windows 7, i386 or x64, '\f' didn't work.)
Hope this helps,
Rui Barradas
--
View this message in context:
Hi all,
I'm having a strange error that prevents me from installing new packages,
or updating packages after reinstalling. The error message is
Warning: unable to move temporary installation C:\Program
Files\R\R-2.14.2\library\file15045004ac2\sandwich to C:\Program
Hi,
I have a polynomial of 2n^2-5n+3 and I have my n values going up in powers of 2
i.e. n=2,4,8,16…..
I wanted to fit this curve to the function A*n*log2(n) +B*n where A and B are
to be found.
How would i do this?
Thank you
Jaymin
__
Will
cat(rep(\n,30))
do?
This does not remove any objects from the global environment. That requires ?rm
-- Bert
On Sat, Mar 31, 2012 at 5:09 AM, mrzung mrzun...@gmail.com wrote:
hi,
I use R - 2.15(32bit), and want to make a code to clear a console.
Actually, I used to run following
On Sat, Mar 31, 2012 at 9:53 AM, Rui Barradas rui1...@sapo.pt wrote:
Hello,
Try
cls2 - function(lines=25) cat(rep(\n, lines))
cls2()
It's simpler, and doesn't need any special package.
(In my system, R 2.14.1/Windows 7, i386 or x64, '\f' didn't work.)
This may or may not be important
On 30.03.2012 03:16, Xiaobo Gu wrote:
Hi,
I got a stack overflow error when training a glm model with a very long
formula.
I just tried with a formula of length 1000. How long was yours?
Which version of R? Where is the repdroducible example?
Uwe Ligges
Regards,
Xiaobo Gu
This sounds a little bit like homework (since you know the actual
model), so I'll just point you in the right direction:
I'd do something like:
n - 2^(1:10)
y - 2*n^2 - 5*n + 3
dtf - data.frame(y = y, n=n)
lm( **, data = dtf)
The * should be replaced by a formula object: to find
On 31.03.2012 16:15, Drew Tyre wrote:
Hi all,
I'm having a strange error that prevents me from installing new packages,
or updating packages after reinstalling. The error message is
Warning: unable to move temporary installation ‘C:\Program
Files\R\R-2.14.2\library\file15045004ac2\sandwich’ to
what is the problem you are trying to solve?
elegance, ease, and readability in my programs.
R has morphed from a data manipulation, graphics, and stats program
into my mainstay programming language. most of this has been a huge
gain. the addition of the parallel package was another recent big
Hello Baptiste,
What you've done is very interesting. Went through and tried to understand all
the steps. Reminded me of studying languages in years gone by. Always found it
easier to read and understand a sentence than to construct a sentence of one's
own. This is particularly true when
On Mar 31, 2012, at 4:52 AM, Kamakshaiah wrote:
Dear Friends,
I had performed anova test on certain data frame (Health Care
Management) and got results [summary(aov)]. I am new to R and also
some extent to Statistics. Can somebody help me how should I interpret
these figures. I feel
On 30.03.2012 05:48, mrzung wrote:
Hi,
I saved an image and planed to open it whenever I want to load it.
However, when I open it, It doesn't work.
The code is following, and saved it as an image.
.First-function(){
require(tcltk)
require(TeachingDemos)
On 29.03.2012 23:44, Steven R Corsi wrote:
Thanks for this feedback. I was able to get that example to work, but I
have gotten conflicting results with factors converted via POSIXct using
the format= and tz= options to bring in excel-type dates and times. Here
is what I have tried:
dt.factor-
On Mar 31, 2012, at 18:57 , David Winsemius wrote:
I some how got idea (after studying) about QR, but here how should I
interpret these values?
Trying to teach yourself statistics this way is a bit like smashing a watch
with a hammer and then trying to understand how it works by looking
On 2012-03-31 10:09, peter dalgaard wrote:
On Mar 31, 2012, at 18:57 , David Winsemius wrote:
I some how got idea (after studying) about QR, but here how should I
interpret these values?
Trying to teach yourself statistics this way is a bit like smashing a watch
with a hammer and then
-Original Message-
From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org]
On Behalf Of ali_protocol
Sent: Friday, March 30, 2012 11:04 PM
To: r-help@r-project.org
Subject: [R] A introductory question about Zips law (Newbie to statistics)
Hi everyone.
Newbie to
Dear list,
I would like to subset a large expression matrix based on rownames.
That is, I have a list (as a txt-file) with gene names that matches
some of the rows in my matrix.
I've loaded my matrix as well as gene list using the read.table() command.
myMatrix - read.table(name_of_file.txt,
I think you want:
index - row.names(myMatrix) %in% list_to_keep[,1]
This will give a boolean expression as long as the number of rows in
myMatrix; your original only had a list as long as list_to_keep
On Sat, Mar 31, 2012 at 12:26 PM, Peter Davidsen pkdavid...@gmail.com wrote:
Dear list,
I
a working solution to the problem,
a - DBquery[names(lookup)]
mother.of.lookup - list()
for(string in names(a)) {
a[[string]] - names(a[[string]])
mother.of.lookup[[string]] - setdiff(a[[string]], lookup[[string]])
}
identical(mother.of.lookup, result)
It might not be the most elegant
Hello
In matlab we havegradient(F,h) where h is a scalar uses h as the
spacing between points in each direction. Now I need to use this function
in R. and I dont know how can I should define my function that I haave h
in R?
thanks
[[alternative HTML version deleted]]
Hi,
Have you looked at:
?grad
in the numDeriv package? It works very similarly and there are examples.
Hope this helps,
Josh
On Sat, Mar 31, 2012 at 12:58 PM, mariam behboudi
mariam.behbo...@gmail.com wrote:
Hello
In matlab we have gradient(F,h) where h is a scalar uses h as the
Try this:
mapply('[', DBquery, mapply(setdiff, lapply(DBquery, names), lookup))
On Sat, Mar 31, 2012 at 5:50 PM, Eric Fail eric.f...@gmx.us wrote:
a working solution to the problem,
a - DBquery[names(lookup)]
mother.of.lookup - list()
for(string in names(a)) {
a[[string]] -
On Mar 31, 2012, at 3:58 PM, mariam behboudi wrote:
Hello
In matlab we havegradient(F,h) where h is a scalar uses h
as the
spacing between points in each direction. Now I need to use this
function
in R. and I dont know how can I should define my function that I
haave h
in R?
On Thu, Mar 29, 2012 at 4:28 AM, Eric Fail eric.f...@gmx.us wrote:
Dear R experts,
I've realized that it might not be possible to define a negative SELCET
statement in a SQL call so now I'm looking for the smoothest way to generate
a list of what I would like from my large database by first
On 01/04/12 06:22, Peter Ehlers wrote:
On 2012-03-31 10:09, peter dalgaard wrote:
On Mar 31, 2012, at 18:57 , David Winsemius wrote:
I some how got idea (after studying) about QR, but here how should I
interpret these values?
Trying to teach yourself statistics this way is a bit like
On 31/03/2012 10:38, Joshua Wiley wrote:
I may be putting my foot in my mouth, but I want to say that Rtools
changed at 2.15 from mingw to gcc. I would check that you have the
most recent version of Rtools installed, make sure you have the right
directories in your path environment variable
Burak Aydin burak235...@hotmail.com asked:
Lets say I know Pearson covariance matrix.
When I use rmvnorm to simulate 9 variables and then
dichotomize/categorize
them, I cant retrieve the population covariance matrix.
library(polycor)
sim1 - function(thresh=0.5, r=0.3) {
x -
Hi,
On 1 April 2012 03:41, Paul Miller pjmiller...@yahoo.com wrote:
Hello Baptiste,
What you've done is very interesting. Went through and tried to understand
all the steps. Reminded me of studying languages in years gone by. Always
found it easier to read and understand a sentence than to
Hello,
I am loading a DBF file into R via JGR and am having trouble creating small
multiple histograms on a date variable. Hist() handles the variable
correctly. But I've been unable to work with lattice or ggplot2 despite
trying format() and as.POSIXct(). Dates are in the format 2010-05-15 and
The following is an R run showing that it has read a
2000 point time series having two values at each time.
What is the simplest way to plot the data?
It seems like the whatever plot routine should be able to
make a rough utility plot from just the TS matrix.
Note that I am already using
Your explanation below has me more confused than before. Now it is
possible that it is just me, but it seems that if others understood it
then someone else would have given a better answer by now. Are you
restricting your categorical and binary variables to be binned
versions of underlying
53 matches
Mail list logo