s a
better choice.
John Kane
Kingston ON Canada
> -Original Message-
> From: alan.mil...@synopsys.com
> Sent: Wed, 8 Aug 2012 15:32:23 +
> To: r-help@r-project.org
> Subject: [R] ggplot2 with separate average lines
>
> Hi I'm just starting off with R bu
You have not told us what you have done or what your OS is.
In any case R is case sensitive so try:
install.packages("hdf5")
John Kane
Kingston ON Canada
> -Original Message-
> From: saadsihe...@gmail.com
> Sent: Wed, 8 Aug 2012 09:25:06 -0700 (PDT)
> To
Can you point to an example? It sounds like the journal is still using
typewriters.
John Kane
Kingston ON Canada
> -Original Message-
> From: arrayprof...@yahoo.com
> Sent: Wed, 8 Aug 2012 11:52:27 -0700 (PDT)
> To: r-help@r-project.org
> Subject: [R] decimal points
> -Original Message-
> From: j...@bitwrit.com.au
> Sent: Thu, 09 Aug 2012 19:55:29 +1000
> To: rolf.tur...@xtra.co.nz
> Subject: Re: [R] R versus SAS
>
> On 08/09/2012 07:17 AM, Rolf Turner wrote:
>> ...
>> P. S. There is no such word as "recompensate".
>>
> Thanks to R, the internet and
labeling_0.1
[5] MASS_7.3-20 memoise_0.1 munsell_0.3 proto_0.3-9.2
[9] tools_2.15.1
1>
John Kane
Kingston ON Canada
> -Original Message-
> From: kiung@sensis.com.au
> Sent: Thu, 9 Aug 2012 06:55:17 +
> To: r-help@r-project.org
> Subject: [R] re
r off with a
terminal and good R editor. Tinn-R for Windows or gedit for linux are not bad
and some fanatics love EMACS with ESS :)
Wecome to R.
John Kane
Kingston ON Canada
> -Original Message-
> From: billpete...@hotmail.com
> Sent: Thu, 9 Aug 2012 06:54:50 -0700 (PDT)
Probably not. See
http://r.789695.n4.nabble.com/Boxplot-Fill-Pattern-td4457209.html on this topic.
What exactly are you doing? There may be a workaround or alternative.
John Kane
Kingston ON Canada
> -Original Message-
> From: meyfa...@uni-potsdam.de
> Sent: Wed, 8 Aug 2012
> Rather dput(head(my data, 50))
Argh!!! I think that in the third time in three weeks .
John Kane
Kingston ON Canada
> -Original Message-
> From: michael.weyla...@gmail.com
> Sent: Thu, 9 Aug 2012 10:29:07 -0500
> To: jrkrid...@inbox.com
> Subject: Re: [R] R Comma
You might want to have a look at RColorBrewer. If I remember correctly some
of their palettes should work better than a standard R greyscale but I must
admit I have not tried them.
http://www.decisionstats.com/color-palettes-in-r-using-rcolorbrewer-rstats/
for a start.
John Kane
Kingston
Skitt's is definately the name I remember. Very active on some English
language newsgroups.
John Kane
Kingston ON Canada
> -Original Message-
> From: dwinsem...@comcast.net
> Sent: Thu, 9 Aug 2012 13:13:40 -0700
> To: jrkrid...@inbox.com
> Subject: Re: [R] R Com
You probably need to post the data here, or somewhere such as
[url=http://www.mediafire.com/][b]MediaFire[/b][/url] for other readers to
examine.
To post it here use dput() and paste the results into the email.
John Kane
Kingston ON Canada
> -Original Message-
> From: aprend
I cannot reproduce this unless you are referring to the white lines between
each level of the cut factor. See
http://www.mediafire.com/view/?14k2z7a1x3ln9nh for my results.
Are we using the same ggplot2 version? See sessionInfo below.
John Kane
Kingston ON Canada
sessionInfo()
R version
t1$Electrode
== "F4")
John Kane
Kingston ON Canada
> -Original Message-
> From: mancinisim...@yahoo.it
> Sent: Fri, 10 Aug 2012 10:07:31 +0100 (BST)
> To: r-help@r-project.org
> Subject: [R] subsetting levels of a vector
>
> Hi,
>
>
> I need to su
) <- dados == -999.9
John Kane
Kingston ON Canada
#=Original Code=#
library(MASS)
dados<-read.table("/home/john/rdata/pelotas.txt",header=FALSE)
is.na(dados) <- dados == -999.9 # what the devil? jrk
png(filename="teste1.p
Oh, okay. I just missed it completely since your data didn't have any missing
data so I could not visualise why it was there. I assume -999.9 was in older
data.
John Kane
Kingston ON Canada
> -Original Message-
> From: aprendizprog...@hotmail.com
> Sent: Fri, 10 Aug
be of real help
www.et.bs.ehu.es/~etptupaf/pub/R/RforSAS&SPSSusers.pdf
John Kane
Kingston ON Canada
> -Original Message-
> From: sachin.abeyward...@gmail.com
> Sent: Sat, 11 Aug 2012 21:59:59 +1000
> To: r-help@r-project.org
> Subject: [R] choosing multiple columns
>
> H
methods base
other attached packages:
[1] sp_0.9-99
loaded via a namespace (and not attached):
[1] fortunes_1.5-0 grid_2.15.1lattice_0.20-6
John Kane
Kingston ON Canada
> -Original Message-
> From: lorenzo.ise...@gmail.com
> Sent: Fri, 10 Aug 2012 22:20:56 +0200
Are you sure that you are not confusing the number of levels with the length of
the vector?
John Kane
Kingston ON Canada
> -Original Message-
> From: balanagudevaray...@gvkbio.com
> Sent: Tue, 14 Aug 2012 12:40:26 +
> To: r-help@r-project.org
> Subject: [R] Not
character values and need
to be converted into datesfor you to get the chronological date order. See
?strptime or perhaps install the lubridate package for help there.
Otherwise welcome to R
Note to other readers : I think I actually got the dput syntax this time!!
John Kane
Kingston ON Canada
It looks like an example of FAQ 7.31 Why doesn't R think these numbers are
equal?
John Kane
Kingston ON Canada
> -Original Message-
> From: tomasb...@gmail.com
> Sent: Wed, 15 Aug 2012 22:37:17 +1000
> To: r-help@r-project.org
> Subject: [R] which() function
dates",
"temp", "year"), class = "data.frame", row.names = c(NA, -50L
))
# Then give this a try. It looks a bit weird as I just generated a bunch of
dates.
#=
library(ggplot2)
p <- ggplot( mydat , aes(as.factor(
Well, first thing wrong is no data. See ?dput as a way to supply sample data
Other than that everything seems okay or at least
x<-1:6
plot(x,type="o",axes=FALSE,xlab="year",ylab="cases")
axis(1,at=1:6, lab=c("2000","2001","2002"
I cannot duplicate this using LibreOffice Calc. It saves exactly as one would
expect.
John Kane
Kingston ON Canada
> -Original Message-
> From: dwarnol...@suddenlink.net
> Sent: Wed, 15 Aug 2012 10:27:54 -0700 (PDT)
> To: r-help@r-project.org
> Subject: [R] Reading
plot(rnorm(50), main=bquote(.(x)*" "* mu * g/m^3 * " substance"))
John Kane
Kingston ON Canada
> -Original Message-
> From: dominik.refa...@gmail.com
> Sent: Thu, 16 Aug 2012 12:50:57 +0200
> To: jjon...@gmail.com
> Subject: Re: [R] Variable
No data is attached. The R-help list usually strips out attachments to prevent
viruses or malware spreading.
Use dput to include the data . Just do : dput(mydata) and copy the results into
your email.
Also it is a good idea to include the code that you are using.
John Kane
Kingston ON
# plot a grid of results
pgrid <- p <- ggplot(mydata , aes( timestamp, x)) + geom_point() +
geom_smooth(method = lm, se = FALSE) + facet_grid(tradeflavor ~ .)
pgrid
# Have fun with R.
John Kane
Kingston ON Canada
> -Original Message-
> From: n
Sample data? Some representative sample data really is needed to see what you
are doing. Have a look at dput() for a handy way to present data.
Also where did theme_complete_bw come from? Is it a special formattng
function?
John Kane
Kingston ON Canada
> -Original Mess
Perhaps you could supply the matrix using dput() ? It is a handy way to supply
sample data. Just do dput(mydata), copy the results and paste into email.
At the moment your matrix is almost unreadable.
John Kane
Kingston ON Canada
> -Original Message-
> From: nicome...@gma
?paste
plot(1, main = paste(x, "hours", y , "minutes", z , "seconds", sep =" "))
John Kane
Kingston ON Canada
> -Original Message-
> From: motyoc...@yahoo.com
> Sent: Thu, 30 Aug 2012 06:49:04 -0700 (PDT)
> To: r-help@r-project
is consult your
institutions health and safety people about solutions such as ergonomic
keyboards etc.
John Kane
Kingston ON Canada
> -Original Message-
> From: resea...@namibia.pharmaccess.org
> Sent: Tue, 4 Sep 2012 12:55:36 +
> To: r-help@r-project.org
> Subject: [
Please supply some sample data and preferably the code that you have used so
far.
To supply data the best way is probably to use the dput() function. If your
data is 'mydata' simply do : dput(mydata) and paste the results into your email
John Kane
Kingston ON Canada
>
able(mydata)
mytable
names(mytable) <- c("Mike", "Kate", "Michelle", "Paul Young")
mytable
John Kane
Kingston ON Canada
> -Original Message-
> From: youn.seh...@gmail.com
> Sent: Fri, 7 Sep 2012 22:54:32 -0400
> To: r-help@r-proje
value), sd =
sd(value))
tabx
John Kane
Kingston ON Canada
> -Original Message-
> From: tsonne...@gmail.com
> Sent: Fri, 7 Sep 2012 22:49:55 +0200
> To: r-help@r-project.org
> Subject: [R] Producing a table with mean values
>
> Hi All,
>
> I have a data set wit
My stupdity I made a late edit for clarity and forgot to run it to be sure I
had changed everything.
It should read:
tabx <- ddply(meltx, .(Seamount, variable), summarize, mean = mean(value),
sd = sd(value))
My appologies.
John Kane
Kingston ON Canada
> -Original Message-
As others have said, no need for a loop
Another approach
mydata <- data.frame(A = dpois(x,exp(4.5355343)),
B = dpois(x,exp(4.5355343 + 0.0118638)),
C = dpois(x,exp(4.5355343 -0.0234615)),
D = dpois(x,exp(4.5355343 + 0.0316557)),
E = dpois(x,exp(4.5355343 + 0.0004716)),
F = dpois(x,exp(4.5355343 +
I have a couple of Tinn-R problems that I hope someone may be able to make some
suggestions about or point me to a Tinn-R source. So far I have not found
anything particularly relevant by googling on Tinn-R.
NOTE: Just to be on the safe side I uninstalled both R and Tinn-R , ran some
cleanup
Hi Colin,
I'm no statistician and it's been a very long time but IIRC a t-test is a
'modified version of a x-test that is used on small sample sizes. (I can hear
some of our statistians screaming in the background as I type.)
In any case I thing a Z distribution is descrete and a standard norm
#x27;s a little like early factor analysis when rotate the factors actually meant
rotate the glass plates.
--- On Sun, 11/20/11, Colstat wrote:
From: Colstat
Subject: Re: [R] Data analysis: normal approximation for binomial
To: "John Kane"
Cc: r-help@r-project.org
Received: Sunday, No
Another approach would be to use ggplot2.
Code can look a bit daunting to begin with but ggplot2 is a
very versitile graphing package and well worth learning.
Simple example
=
library(ggplot2)
mydata <- data.frame(site=c("A","A","A", "
There are probably lots of better aproaches but this seems to work. I just
combined the lines into one vector and assighed a dummy variable to mark the
diffferent lines
ibrary(ggplot2)
mydata <- data.frame(xrange <- c(100, 200, 300, 400, 500, 600,
700, 800, 900, 1000),
yrange =
.frame I supplied does work
either with ggplot() or qplot()
> Regards
> On Mon, Nov 28, 2011 at 5:31 PM, Ben Bolker
> wrote:
> > John Kane yahoo.ca>
> writes:
> >
> >>
> >> There are probably lots of better aproaches but
> this seems to work.
I think your assumption is correct. Have a look at ?par.
It's been a while but I think you need to modify the mai or mar values.
Probably the mar.
--- On Mon, 11/28/11, Dan Abner wrote:
> From: Dan Abner
> Subject: [R] 2 Y-AXIS labels on the same (left-hand side) Y-AXIS
> To: r-help@r-pr
?aggregate should do it
aggregate(df$x,list(df$comn, df$mi), sd)
There are other ways of course
Using the reshape2 package
library(reshape2)
x1 <- melt(df, id=c("comn", "mi"))
dcast(x1, comn + mi ~ variable, sd)
--- On Sun, 12/4/11, Aurélien PHILIPPOT wrote:
> From: Aurélien PHILIPPOT
>
It would be very helpful to have an actual sample of your data.
As usual in R there are probably several different ways to approach the problem
but a small sample of the data or a mock-up would be most helpful.
Probably the easiest way to supply some data would be something like
df1 <- mydata[
A function like the one below will give you the class and number of valid
entries for a dataset. At sample data set would help determine if it works.
It works on a simple data set I created and one from the ggplot2 package but it
is
not really tested.
With your data set as df1 something like
xx
And I always have a problem with reshape(). Mind you I often have similar
problems with melt()
Anyway with the data.frame xx, try
melt(xx, id=c("ID"))
--- On Thu, 9/22/11, Uwe Ligges wrote:
> From: Uwe Ligges
> Subject: Re: [R] need help on melt/cast
> To: "Eugene Kanshin"
> Cc: r-help@r
You might want to try Revo Uninstaller. Reportedly it hunts down and kills
just about anything connected to a program that you want to uninstall. I have
only used it once but it seems to work. There is a free and a paid version. I
have the free one.
--- On Thu, 11/10/11, Kevin Burton wrot
That's nice.
Please read the posting guidelines and get back to us with some information on
what the data looks like an what you are doing.
For example do you just want lines or do you want a smoother, etc?
John Kane
Kingston ON Canada
> -Original Message-
> From: ir..
boxplot(xx)
After this it gets more complicated, but it you're new here let's take it one
step at a time
John Kane
Kingston ON Canada
> -Original Message-
> From: suranga...@gmail.com
> Sent: Thu, 1 Mar 2012 09:30:59 -0800
> To: r-help@r-project.org
&g
Seconded
John Kane
Kingston ON Canada
> -Original Message-
> From: rolf.tur...@xtra.co.nz
> Sent: Sat, 03 Mar 2012 13:46:42 +1300
> To: 538...@gmail.com
> Subject: Re: [R] Cleaning up messy Excel data
>
> On 03/03/12 12:41, Greg Snow wrote:
>
>
>&g
Probably depends on what and how you are plotting.
Please do read the posting instructions.
Provide us with some sample data and sample code.
See ?dput for a convenient way to post sample data.
John Kane
Kingston ON Canada
> -Original Message-
> From: mohammadianalimo
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
We have nothing at all to go on.
John Kane
Kingston ON Canada
> -Original Message-
> From: lpchaparro...@gmail.com
> Sent: Wed, 7 Ma
k. It is a powerful tool
John Kane
Kingston ON Canada
> -Original Message-
> From: sjcast...@gmail.com
> Sent: Wed, 7 Mar 2012 19:24:26 -0800 (PST)
> To: r-help@r-project.org
> Subject: [R] Novice Alert!: odfWeave help!
>
> Hello world,
> I'm pretty new to co
Here is a quick start. You will have to either greatly reduce the length of
the names or play around with various plot or barplot options to get the x
labels.
Have a look at ?plot.default and ?barplot for more information
John Kane
Kingston ON Canada
The R-help list usually strips attachements and did so with yours so we have no
data. You can include sample data by using dput and pasting the result into
your email. See ?dput for more information.
John Kane
Kingston ON Canada
> -Original Message-
> From: totang...@gma
I think this is what you want.
library(reshape2)
dcast( xx, Site.No ~ Plant.Name)
John Kane
Kingston ON Canada
> -Original Message-
> From: medo_bot...@hotmail.com
> Sent: Thu, 8 Mar 2012 01:20:42 -0800 (PST)
> To: r-help@r-project.org
> Subject: [R] Problem with a Matri
5, 6, 3, 5, 3, 6,
4, 0, 2, 4, 6, 8, 10, 12, NA, 9, 9, 8, 9, 8, 1, 2, 3, 4, 5, 6,
12, 42, NA, 45, 32, 54, 13, 15, 17, 19, 21, 23), .Dim = c(6L,
8L), .Dimnames = list(NULL, c("cata", "catb", "doga", "dogb",
"rata", "ratb", "bata", &
? table
First however confirm "that milk,bread" is a single datum. str() should do this
Can you post a sample of the data here using dput()?
John Kane
Kingston ON Canada
> -Original Message-
> From: mailme...@googlemail.com
> Sent: Sun, 18 Mar 2012 13:12:48 +
I am not sure that I understand but does something like this do what you want?
ec<-1:10
vec[vec==4] <- 100
vec <- 1:10
vec[ vec==4 | vec==8] <- 100
vec <- 1:10
aa <- 50
vec[vec==4] <- aa
John Kane
Kingston ON Canada
> -Original Message-
> From: marc_...@y
Have a look at the Time series Task View. Go to a CRAN site and you should see
a task view button on the upper left side of the window. It should give you
some leads.
John Kane
Kingston ON Canada
> -Original Message-
> From: miao...@gmail.com
> Sent: Thu, 22 Mar 2012
data is.
John Kane
Kingston ON Canada
> -Original Message-
> From: bamboohydraul...@gmail.com
> Sent: Sun, 25 Mar 2012 22:23:18 -0700 (PDT)
> To: r-help@r-project.org
> Subject: [R] reading header in txt file and making histogram
>
> Dear all
>
> I am a BEGINN
That's okay. The mail goes to thousands of people some of whom can help with
a specfic problem.
It is very useful for some one who is a beginer to read some of the answers.
You learn a lot by reading about others problems that are similar to yours.
Otherwise do what I do: Just delete any p
Try something like this:
legend('bottom', leg.txt, horiz = TRUE, cex=.75)
A workable example is requested and would have been helpful.
- Original Message -
From: Kevin Burton
To: r-help@r-project.org
Cc:
Sent: Saturday, January 21, 2012 8:47:36 AM
Subject: [R] Legend that is big?
I c
This is reallly not a list for homework help. However I'd guess that you are
supposed to discuss the mean and median, not assault them with R :)
I probably shouldn't do this. :(
Plot the data and then discuss the mean & median
John Kane
Kingston ON Canada
>
I did get a nice graph with colour if I use ggplot2. Note I changed the
bs$log_t variable name to logt as ggplot did not like the bs$
library(ggplot2)
names(bs_mean) <- c("month", "logt")
p <- ggplot(bs_mean, aes(month, logt))
p <- p + geom_point(colour = &quo
I think you are using the wrong function. See ?strftime
Try
dataset=c("1/2/1978")
strptime(dataset,"%d/%m/%Y")
John Kane
Kingston ON Canada
> -Original Message-
> From: rrast...@gmail.com
> Sent: Fri, 3 Feb 2012 14:34:09 +0100
> To: r-help@r-project.org
=list(xx$week), mean)
library(reshape)
mm <- melt(xx, id=c("week"))
cast(mm, week ~ variable, mean)
John Kane
Kingston ON Canada
> -Original Message-
> From: revda...@gmail.com
> Sent: Fri, 10 Feb 2012 04:55:44 -0800 (PST)
> To: r-help@r-project.org
> Su
a,b, colour=c)) + geom_point()
--
John Kane
Kingston ON Canada
> -Original Message-
> From: n...@jonasstein.de
> Sent: Sun, 12 Feb 2012 02:07:06 +0100
> To: r-h...@stat.math.ethz.ch
> Subject: Re:
What are you expecting to get?
At the moment it appears that you are just ploting one data vector. table() is
giving you a one row table.
BTW you probably should not use data as a data.frame name. It is a reserved
word.
John Kane
Kingston ON Canada
> -Original Message-
>
difficult
to suggest more.
By the way dput (see ?dput) is a handy way to supply a sample data set here.
John Kane
Kingston ON Canada
> -Original Message-
> From: ap...@neuro.mpg.de
> Sent: Mon, 20 Feb 2012 10:27:11 +
> To: r-help@r-project.org
> Subject: [R] overlay
Does something like the code below give you want you want?
It requires the ggplot2 package so you will likely have to install it.
John Kane
Kingston ON Canada
# sample data converted using dput
xx <- structure(list(X = c("Exp1
I am trying to install rJava on a WUBI Ubuntu 11.10 installation of R with no
luck. I was originally trying to install the iplots package and encountered
this rJava problem.
Code used:
install.packages("rJava")
(CRAN mirrors --Canada(ON) and Canada(QC2)
I installed iplots with no problem on W
John Kane
Kingston ON Canada
> -Original Message-
> From: e...@debian.org
> Sent: Sat, 25 Feb 2012 06:44:33 -0600
> To: jrkrid...@inbox.com
> Subject: Re: [R] install rJava in Ubuntu 11.10
>
>
> On 24 February 2012 at 10:32, John Kane wrote:
> | I am trying
Do an str() on the data. It looks like temp is a factor and I doubt that
factors can be negative.
John Kane
Kingston ON Canada
> -Original Message-
> From: svfil...@alaska.edu
> Sent: Tue, 28 Feb 2012 22:03:19 -0800 (PST)
> To: r-help@r-project.org
> Subject: [R] Cann
s you have millions of data
items you are probably okay in R.
For your example. Assume nams1 is from dataset 1 and nams 2 is from dataset 2.
=
nams1 <- letters[1:5]
nams2 <- letters[3:7]
nams1 %in% nams2
=====
Done.
John Kane
(mydata <- as.factor(c("1","2","3", ">2", "5", ">2")))
str(mydata)
newdata <- as.character(mydata)
newdata[newdata==">2"] <- 0
newdata <- as.numeric(newdata)
str(newdata)
We really need to keep Excel (an
grid stats graphics grDevices utils datasets methods
[8] base
other attached packages:
[1] ggplot2_0.8.9 proto_0.3-9.2 reshape_0.8.4 plyr_1.7
John Kane
Kingston ON Canada
FREE 3D MARINE AQUARIUM SCREENSAVER - Watch
dput() [see ?dput for information] and then just paste the output into your
email. I expect you would get faster and better answers.
John Kane
Kingston ON Canada
> -Original Message-
> From: nicola.vanwil...@sanparks.org
> Sent: Wed, 25 Apr 2012 14:42:49 +0200
> To: r-help@r
I think this works bu there probably is a better way.
xy <- x %% y
which(xy != 0)
John Kane
Kingston ON Canada
> -Original Message-
> From: sagarnikam...@gmail.com
> Sent: Sat, 28 Apr 2012 08:28:39 -0700 (PDT)
> To: r-help@r-project.org
> Subject: [R] problem in m
I think I misread the question. Is this what you want
j <- c(1,1,2,2,3)
k <- c(2,1,1,1,1)
xx <- j == k
which(xx == TRUE)
John Kane
Kingston ON Canada
> -Original Message-
> From: sagarnikam...@gmail.com
> Sent: Sat, 28 Apr 2012 23:48:43 -0700 (PDT)
> To:
> length(Sweden.GDP.gap.adjust)
[1] 8
> Sweden.GDP.gap.adjust
[1] 0.673792123 1.196706756 1.196131539 0.646944002 -0.312886525
[6] -1.706584861 -0.369401194 -0.003280389
R is reading Sweden.GDP.gapp.adjust as having 8 elements. Why I don't know.
John Kane
Kingsto
> -Original Message-
> From: sarah.gos...@gmail.com
> Sent: Mon, 30 Apr 2012 17:06:19 -0400
> To: jrkrid...@inbox.com
> Subject: Re: [R] Different varable lengths
>
> Because of the missing comma.
I knew I needed new glasses !
>
> On Mon, Apr 30, 2012 a
Or look for A handbook of Statistical Analyses using R. (Everitt and Holhorn)
available on line in pdf format.
John Kane
Kingston ON Canada
> -Original Message-
> From: istaz...@gmail.com
> Sent: Wed, 2 May 2012 07:01:22 -0400
> To: sydney.ver...@gmail.com
> Subject:
It is not clear what you mean. Can you supply some sample data? Have a look
at ?dput for a handy way to supply data.
John Kane
Kingston ON Canada
> -Original Message-
> From: lterle...@anadolu.edu.tr
> Sent: Tue, 1 May 2012 17:55:25 +
> To: r-help@r-project.org
&
Try something like this. Convert the vector to character and grab the first 10
characters then convert to a date.
aa <- as.factor("1981-01-02T08:00I")
aa <- as.character(aa)
aa <- substr(aa, 1, 10)
class(b)
John Kane
Kingston ON Canada
> -Original Messa
You do not seem to have suppied either code nor data. Please supply both.
John Kane
Kingston ON Canada
> -Original Message-
> From: shankarla...@gmail.com
> Sent: Wed, 2 May 2012 22:06:54 -0400
> To: r-help@r-project.org
> Subject: [R] Identifying the particular X or Y i
DRESS=C LC_TELEPHONE=C
[11] LC_MEASUREMENT=en_CA.UTF-8 LC_IDENTIFICATION=C
attached base packages:
[1] stats graphics grDevices utils datasets methods base
John Kane
Kingston ON Canada
__
Thanks.
I had not realsed there were relative paths until Sarah mentioned them.
It's working now: see my post to Sarah.
John Kane
Kingston ON Canada
> -Original Message-
> From: jdnew...@dcn.davis.ca.us
> Sent: Thu, 03 May 2012 09:30:10 -0700
> To: jrkrid...@in
header = TRUE)
works just fine. I like the idea of staying with absolute paths.
I am most appreciative.
John Kane
Kingston ON Canada
> -Original Message-
> From: sarah.gos...@gmail.com
> Sent: Thu, 3 May 2012 12:29:14 -0400
> To: jrkrid...@inbox.com
> Subject: Re: [R] Can
I'm sorry, it's still not clear what you are doing but perhaps this is
close?
mydata <- data.frame( a = c(1, 2, 3, 4 , 5),
b = c(7, 2, 3, 6, 9),
c = c(4, 6, 9, 2, 5))
mydata$d <- mydata$b - mydata$c
mydata
subset(mydata, mydata$d ==max(mydata$d))
Thanks Jeff and Sarah.
I was thinking mainly of using the base path and paste routine which is
something I do in Windows
It will take me a while to figrue out relative paths.
John Kane
Kingston ON Canada
> -Original Message-
> From: sarah.gos...@gmail.com
> Sent: T
simply change the specification in the subset command to >0
John Kane
Kingston ON Canada
-Original Message-
From: shankarla...@gmail.com
Sent: Thu, 3 May 2012 16:51:50 -0400
To: jrkrid...@inbox.com
Subject: Re: [R] Identifying the particular X or Y in a sor
ative paths'
just as something that one had to take into account in DOS.
I may take a look at R Studio but so far I have been comfortable with a text
editor and either RGUI or a terminal.
thanks
John Kane
Kingston ON Canada
> -Original Message-
> From: j...@surewest.net
>
And you don't want to know about some of the other problems with the FBI’s
Uniform Crime Reports. IRRC, they are fine for what the FBI intended but a lot
of reseachers don't read the data descriptions as closely as they should.
John Kane
Kingston ON Canada
> -Original Messag
And you don't want to know about some of the other problems with the FBI’s
Uniform Crime Reports. IRRC, they are fine for what the FBI intended but a lot
of reseachers don't read the data descriptions as closely as they should.
John Kane
Kingston ON Canada
> -Original Messag
()
[see ?dput for more information]
John Kane
Kingston ON Canada
> -Original Message-
> From: xiaocong@gmail.com
> Sent: Sun, 6 May 2012 16:44:10 +0800
> To: r-help@r-project.org
> Subject: [R] how to do the concentration-time profiles in R?
>
> Hi, Dear all,
>
I'm sorry but where is 28 coming from? It looks to me like you have a vector
of length 34 and the result is of length 34. Oh, I see, the 28 and 29 are the
indices for the first number on the line not the total length.
John Kane
Kingston ON Canada
> -Original Message-
>
I'm sorry but where is 28 coming from? It looks to me like you have a vector
of length 34 and the result is of length 34. Oh, I see, the 28 and 29 are the
indices for the first number on the line not the total length.
John Kane
Kingston ON Canada
> -Original Message-
>
ecific what columns you want to convert to
factors and use lapply.
Good luck and BTW Rcmdr is a nice GUI but it is much more effiient in the long
run to use a command line interface, combinded with a good text editior (Tinn-R
is nice for Windows)
John Kane
Kingston ON Canada
> -Or
Quite likely, but we need to know what you are doing and what graphics package
you are using.
PLEASE do read the posting guide
http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
John Kane
Kingston ON Canada
> -Original Mess
1301 - 1400 of 1800 matches
Mail list logo