Chee Hee,
This is indeed what I was looking for.
Thank you for introducing me to panel.text,
Naresh
> Date: Mon, 19 Jan 2015 21:17:18 -0600
> From: chl...@mail.usask.ca
> Subject: Re: [R] Evaluated expression in lattice key
> To: naresh_gurbux...@hotmail.com; r-help@r-project.org
>
> I guess th
Hi,
Here is my suggestion:
To change variable 2 name:
>names(temp.data)[2] <- "transsactionnumber"
To show all variable names to verify:
>names(temp.data)
--
View this message in context:
http://r.789695.n4.nabble.com/need-help-with-renaming-a-variable-tp4702154p4702179.html
Sent from the
Hi Pavel,
The problem may be with the name "2013fixed.data". I don't know where
that came from, but try naming it "fixed2013.data".
Jim
On Fri, Jan 23, 2015 at 4:53 AM, Pavel Yakovlev wrote:
> Hello.
>
> I am new to R, so my question/problem might be very basic, but I cannot
> figure out how to
John Wasige wrote:
>
> Hi Jim,
>
> I still get the same error. This is to kindly request for your help. Attached
> herewith is the
> test dataset. Thanks for your help.
...
Hi John,
The file you sent is in some proprietary format that I cannot read.
Fortunately there is a text header and this inc
> >
> > plot(r2,d)
> > res = lm(r2~d)
> >
> Mixing up your x and y coordinate. Do:
>
> plot(d,r2)
... or use:
plot(r2 ~ d)
so that
res <- lm(r2 ~ d)
uses exactly the same pattern...
Olivier.
--
Olivier Crouzet, PhD
Laboratoire de Linguistique -- EA3827
Université de Nantes
Chemin
On 23/01/15 08:39, Dennis P. Weygand wrote:
I am a very new user of R, trying to do a linear fit to data,
plot(r2,d)
plots my data correctly, I do a linear fit:
res = lm(r2~d)
gives a fit to the data, but
abline(res,col=“red”)
displays nothing. Again, I am a novice, but what am I doing wron
I am a very new user of R, trying to do a linear fit to data,
plot(r2,d)
plots my data correctly, I do a linear fit:
res = lm(r2~d)
gives a fit to the data, but
abline(res,col=“red”)
displays nothing. Again, I am a novice, but what am I doing wrong?
DPW
__
That' s perfect. Many thanks forma your appreciated help.
El 22/01/2015 19:50, "Chel Hee Lee" escribió:
> > x <- c("hola mundo mundo");
> > table(unlist(strsplit(x, " ")))
>
> hola mundo
> 1 2
> >
>
> Is this what you are looking for? I hope this helps.
>
> Chel Hee Lee
>
> On 1/22/2015
In addition to the other suggestions, which are fine for your simple
example, I would take a trip to the CRAN Task View "Natural Language
Processing", and see if there's anything there.
-Don
--
Don MacQueen
Lawrence Livermore National Laboratory
7000 East Ave., L-627
Livermore, CA 94550
925-423
table(strsplit("hola mundo mundo", " ")[[1]])
On Thu, Jan 22, 2015 at 9:25 AM, bgnumis bgnum wrote:
> Hi all,
>
> I want to cout the different words in a text.
>
> You see if the text is: "hola mundo mundo" the program will count:
>
> hola 1
> mundo 2
>
> Is posible that Cran r have a similar fun
> x <- c("hola mundo mundo");
> table(unlist(strsplit(x, " ")))
hola mundo
1 2
>
Is this what you are looking for? I hope this helps.
Chel Hee Lee
On 1/22/2015 8:25 AM, bgnumis bgnum wrote:
Hi all,
I want to cout the different words in a text.
You see if the text is: "hola mundo m
Hello!
my question is about a specific problem concerning programming R for that I
have not found a solution since 2 weeks (I have seen forums, searched on
google, all).
The main goal is to remove overlaping events. I have two equal lists of 10
dataframes each (number of rows of these 10 datafram
Hello.
I am new to R, so my question/problem might be very basic, but I cannot
figure out how to solve it.
So, I would really appreciate your help.
I would like to rename a variable in a very large file (181GB) called
"2013.xdf" that is saved on my external hard drive.
I tried running the follow
Dear Bert, Martin, Bill,
Thank you very much for the help. Bert & Martin's solutions solved my problem.
Would it be useful to add an example like this to the help page on ?factor or
?levels?
Thanks again,
Ravi
From: Martin Maechler
Sent: Thursday, Jan
Envoyé de mon iPhone
> Le 22 janv. 2015 à 15:29, Prof Brian Ripley a écrit :
>
>> On 22/01/2015 14:22, Rainer M Krug wrote:
>>
>>
>> Envoyé de mon iPhone
>>
>>> Le 22 janv. 2015 à 15:11, Prof Brian Ripley a écrit
>>> :
>>>
>>> See ?Quotes.
>>
>> Perfect - thanks.
>>
>>>
On 22/01/
Based on the dataset, I computed a 3D kernel (longitude, latitude, depth) and
displayed the magnitude with the sphere radius and time with color as follows.
I am wondering how I can show the color bar legend. Also I have problem with
the scale of the graph. I need to see if the balls touch or o
Hi all,
I want to cout the different words in a text.
You see if the text is: "hola mundo mundo" the program will count:
hola 1
mundo 2
Is posible that Cran r have a similar function?
[[alternative HTML version deleted]]
__
R-help@r-project.
I don't know about any courses but I recommend the cookbook for R website:
http://www.cookbook-r.com/Graphs/
There are many examples implementing ggplot2 for different types of plots.
Hope this helps,
On Thu, Jan 22, 2015 at 12:14 PM, Erin Hodgess
wrote:
> Hello!
>
> Are there any ggplot cour
thank you!
On Thu, Jan 22, 2015 at 1:18 PM, Bert Gunter wrote:
> Check:
>
> http://www.rstudio.com/
>
> (where Hadley works)
>
> -- Bert
>
> Bert Gunter
> Genentech Nonclinical Biostatistics
> (650) 467-7374
>
> "Data is not information. Information is not knowledge. And knowledge
> is certainl
Check:
http://www.rstudio.com/
(where Hadley works)
-- Bert
Bert Gunter
Genentech Nonclinical Biostatistics
(650) 467-7374
"Data is not information. Information is not knowledge. And knowledge
is certainly not wisdom."
Clifford Stoll
On Thu, Jan 22, 2015 at 10:14 AM, Erin Hodgess wrote:
>
Kristi:
You post here frequently.
1. Have you gone through any R tutorials (e.g. "An Intro to R", which
ships with R) where you would find out about how to handle such basic
operations? If not, why not??
2. Why do you persist in posting in HTML, even though you have been
asked not to? Not an iss
Hello!
Are there any ggplot courses, please? This would be for a beginner in
ggplot; I know the base plot, but nothing from there.
Thanks,
Erin
--
Erin Hodgess
Associate Professor
Department of Mathematical and Statistics
University of Houston - Downtown
mailto: erinm.hodg...@gmail.com
The answer is right there in your question: see ?split
Best,
Ista
On Jan 22, 2015 12:55 PM, "Kristi Glover" wrote:
> How to split a data table into multiple tables based on column (unique
> value) and save them separately ?
>
> For example:
> dat<-structure(list(name = structure(c(1L, 1L, 1L, 2
How to split a data table into multiple tables based on column (unique value)
and save them separately ?
For example:
dat<-structure(list(name = structure(c(1L, 1L, 1L, 2L, 2L, 3L, 3L,
4L), .Label = c("A", "B", "C", "D"), class = "factor"), date = structure(c(6L,
7L, 8L, 1L, 2L, 3L, 4L, 5L),
?factor
You might find the description in the Introduction to R that comes with the R
software helpful if the help page seems terse.
Please read the Posting Guide and particular post using plain text format, a
strong in your email program.
---
Dear Charles,
When you put TERM in a data frame, by default it was converted to a factor,
which is already stored as integers. Thus, if I understand correctly what
you want, the following will work:
> sc$TERM
[1] 200208 200701 201201
Levels: 200208 200701 201201
> unclass(sc$TERM)
[1] 1 2 3
attr
You did not show what answer you expected, but does the following do what
you want?
> match(sc$TERM, TermList)
[1] 11 20 30
Making a factor whose levels are TermList may also be useful. (The
exclude=NULL
is to factor doesn't drop NA from the levels).
> sc$fTERM <- factor(sc$fTERM, levels=T
I'm not quite sure, but I think you might want:
> which(TermList %in% sc$TERM)
[1] 11 20 30
instead. Using == ends up with automatic recycling and other things you
probably weren't expecting.
Sarah
On Thu, Jan 22, 2015 at 11:01 AM, Charles Stangor
wrote:
> Hi,
>
> Is there a way to easily conve
Hi,
Is there a way to easily convert the list of course terms into sequential
integers in the dataframe (see code below)?
eg. "199801" = 1; "199808"=2
I know I can use recode but shouldn't "which" work?
Thanks in advance!
sc = data.frame(c("200208", "200701", "201201"))
names(sc) = c("TERM")
> Bert Gunter
> on Wed, 21 Jan 2015 18:52:12 -0800 writes:
> Bill/Ravi:
> I believe the problem is that the factor is automatically created when
> a data frame is created by read.table(). By default, the levels are
> lexicographically ordered. The following reproduces
On 22/01/2015 14:22, Rainer M Krug wrote:
Envoyé de mon iPhone
Le 22 janv. 2015 à 15:11, Prof Brian Ripley a écrit :
See ?Quotes.
Perfect - thanks.
On 22/01/2015 13:32, Rainer M Krug wrote:
Hi
I just discovered \r and \t
--8<---cut here---start->8
See ?Quotes.
On 22/01/2015 13:32, Rainer M Krug wrote:
Hi
I just discovered \r and \t
--8<---cut here---start->8---
cat(LETTERS, "\n")
A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
--8<---cut here---end--->8---
Hi
I just discovered \r and \t
--8<---cut here---start->8---
> cat(LETTERS, "\n")
A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
>
--8<---cut here---end--->8---
--8<---cut here---start---
Javad,
First, please make sure to hit 'reply all' so that these messages go to the
R help list so others (many far more skilled than I) may possibly chime in.
The problem here is that you appear to have no dependent variable (i.e. no
eutrophication variable). Without it, there is no way to a typ
The following is one way to parse your file using R (using R-3.1.2 on
Windows
in a US English locale). I downloaded it from Google Docs in tab-separated
format.
I could not get read.table() to do the job, but I don't completely
understand
the encoding/fileEncoding business there.
> file <- "examp
35 matches
Mail list logo