similar to: Converting yr mo da to dates

Displaying 20 results from an estimated 4000 matches similar to: "Converting yr mo da to dates"

2005 Jan 23
5
How to use "identify"
I can't get identify to work, using R 2.0.1 under windows xp pro, service pack 2. Here's what I enter, and the result: > plot((our.frame2$c1),(our.frame2$c9)) # Produces desired plot > identify(our.frame2$c1) # Plot comes to forefront, so I select a point warning: no point with 0.25 inches numeric(0) Is my call to identify correct? The help page for indentify (from
2003 Feb 24
2
trellis.datasets help
I've looked every way I can think of for help on trellis.datasets, but nothing comes up for me. Please help me find information on what is included, and how to get at those data. Thanks. Dave Parkhurst
2005 Jan 20
2
font size in console
I'm using R in a statistics class, and when I project the console, the font is smaller than ideal. I've checked the faq's, the manual, and the help system as best I can, and I don't see how to change the font size. Can it be changed from within a session, or will I have to ask the folks who installed the program on the server I use in classes to set it (assuming that can be
2003 Mar 14
6
length() misbehaving?
I'm having a weird problem with length(), in R1.6.1 under windows2000. I have a dataframe called byyr, with ten columns, the first of which is named cnd95. summary(byyr) shows that byyr$cnd95 contains the factor level "tr" 66 times. Also, when I enter byyr$cnd95 at the command line, I can count 66 "tr" elements in the resulting vector. However, when I enter n95trt <-
2003 Aug 26
1
rfImpute (for randomForest) crashed
In trying to execute this line in R (Version 1.7.1 (2003-06-16), under windows XP pro), with the randomForest library (about two weeks old) loaded, the program crashed: bost4rf <- rfImpute(TargetDensity~.,data=bost4rf0) Specifically, an XP dialog box popped up, saying ?R for windows GUI front-end has encountered a problem and needs to close.? That was the dialog saying asking whether I
2003 Aug 05
1
na.action in randomForest --- Summary
A few days ago I asked whether there were options other than na.action=na.fail for the R port of Breiman?s randomForest; the function?s help page did not say anything about other options. I have since discovered that a pdf document called ?The randomForest Package? and made available by Andy Liaw (who made the tool available in R---thank you) does discuss an option. It is an implementation of
2006 Feb 05
1
return yr/mo archive of posts
looking at ways to return an archive, by year/month in the past, (via php) i''d do something like pull all the entries, ordered by date and iterate through them, doing a check on the month and year and adding them to an array if there was a change that method doesn''t really feel very fluid or rails-like. any suggestions?
2005 Jan 26
2
graphsheet substitute in R?
I'm using R 2.0.1 in a class I teach, with most students working under windows XP. We have a data frame with the first column containing the factor "site," and five water-quality variables at each site. As one part of exploring these data, I'd like the students to run by(ourdata,site,pairs). When I try that, however, the pairs plots for the first 10 sites scroll past, and
2003 Aug 15
3
How to reinstall rpart?
After entering ?library(rpart)?, I tried to plot an existing rpart tree, and got this error message: Error: couldn't find function "plot.rpart". However, ??plot.rpart? does bring up the help for the function. The same things occur for text.rpart, although print(my.tree) does work. So, I tried to re-install rpart using Packages | Install from CRAN, but then I get this
2004 Aug 23
2
Reading GAL file
Greetings: I am trying to work with spdep (everything is "brand new" downloaded this morning). OS = Windows 2000 (also up to date). The code I am using follows: #example gal.county=read.geoda("lnpilnd.GAL", row.names=NULL, skip=0) summary.nb(gal.county) Error in summary.nb(gal.county) : Not a neighbours list #end The gal file works just fine in GeoDa (also up to date).
2004 Oct 17
4
Descriptive statistics table
Greetings: I would like to make a table with descriptive statistics for a data.frame. I guess the question is how can I put together, in a table, the results from, say: apply(df, 2, mean, na.rm =T) apply(df, 2, median, na.rm =T) ....... Thanks, Mihai Nica Jackson State University 155 B Parkhurst Dr. Jackson, MS 39202 601 969 5423 601 914 0361 [[alternative HTML version deleted]]
2003 Mar 14
1
Fw: length() misbehaving?: More
With the problem below, I've discoved that n95trt<-length(byyr$cnd95[byyr$cnd95=="tr"&!is.na(byyr$cnd95)]) does give me the correct count for the number of "tr" entries. (The same behavior occurs for the "c" level of the cnd95 factor.) It appears that byyr$cnd95=="tr" is finding both "tr" AND NA entries. Is this a bug, or is it to be
2003 Aug 04
2
na.action in randomForest
The help page for randomForest shows na.action=na.fail as a parameter, and does not describe other possibilities for na.action. I have a regression problem, with about 1000 rows in my data frame, and with an NA in occasional predictor variables, in about 5% of rows. I would like to have all rows included in the analysis, to the extent possible. (That seems to be possible in rpart, for example.)
2004 Feb 29
1
graphics device problems
I'm using R 1.8.0 under windows XP. I can't get certain of the graphics devices set up. For example, when I copy this line directly from the "postscript" help screen, I get the error messages that follow it: > postscript("foo.ps") Error in PS(file, old$paper, old$family, old$encoding, old$bg, old$fg, : unable to start device PostScript In addition:
2003 Aug 06
1
problem with download.packages
R Version 1.7.0, under windows XP pro The help page for update.packages says that { `download.packages' takes a list of package names and a destination directory, downloads the newest versions of the package sources and saves them in `destdir'. If the list of available packages is not given as argument, it is also directly obtained from CRAN. If CRAN is local, i.e., the URL starts with
2004 Nov 26
1
Coplot Given text
Greetings: I am unsuccessful in suppressing "Given : myvariable" from a coplot. There was such a question in the past but the thread breaks down. I am sure this is a "for dummies" question :-). I tried: coplot(myvar~myvar | myvar, show.given=FALSE, xlab="....", ylab="...", main=" ") and some other variations (including without main=" ")
2005 Feb 19
1
scales argument in lattice plots
I'm using R 2.0.1 under windows XP. I'd like to produce an xyplot with lattice, in which the x axis shows normally (with tics and numbers), but there are neither tics nor numbers for y. (I'm using layout=c(1,10), and ylab="".) From the html help for xyplot, it appears I need to use the scales argument, but I don't fully understand the description there, about how to
2004 Apr 12
1
Panel Data Analysis
Greetings: I am trying to find a package/solution for panel (longitudinal) data analysis. Unfortunately it seems I don't know where to start. Could somebody offer a hint? Thanks, Mihai Nica Jackson State University 155 B Parkhurst Dr. Jackson, MS 39202 "No good deed will ever remain unpunished" [[alternative HTML version deleted]]
2004 Aug 27
4
Running R from CD?
At work I have no permission to install R. So, would anyone know whether it is possible to create a CD with a running R-installation for a windows(XP) pc? And of course, how to? Thank you for your help, Hans van Walen
2017 Dec 18
0
Finding center of mass in a hydrologic time series
Hi Eric, the following works for me. HTH, Eric library(EGRET) StartDate <- "1990-10-01" EndDate <- "2017-09-30" siteNumber <- "10310000" QParameterCd <- "00060" Daily <- readNWISDaily(siteNumber, QParameterCd, StartDate, EndDate) # Define 'center of mass' function com <- function(x) { match(TRUE, cumsum(x/sum(x)) > 0.5) -