Displaying 20 results from an estimated 10000 matches similar to: "introducing R to high school students"
2008 Jun 26
2
stuck on making a line graph across time, with 4 categories
I can't seem to find just what I'm looking for in R help, Everitt and
Hothorn HSAUR, Murrell's book, or the R graphics gallery at
http://addictedtor.free.fr/graphiques/. Probably not looking
efficiently, but anyway,
If my data look like this:
> head(data)
cat startyear studentid
1 other 2001 12
2 UHS 2001 17
3 Lourdes 2001 10
4
2011 Aug 30
3
having trouble extracting week from chron object
Running R 2.13.1 on Windows XP.
I would like to get week of the year (1-52) for each date.
library(chron)
dts <- dates(c("02/27/92", "02/27/92", "01/14/92","02/28/92", "02/01/92"))
dts
dts.chron <- as.chron(dts)
dts.chron
class(dts.chron)
# all of these component extractions work:
months(dts.chron)
weekdays(dts.chron)
years(dts.chron)
2009 Apr 20
4
automatic exploration of all possible loglinear models?
Is there a way to automate fitting and assessing loglinear models for
several nominal variables . . . something akin to step or drop1 or add1
for linear or logistic regression?
Thanks.
--Chris
--
Christopher W. Ryan, MD
SUNY Upstate Medical University Clinical Campus at Binghamton
40 Arch Street, Johnson City, NY 13790
cryanatbinghamtondotedu
"If you want to build a ship, don't drum
2018 May 01
2
How would I color points conditional on their value in a plot of a time series
How would I color points conditional on their value in a plot of a time
series. Something like this:
## demonstration data
ttt <- ts(rpois(12, lambda = 8), start = c(2000, 1), freq = 4)
ttt
plot(ttt, type = "p")
## doesn't work--all points the same color
plot(ttt, type = "p", col = ifelse(ttt < 8, "black", "red"))
## also doesn't work--all
2018 May 01
2
How would I color points conditional on their value in a plot of a time series
Excellent! Worked like a charm. Thanks.
--Chris Ryan
On Tue, May 1, 2018 at 4:33 PM, William Dunlap <wdunlap at tibco.com> wrote:
> The ts method for plot() is quirky. You can use the default method:
>
> plot(as.vector(time(ttt)), as.vector(ttt), type = "p", col=ifelse(ttt<8,
> "black", "red"))
>
>
> Bill Dunlap
> TIBCO Software
2007 Jul 13
3
THANK YOU: Updating R version
Based on the feedback received, I did the following:
a) moved my lib sub-directory from the existing installed R version to
c:\myRLib
b) installed the updated R version
c) created .Renviron file in the home directory (C:\R-2.5.1) with the line
R_LIBS=c:/myRLib
d) used .libPaths() command to confirm that the new R installation was
recognizing the myRLib sub-directory
e) deleted my old R
2009 Jun 30
4
conditional coloring of output text in console or in GUI
suppose I have some logical vector
x <- as.logical(c(0,0,0,1,0,0,1,1,0))
x
How would I make the words TRUE appear on the screen in a different
color from the words FALSE?
Thanks.
--Chris
--
Christopher W. Ryan, MD
SUNY Upstate Medical University Clinical Campus at Binghamton
40 Arch Street, Johnson City, NY 13790
cryanatbinghamtondotedu
"If you want to build a ship, don't drum
2018 May 01
0
How would I color points conditional on their value in a plot of a time series
The ts method for plot() is quirky. You can use the default method:
plot(as.vector(time(ttt)), as.vector(ttt), type = "p", col=ifelse(ttt<8,
"black", "red"))
Bill Dunlap
TIBCO Software
wdunlap tibco.com
On Tue, May 1, 2018 at 1:17 PM, Christopher W Ryan <cryan at binghamton.edu>
wrote:
> How would I color points conditional on their value in a plot
2018 May 01
0
How would I color points conditional on their value in a plot of a time series
You may also want to check this out:
plot(ttt, type = "p")
points(ttt, col = ifelse(ttt < 8, "black", "red"))
Eivind K. Dovik
Bergen, NO
On Tue, 1 May 2018, Christopher W Ryan wrote:
> Excellent! Worked like a charm. Thanks.
>
> --Chris Ryan
>
> On Tue, May 1, 2018 at 4:33 PM, William Dunlap <wdunlap at tibco.com> wrote:
>
>> The
2011 Nov 06
9
School cloud solution
This really isn't a CentOS specific queation but that is our server OS of choice.
I manage a student file server and i would like to add cloud access to it. Basically i would like our students to have access to the same files at home that they have at school. This would allow them to start an asignment at home, finish it at school, and print it off without having to worry about losing their
2008 Jul 14
2
question about a small "for" loop
R 2.5.1 on WinXP
I'm trying to create new variables in a dataframe called jaw, as powers
of jaw$age up to the sixth power, and name them
jaw$age.(--the digit corresponding to the power--)
Obviously none of these work (silly for me to try, I suppose):
for (i in 2:6) {
jaw$age.'i' <- jaw$age^i
}
for (i in 2:6) {
jaw$age.i <- jaw$age^i
}
for (i in 2:6) {
2007 Oct 07
5
how to use \Sexpr{} with sweave
I'm trying to learn Sweave. So far things are going well with the chunks of code identified by << >>=
But I'm having trouble with the in-line text use of \Sexpr.
Here is a short example .Rnw file:
\documentclass[12pt]{article}
\usepackage[margin=1.25in]{geometry}
\usepackage{graphicx}
\usepackage{Sweave}
\begin{document}
<<test>>=
pnorm(1)
@
\Sexpr{2+6}
2009 Jan 30
1
problem using identify() after plot()
I can't seem to use the point-and-click identify() function properly.
I'm running R 2.5.1 (I know, I need to get around to upgrading) under
Win XP. The problem is, when I click on a point on the graph, I get an
error, "no point within 0.25 inches." But in some areas, I can click
where there is no visible point anywhere close, and an identify() label
will pop up. The troublesome
2011 Mar 22
2
adding vertical segments to an xyplot in lattice
I have a dataframe that looks like this:
> str(chr)
'data.frame': 84 obs. of 7 variables:
$ county: Factor w/ 3 levels "Broome","Nassau",..: 3 3 3 3 3 3 3 3 3 3 ...
$ item : Factor w/ 28 levels "Access to healthy foods",..: 21 19 20
18 16 3 2 6 17 8 ...
$ value : num 8644 15 3.5 3.9 7.7 ...
$ low : num 7897 9 2.5 2.6 7 ...
$ high : num 9390
2013 Jan 02
0
follow up on teaching R to high school students
Some of you may recall that a few months ago I solicited advice and
opinions on both R-help and R-sig-teaching about an "introduction to R"
workshop I intended to present to a class of high school students
enrolled in a 3-year longitudinal science research class. Much lively
discussion ensued. Well, I did the workshop on 8 November, and thought
I'd give some follow-up as to how it
2009 Jan 27
2
using Sweave with a master file that has several iputted .tex files
Suppose I have a Master.Rnw file that looks something like this:
\documentclass[12pt]{mypaper}
\usepackage[margin=1in]{geometry}
\usepackage{setspace}
\usepackage{url}
\usepackage{indentfirst}
\usepackage{fancyhdr}
\usepackage{Sweave}
\pagestyle{fancy}
\lhead{sonographic rectal diameter and ADHD}
\rhead{ }
\usepackage{abbrevs}
%\usepackage{natbib}
%\usepackage{apacite}
2009 Jan 21
1
trouble converting an array to a dataframe
I start with a dataframe called xrays. It contains scores on films from
each of two radiologists. It is in "long" format. I used the reshape
package to melt a data frame and then cast it into "wide" format, one
line for each patient (identified by redlognumb) with scores from both
radiologists for a given patient on the same line.
I named the result of the casting xrays.data.
2002 Jul 04
4
Script file editors for Windows - submit highlighted text?
Greetings,
I use S+, Stata, SAS and R depending on the weather... The
script file editors in S+, SAS and Stata all allow me to submit a
portion of a developing script file to the running process. In R I have
to use an external editor and either source the entire file or do lots
of copy-and-pasting. Are there any editors out there which interface
to R more closely and let me submit a section
2010 Jul 10
8
Simple solution for small network in a school ?
Hi,
I have to install a small network in a school in a nearby village. The
network will be Linux-only, one server and fifteen desktops. Here's the
idea.
1) Authentication should be managed centrally on the server.
2) User home directories should also be on the server.
3) Users should all have disk quotas, something like 1 GB per user.
4) Some shared directories should be read/write for
2016 Jan 21
2
html manual files nonfunctional
R help.start() opens a web browser as expected, but the ?Manual? html links
are dead (although the ?Reference? and ?Miscellaneous Materials? html links
do work). I get a similar problem from within RStudio.
I?d like to get pointy-clicky html manuals working, to help migrate users
from SAS to R.
I do see R manuals on this system from the EPEL R rpm's in info and pdf
form, for example at