Dear Jim
Without knowing what l.out is this might be tricky. What does str(l.out)
tell you it is. And is CVS a typo for csv?
Michael
On 14/09/2018 19:00, Jim Blackburn wrote:
I am newly subscribed to r-project.
I have recently plunged into R on a totally self-taught basis (may not have
be
> On Sep 14, 2018, at 2:15 PM, MacQueen, Don via R-help
> wrote:
>
> If l.out is not a data frame, what is it? A list? A matrix? Some other
> structure? Try
I thought it would be one of those variants of a zoo object. Matrix structure
with specialized row.names that can handle time-date ran
If l.out is not a data frame, what is it? A list? A matrix? Some other
structure? Try
str(l.out)
class(l.out)
and see what you get.
Can't help you convert it to a data frame without knowing what it is.
After you have a data frame, then write.table(), write.csv(), or write.csv2()
will "con
Others may help, but I suggest first going through an R tutorial or
two to learn about R's basic data structures, i/o, etc. This list can
help, but cannot substitute for such homework. Some tutorial
recommendations can be found here:
https://www.rstudio.com/online-learning/#r-programming
There are
Welcome to R and the R-help list
Not oriented to finance but just general info
A good source of introductory sources is available at
http://www.introductoryr.co.uk/R_Resources_for_Beginners.html. BTW I've never
seen the author's book but it does look interesting. :)
I have had a look at most o
Boris Chow [2015-05-09 20:04]:
I want to do a pricing of an American option as my first exercise. Can some
experienced users give me some pointers to do so?
https://stat.ethz.ch/mailman/listinfo/r-sig-finance
http://cran.r-project.org/web/packages/AmericanCallOpt/AmericanCallOpt.pdf
http:/
Dear Boris,
I am new too, but got a lot of help from this webpage. I hope it will work
for you too,
All the best!
http://tryr.codeschool.com/
2015-05-09 23:44 GMT-03:00 Boris Chow :
> Dear R users,
>
> I am new to R community and would like to dig into it. Would you advise
> what are the appro
Hi Lalitha,
Your description is more like calculating a composite score from the
values observed on ten attributes, which can then be ranked. Perhaps
you want to standardize the observed values to insure that the result
is not dominated by the attribute with the numerically highest
variance. For ex
Please don't cross-post to multiple lists. There is a Posting Guide mentioned
in the footer that you probably won't see because you are using Nabble. It
would have informed you that the R-devel mailing list was for people interested
in modifying R, definitely not this topic.
As to your question
Thanks
Regards,
Lalitha K.
Associate Software Engineer
917411291011
From: Jeff Newmiller
Sent: 21 January 2015 21:34
To: Lalitha Kristipati; R-help@r-project.org
Subject: Re: [R] New to R
This is not really a question about R... it is a question
This is not really a question about R... it is a question about databases
because similar divisions occur in every imperative programming language that
deals with databases. ODBC is a software layer that aims to create a uniform
API for the programmer among different variations of SQL databases
On 21/01/2015 05:51, Lalitha Kristipati wrote:
Hi,
I am trying to connect R to databases.
I found two ways to connect.
1.By using specific package (eg RMySQL to connect to R)
2.By using connectors and RODBC package.
can any one tell me the difference between those two methods.
See the 'R D
Hi ,
As the OP was asking for examples , I would also recommend "Modeling
Techniques in Predictive Analytics" by Thomas Miller.
That book is full of examples + R scripts. Its on Amazon.
Regards
Billy
--
|
http://
I would recommend finding some tutorials on line in areas that you enjoy, read
http://r-bloggers.com every day, find introductory texts in the statistical
areas of interest, and study some texts on R programming. I really enjoyed The
Art of R Programming: A Tour of Statistical Software Design by
eorge Katsuras wrote:
> http://economistatlarge.com/portfolio-theory/r-optimized-portfolio
>
> Thanks for your prompt response. I think the above link provides the
> reproducible example you are looking for.
>
>
>
>> From: istaz...@gmail.com
>> Date: Fri, 28 Feb 2014
Please give a reproducible example. When I run your code I get "object
'stocks' not found". So what is stocks?
On Thu, Feb 27, 2014 at 11:24 PM, George Katsuras wrote:
> I successfully downloaded and loaded the stockPortfolio and quadprog
> packages, but when I entered the following command I go
1. Read an Introduction to R (ships with R) or other R tutorial (there
are many good ones on the Web).
1.5 ... Also check CRAN for books and other info.
2. ?write.table
but you'll need what you learn in the tutorial to extract output
from your functions.
2.5 ...and of course, ?xtabs and ?fi
Hi,
On Mon, May 14, 2012 at 12:44 PM, Bert Gunter wrote:
> I usually try google searches first. While not always successful, I am
> frequently surprised by how well it does.
rseek.org is simply a custom Google search for R-related things. It
does an even better job pulling out only R-related mat
I usually try google searches first. While not always successful, I am
frequently surprised by how well it does.
I strongly second the use of CRAN task views. IMHO, some fine folks
have volunteered their time and efforts to produce this very well
written series of guides to what's in R. It and the
You will find functions such as these in the thousands of packages that are
available once you have installed R. You can use rseek.org to search for
specific topics. Good overviews are found in the CRAN Task Views (from the
main R webpage, click on CRAN, select a mirror host, and then select Task
V
update
Jim Lemon emailed me suggesting I look at boxed.labels in the plotrix
package.
I loaded the package, there were a few messages about directories/etc. but
somehow I got it working.
I got the command to work, just what I wanted.
Thanks to Jim
-Henry
--
View this message in context:
ht
Phil,
You should look onto sp package which is the base for any other
spatial packages in R
http://cran.r-project.org/web/packages/sp/index.html
Also notice "Reverse depends" section where you can find a lot of
useful packages for spatial operations and analysis.
For loading shape files, "maptoo
> -Original Message-
> From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org]
> On Behalf Of arbeaupg
> Sent: Wednesday, January 11, 2012 6:36 AM
> To: r-help@r-project.org
> Subject: [R] New to R, Curious about Project Idea
>
> Good morning,
>
> I am a student whom is c
It sounds quite possible but you'll probably get more specialized help
if you ask on the r-sig-geo mailing list.
Michael
On Wed, Jan 11, 2012 at 9:36 AM, arbeaupg wrote:
> Good morning,
>
> I am a student whom is currently working on a term project for my GIS
> Program. I am looking for a softwa
2:n) {
dx[i]=(d[i])/(d[i-1])
# delta doesn't really do anything so I commented out
# delta=dx[i]
} # this is what I have tried to do.
-Original Message-
From: tynashy
Sent: Monday, October 24, 2011 11:29 AM
To: r-help@r-project.org
Subject: Re: [R] new to R coding.
I am new to R c
I believe I already showed you how to do this (though your code
doesn't seem to do what your words ask, so I'm not sure which one to
answer), but didn't draw attention to it:
x[-1]/x[-length(x)]
This creates two vectors, one consisting of everything but the first
element of x and the other of eve
I am new to R coding and I am trying to model the returns on the ftse100
since 1990. I have got a vector with all the closing values on each trading
day. however, instead of using the difference in the closing values of two
consecutive days, (ie dx=diff(x) where x is the vector containing the
clos
Try it yourself:
x = seq(1, 11, by = 2)
diff(log(x))
log(x[-1]/x[-length(x)])
all.equal(diff(log(x)), log(x[-1]/x[-length(x)]))
It seems like you don't really understand logs / log returns and why
they are used by some in quant finance: might I suggest you read this:
http://quantivity.wordpress.
Assuming that d(x) is equal to x, (I don't know a d() function in R)
these should be the same.
log(a/b) = log(a) - log(b) = diff(log(c(a,b))
If you mean simple returns instead of continuous/log returns, perhaps try this:
x[-1]/x[-length(x)] - 1
Michael
On Mon, Oct 24, 2011 at 11:44 AM, tynashy
The first problem is that you are using a character string as the first
argument to agnes()
The help information for agnes says that its first argument, x, is
x: data matrix or data frame, or dissimilarity matrix, depending
on the value of the 'diss' argument.
Not a character
On Mon, Jun 27, 2011 at 3:43 AM, Karen R. Khar wrote:
> Hi,
>
> I'm mighty new to R. I'm using it on Windows. I'm trying to cluster using a
> distance matrix I created from the data on my own and called it D10.dist. I
> loaded the cluster package. Then tried the following command...
>
>> agnes("E:
I also tried...
D1 D2 D3 D4 D5 D6 D7 D8 D9
D2 0.608392
D3 0.4974510.537662
D4 0.6345480.3933430.537426
D5 0.5587850.5433990.6322210.726633
D6 0.6594830.7017780.7414
I have taught myself R over the last few months and I learned quite a bit
from reading the PDFs that accompany each package, articles on the R Journal
(http://journal.r-project.org/) that cover similar problems to mine, and by
asking specific questions about code to this list. I also search online
On Jun 23, 2011, at 4:42 PM, elisheva corn wrote:
> hi all-
>
> I am doing some research, have never used R before until today and need to
> understand the following program for a project.
> if some one could PLEASE help me understand this program ASAP i would
> GREATLY appreciate it (any syntax
Did you have any other warnings going on. I had this same error and fix it
because I got a bunch of words that after stemming and number removal some
of my files were blank. After deleting these files I made the textmatrix
fine. I think when it tries to make the dataframe there is a mismatch
be
Hi:
Try this:
library(sos) # install from CRAN if you don't have it
findFn('imputation')
I got 285 hits. That should be enough to get you started.
Here's a recent paper about how to use sos from the R Journal (Dec. 2009):
http://journal.r-project.org/archive/2009-2/RJournal_2009-2_Graves~et
Hi:
I'll use some fake data to show you how to get the plots. To get the data
from Excel into
R, there are several ways to do it: converting the Excel file into csv and
using read.csv() in
R is one method and the XLSReadWrite package is another. Here's a link from
the R Wiki:
http://rwiki.sciviews
Hi, Ivan:
p.s. If you'd like to generate reports using LaTeX, I suggest you
also try "(LaTeX <- ???LaTeX)".
###
Are you trying to read standard text or csv files? If yes, then try
"?read.table" at a command prompt.
Or are you trying to connect directly from R
Hi, Ivan:
Are you trying to read standard text or csv files? If yes, then try
"?read.table" at a command prompt.
Or are you trying to connect directly from R to a database system?
If yes, which database system? This can be done from R, but as far as I
know, finding the functions an
Hi!
You should first go to the home page of the R project and read the
manuals available there (and there are a lot).
When you'll understand how R works, read the posting guide and ask
specific questions.
I don't think you'll get answers if you have such imprecise questions.
Ivan
Le 2/22/2010
chinna wrote:
hi everyone,
i am new to R project can anyone please help me by providing documents
my goal is using R i have to connect to the database and i have to generate
reports.
Thanks in advance
chinna.
R is a complex program. If you can't work out how to find the documentation, I
boun...@r-
>> project.org] On Behalf Of Joe Hughes
>> Sent: Monday, February 02, 2009 1:09 PM
>> To: R help
>> Subject: Re: [R] New to R
>>
>> All,
>>
>> Thanks for taking the time to reply. I understand a bit more
>> about R
f Joe Hughes
> Sent: Monday, February 02, 2009 1:09 PM
> To: R help
> Subject: Re: [R] New to R
>
> All,
>
> Thanks for taking the time to reply. I understand a bit more
> about R
> and the R way then I did
All,
Thanks for taking the time to reply. I understand a bit more about R
and the R way then I did before.The final function looks like this:
##
#
# Input:
# die_size - 4, 6, 8, 10, 20
# number_of_dice - How
Joe Hughes wrote:
>
> #
> function(die_size, number_of_dice, number_of_rolls)
> {
you may want to replace
> rolls <- array(0, dim=c(number_of_rolls, number_of_dice))
>
> for (i in 1:number_of_rolls)
> {
> rolls[i,] <- sample(die_size, number_of_dice, replace=TRUE)
> }
If you are interested in rolling dice with R (as opposed to using this as a
simple test case to start writing your own programs), then you may want to look
at the "dice" function from the TeachingDemos package. The core line in this
function is basically the same as Gabor's suggestion, but with
Yes, it should be TRUE.
On Mon, Feb 2, 2009 at 1:16 PM, Joe Hughes wrote:
> Gabor,
>
>Shouldn't the replace be TRUE instead of FALSE? I get this error
>
> Error in sample(6, 28, replace = FALSE) :
> cannot take a sample larger than the population when 'replace = FALSE'
>
> when I use FA
Gabor,
Shouldn't the replace be TRUE instead of FALSE? I get this error
Error in sample(6, 28, replace = FALSE) :
cannot take a sample larger than the population when 'replace =
FALSE'
when I use FALSE. I don't get the error when it is TRUE. Examining
my mental model of what i
Try this:
matrix(sample(dsize, nrolls * ndice, replace = FALSE), nrolls, ndice)
On Mon, Feb 2, 2009 at 12:39 PM, Joe Hughes wrote:
> Hello All,
>
>A colleague of mine started working with R and out of curiosity I did
> some research on the language. Very nice. In my opinion this is one
On 06/11/2008 11:18 AM, BKMooney wrote:
I am new to R and am running into trouble with the function plot.
When I enter in the simple code:
x<-1:4
y<-5:8
plot(x,y)
I get a scatter plot with 4 points as expected.
However, with my own data, A and B are both vectors of length ~85, each
entry
Hello -
In you example, what are the classes of x and y?
x<-1:4
y<-5:8
plot(x,y)
class(x)
class(y)
In your 'real' data, what are the classes of A and B
class(A)
class(B)
One may be a factor?
How are you reading your data into R, read.table? Make sure your data
are numeric, then plot th
You need to provide more information. PLEASE do read the posting guide
http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
Show at least an 'str' of your data if you can not include it and the
commands that you were using.
On Thu, Nov 6,
On 9/6/08, sudeshna <[EMAIL PROTECTED]> wrote:
>
> hi im starting with R.have no idea to start...plz help
> --
http://www.math.ilstu.edu/dhkim/Rstuff/Rtutor.html
http://www.statmethods.net/index.html
http://rforsasandspssusers.com/
Rcmdr
rattle
http://www.sciviews.org/_rgui/
http://zoonek2.
sudeshna wrote:
hi im starting with R.have no idea to start...plz help
Hi sudeshna,
There are several beginner's guides on the CRAN website. Go to:
http://cran.r-project.org
and select "Contributed" (second last option on the left).
Jim
__
R
On Sat, Sep 6, 2008 at 5:10 AM, sudeshna <[EMAIL PROTECTED]> wrote:
>
> hi im starting with R.have no idea to start...plz help
Search the Internet for online tutorials and/or read an introductory
book (search for them, e.g., on Amazon.Com).
Good luck,
Paul
__
Hi Richard,
It is if you use Rattle. Rattle allows you to do that for quite a few types
of models and has a really nice GUI interface. It has been developed for
the purposes of datamining, and given your use of the term "score" in your
post, I assume in part that this is what you are looking
Richard Palmer gmail.com> writes:
>
> .. I am new to R but experienced in SAS. SAS has the capability to let me
> develop a model from a sample and use the results to score the records of
> another file which won't fit in memory. Is this straightforward in R or
> does it require coding to do t
57 matches
Mail list logo