Yes, now I see.
It's ridiculous that I haven't noticed this elementary error, which I know
of for over 10 years. :)
Now my problem, it's another question.
Here is the code and data, as requested.
Sample data, I've copied a part of text file:
Charge Strobe [1]
Charge FC [2]
Charge SG
Hi all.
What is "print print print"?
I don't see output of the print command in for loop and have found this
link:
http://stackoverflow.com/questions/1816200/chisq-test-doesnt-print-results-when-in-a-loop
It describes a problem, similar to mine.
My problem. I want to execute print command in fo
I was sending my messages through Nabble, while it has went down for
maintenance.
--
View this message in context:
http://old.nabble.com/Sorry-for-repeated-posts.-tp26525299p26525299.html
Sent from the R help mailing list archive at Nabble.com.
__
R-h
Hi all.
It's been a long time since I wrote to this list. Glad to see the R project
well and working.
I am working with a 3D plot similar to this:
http://old.nabble.com/file/p26525270/rgl-device.png rgl-device.png
The underlying picture is a JPEG image, loaded with the rimage package and
co
Hi all.
It's been a long time since I wrote to this list. Glad to see the R project
well and working.
I am working with a 3D plot similar to this:
http://old.nabble.com/file/p26525271/rgl-device.png rgl-device.png
The underlying picture is a JPEG image, loaded with the rimage package and
co
Hi all.
It's been a long time since I wrote to this list. Glad to see the R project
well and working.
I am working with a 3D plot similar to this:
http://old.nabble.com/file/p26525266/rgl-device.png rgl-device.png
The underlying picture is a JPEG image, loaded with the rimage package and
co
Hi all.
It's been a long time since I wrote to this list. Glad to see the R project
well and working.
I am working with a 3D plot similar to this:
http://old.nabble.com/file/p26525264/rgl-device.png rgl-device.png
The underlying picture is a JPEG image, loaded with the rimage package and
co
Hi all.
It's been a long time since I wrote to this list. Glad to see the R project
well and working.
I am working with a 3D plot similar to this:
http://old.nabble.com/file/p26525268/rgl-device.png rgl-device.png
The underlying picture is a JPEG image, loaded with the rimage package and
co
Hi all.
It's been a long time since I wrote to this list. Glad to see the R project
well and working.
I am working with a 3D plot similar to this:
http://old.nabble.com/file/p26525260/rgl-device.png rgl-device.png
The underlying picture is a JPEG image, loaded with the rimage package and
co
Hi all.
It's been a long time since I wrote to this list. Glad to see the R project
well and working.
I am working with a 3D plot similar to this:
http://old.nabble.com/file/p26525261/rgl-device.png rgl-device.png
The underlying picture is a JPEG image, loaded with the rimage package and
co
Hi all.
It's been a long time since I wrote to this list. Glad to see the R project
well and working.
I am working with a 3D plot similar to this:
http://old.nabble.com/file/p26525269/rgl-device.png rgl-device.png
The underlying picture is a JPEG image, loaded with the rimage package and
co
Hi all.
It's been a long time since I wrote to this list. Glad to see the R project
well and working.
I am working with a 3D plot similar to this:
http://old.nabble.com/file/p26525263/rgl-device.png rgl-device.png
The underlying picture is a JPEG image, loaded with the rimage package and
co
Hi all.
It's been a long time since I wrote to this list. Glad to see the R project
well and working.
I am working with a 3D plot similar to this:
http://old.nabble.com/file/p26525259/rgl-device.png rgl-device.png
The underlying picture is a JPEG image, loaded with the rimage package and
co
Hi all.
It's been a long time since I wrote to this list. Glad to see the R project
well and working.
I am working with a 3D plot similar to this:
http://old.nabble.com/file/p26525258/rgl-device.png rgl-device.png
The underlying picture is a JPEG image, loaded with the rimage package and
co
Hi all.
It's been a long time since I wrote to this list. Glad to see the R project
well and working.
I am working with a 3D plot similar to this:
http://old.nabble.com/file/p26525177/rgl-device.png rgl-device.png
The underlying picture is a JPEG image, loaded with the rimage package and
coer
Schmitt, Corinna wrote:
>
> as I see there is a new version for R available. Can anyone tell me how
> I can update my version 2.5.0 under Windows? The last times I just
> uninstalled the old version and installed the new one. Afterwards I had
> to install also all needed packages again. All in a
Sergio Correia wrote:
>
> (Before starting: I'm a total R noob so please bear with me in case of
> any error or faux pas).
>
> Hi,
>
> For a small project, I'm writing a few simple R functions and calling
> them from python (using RPy). I'm sharing the code with a couple of
> friends, using a
Nigel.Walker wrote:
>
> I have simulated some data using the garchSim and would like to save the
> series as a .dat file. I am not sure how to do this unfortunately any help
> would be appreciated.
>
Data import and export are described in the respective manual ("R Data
Import/Export").
http:
It's a FAQ #7.22
Wrap your plotting commands with print, that is,
print(bwplot( ))
and
print(xyplot( ))
Armin Goralczyk wrote:
>
> Dear list
> Maybe someone can help with the following problem:
> I have a source file containing the following code for plotting:
>
> pdf(file = 'data/mari
Vladimir Eremeev wrote:
>
>
> XpeH wrote:
>>
>> I am trying to understand how the order method in R language works, and
>> then I'd like to do the same in some other language.
>>
>
> 1. Type order in R command prompt (without "(" and &
XpeH wrote:
>
> I am trying to understand how the order method in R language works, and
> then I'd like to do the same in some other language.
>
1. Type order in R command prompt (without "(" and ")") and press enter.
This will print you the body of this function, so you can inspect it. You
c
John Kane-2 wrote:
>
> This is just a curiosity question. Why do the two
> different syntaxes for df1 and df2 give such different
> results in the names(dfx)?
>
> Thanks
>
>
> df1 <- data.frame(nas = c("A", "B" , "B" ,"C" ,"B",
> "A", "D"),nums = c(3,2,1, 1, 2,3, 7))
>
>
Lauri Nikkinen wrote:
>
> Suppose I have a following data set.
>
> y1 <- rnorm(20) + 6.8
> y2 <- rnorm(20) + (1:20*1.7 + 1)
> y3 <- rnorm(20) + (1:20*6.7 + 3.7)
> y <- c(y1,y2,y3)
> var1 <- rep(1:5,12)
> z <- rep(1:6,10)
> f <- gl(3,20, labels=paste("lev", 1:3, sep=""))
> d <- data.frame(var1=v
You can trace this function:
install.packages("debug")
library(debug)
mtrace(sqlFetch)
sqlFetch(channel,"t_studie")
Then you'll have the new window showing function code and allowing you to
execute it step by step, view intermediate results, variables, etc.
To switch off tracing, use
mtrace(sql
Hi.
It looks like the letter 'e' at the end of the table name is not latinic
'e'.
sqlFetch constructs the SQL query internally from the supplied table name:
ans <- sqlQuery(channel, paste("SELECT * FROM", dbname),
...)
What will be the answer for
sqlQuery(channel, paste("SELECT * FROM
Duncan Murdoch-2 wrote:
>
> On 9/25/2007 4:15 AM, Vladimir Eremeev wrote:
>> source'ing is a bad practice because this saves additional copies of
>> functions and data in the local workspace.
>>
>> Wasting disk space is not a problem now since HDDs a
You could provide examples of errors, which Excel gives in computations, in
comparison to R.
Excel could not calculate inverse matrix for my task, so I was to find
something better, and I've found R (it was version 1.2, as far as I
remember).
My another problem was scripting (R is more convenient
ectory as "
> functions.r". Perhaps take a look at ?setwd and ?getwd as well.
>
>
> On 9/25/07, Vladimir Eremeev <[EMAIL PROTECTED]> wrote:
>>
>> You can save your functions to a file with
>> save(,file="/path/to/func_lib.RData")
>> and
Mauricio Malfert wrote:
>
> Hi I'm simulating missing data patterns and I've started to get a lot of
> functions in the same .R file is it possible to store al these functions
> in
> a library like one does in C++ (i.e the .h file) and read the functions
> from
> the main .R file
> /Mauricio
>
attach("file_name.RDA")
dump(list=ls(2),file="file_name.R")
This creates file file_name.R, containing R commands, executed to produce
the contents of the file_name.RDA
Data frames and matrices can be stored in ASCII file in tabular form using
write.table()
You can also consider cat()
Jittima
attach("file.RDA") # attaching the file to R, all its variables become
'visible'
# it should be on the 2nd position of the search path.
# see ?search
ls(2) # list everything in 2nd position of the search path
You can also load() this file.
In this case all data from this file will be loaded to th
lme(as.formula(paste("y~",ww)),random=~1|subj,model)
Gang Chen-3 wrote:
>
> I want to pass a predefined string ww ("fa*fb+fc") to function lme so
> that I can run
>
> > lme(y ~ fa*fb+fc, random = ~1|subj, model)
>
> There must be a simple way to do this. Any help?
>
> Thanks,
> Gang
>
http://cran.r-project.org/mirror-howto.html
Arin Basu-3 wrote:
>
> Dear All,
>
> Folks at the West Bengal University of Technology has set up a mirror to
> distribute R and associated packages. Here is the URL:
>
> http://mirror.wbut.ac.in/CRAN
>
> This will be helpful for R users in South A
Sergey Goriatchev wrote:
>
> Hello, everybody
>
> I have R 2.5.1 now installed on a laptop with Windows Vista Home
> Premium. I have problems updating the packages. Here is what I get at
> the prompt when I try to update:
>
>
>> update.packages(ask='graphics')
> --- Please select a CRAN mirro
xlab=expression(bar(temp))
or
xlab=expression(bar(" temp"))
The overbar looks like it begins above "e" in the first case.
See demo(plotmath).
Jason Horn wrote:
>
> Can anyone tell me how to produce a macron (or overbar or overline)
> symbol on an R plot. I have an axis that is labeled "te
Riddle Chin wrote:
>
> Hi, everyone:
> R is new to me. I am writing a nested loop to simulate data for
> t-test. The following code is wrong. The subscript is out of bounds. Could
> anyone tell me how to revise it? Thanks, Riddle Chin.
>
> result<-matrix(ncol=5, nrow=1000)
> colnames
Maybe this information (from the R's father) can be of some help.
http://www.stat.auckland.ac.nz/~ihaka/Graphics/index.html
Van Dongen Stefan wrote:
>
> Hi All,
>
> I would like to fill the area under a curve with a gradient of colors. Are
> there any packages or trick I could use
>
> Thank
I tried the same operations, and got
trying URL
'http://chart.yahoo.com/table.csv?s=^spx&a=0&b=02&c=1991&d=8&e=13&f=2007&g=d&q=q&y=0&z=^spx&x=.csv'
Error in download.file(url, destfile, method = method, quiet = quiet) :
cannot open URL
'http://chart.yahoo.com/table.csv?s=^spx&a=0&b=02&c=
Did not completely understand what is a 'group index',
but to remove any element from a list or a matrix, or a vector or a data
frame you could use the negative index.
For example,
> df.s[-c(1:3)]
$`3`
gx
1 3 3.916503
12 3 1.435718
24 3 2.252151
> df.s[-c(1:3)][[1]][-1]
Vaibhav Gathibandhe wrote:
>
> Is there any way through which i can run a R file from Command line.
>
Yes, there are several.
R < mean.R
R CMD BATCH mean.R
Rscript mean.R
Vaibhav Gathibandhe wrote:
>
> For example
> > r mean.R
>
What does ">" above mean?
Is it OS command prompt (looks l
QL, just because
> it works. But for me it is a good reason (especially because I'm not a
> specialist of PCs and I don't have the time to become one. I'm only an
> end-user).
>
> Have a nice day,
> Ptit Bleu.
>
>
>
> Vladimir Eremeev wrote:
>>
ah06981 wrote:
>
> Dear R-help,
>
> I am trying to estimate a Cox model with nested effects basing on the
> minimization of the overall AIC; I have two frailties terms, both gamma
> distributed. There is a error message (theta2 argument misses) and I
> don?t understand why. I would like t
Did you consider R GUI project?
http://www.sciviews.org/_rgui/
I used kate on Fedora, my general impression is not bad.
But one should be careful with running R session inside kate.
I killed it accidentally several times without saving of the state, when
exited the editor.
Antonio_Paredes wro
Duncan Murdoch-2 wrote:
>
> On 11/09/2007 6:36 AM, Arun Kumar Saha wrote:
>> Hi all,
>>
>> I am looking for a function for following calculation.
>>
>> start.month = "July"
>> end.month = "January"
>>
>> months = f(start.month, end.month, by=1)
>>
>> * f is the function that I am looking for
Do you need precisely RMySQL and DBI?
RODBC can successfully replace this.
I used RMySQL some time ago, but then, after the next version upgrade it
stopped working.
Switching to RODBC was almost without pain, since function names were quite
similar.
I simply replaced dbGetQuery with sqlGetQuery
I think using R_LIBS_USER is better.
>From ?.libPaths:
The library search path is initialized at startup from the environment
variable R_LIBS (which
should be a semicolon-separated list of directories at which R library trees
are rooted) followed by those in environment variable R_LIBS_USER.
min(x[x>0])
dxc13 wrote:
>
> useRs,
>
> I am looking to find the minimum positive value of some data I have.
> Currently, I am able to find the minimum of data after I apply some other
> functions to it:
>
>> x
> [1] 1 0 1 2 3 3 4 5 5 5 6 7 8 8 9 9 10 10
>
>> sort(x)
> [1]
This was discussed here sometime ago.
Several variants are possible.
You can install the new version of R over the old one, in the same folder,
this preserves the installed packages. At least, this works fine for me on
Windows.
You can also store your list of packages in a simple R script and ex
48 matches
Mail list logo