similar to: standard library?

Displaying 20 results from an estimated 4000 matches similar to: "standard library?"

2006 Jul 11
3
file.choose but for folder/directory?
Hello there, This question is relative to WindowsXP, using R 2.2.1: I am looking for a function that allows a user to interactively choose a directory so I can use list.files to process all the files in that directory. I've looked at getwd, but this is not interactive. The functions file.choose and choose.files are the right idea, but these only permit selection of a file within a
2007 Feb 20
4
linux gplots install unhappy
Hello all, I use R on both windows and a "mainframe" linux installation (RedHat enterprise 3.0, which they tell me is soon to be upgraded to 4.0). On windows I installed the package gplots without trouble, and it works fine. When I attempted to do the same on the unix computer, the following error message was forthcoming: downloaded 216Kb * Installing *source* package
2004 Aug 16
2
extract a row
Hello there, Using 1.9.0 on WinXP... I have a data frame, one column of which is named "rate". The column has text entries like "fast", "medium", "slow", "very slow", and so forth. I have not tried to make them factors, but maybe R did this automatically. Anyway, I would like to display on the console rows that meet a rate criterion. So I want
2006 Oct 11
1
samples to dataframes
Hello all, I'll bet this is not complicated, but I really did hunt for information on it, and tried some ideas without success. Running Windows XP and R 2.3.1 I am using the Sound package to read in .wav files, and this works fine. The R object produced is of class "sample". I want to use some of the functions in the package Seewave to do further analysis, but this package
2006 Dec 19
2
fit sine?
Hello list, I am making scatterplots of data that vary sinusoidally over 24 hours. With a bit of previous help from this list, I now can get an x-axis with time tics from 00:00 on the left edge to 12:00 in the middle and 00:00 on the right edge, i.e., just 24 hours. Now I would like to fit a sin function to the plot. I've looked all over CRAN and the web in general, but have not found a
2006 Nov 20
1
a little help needed plotting chron object
Hello there, Using R 2.4.0 on Solaris (Unix): I am trying to control the X axis range on a simple time of day plot. I made a test program (below) that gets file time stamp information from the files in the directory where R starts. The goal of the test program is to plot the time of day of file creation on an x axis that spans a user-specified range (like 12:00:00 to 15:00:00). If I allow
2004 Jun 01
1
swapping with data.frame
Hi there, I have some data which are convenient to enter as lists. For example: t1<-list(fname="animal1",testname="hyla",dspkr="left",res1=39.7,res2=15.0) t2<-list(fname="animal1",testname="bufo",dspkr="left",res1=14.4,res2=56.1)
2006 May 19
1
trouble with plotrix package
Hello list, I wrote a simple program to plot data on polar axes, taking advantage of the plotrix package and its function radial.plot. The basic plot works fine, but I am having difficulties with the formatting. There are three problems, but I thought I would attack them one at a time. Here is the first: If my data set contains values with all vector lengths between 0 and 100 (and various
2004 Mar 19
5
loop through files in a dir
Hello I have data in many files in a directory, how can I loop through the files in a given dir in-order-to build a data.frame? thanks
2000 Mar 08
1
Coercing character to factor
I just downloaded version 1.0.0 and several binary libraries (VR, rpart, norm, stataread) - WinNT version. I then converted a file from Stata 6.0 to R format by using the stataread library. The file converts perfectly and I was able to use the VR function lda on the dataframe without difficulty. I then tried to use the same dataframe with RPART. The model statement:
2001 Jul 12
2
rpart puzzle
I've been using the package rpart with R 1.3.0 for Windows to produce simple classification trees for some measurement data from paleontological specimens. Both the rpart documentation and the output confirm that the program produces splits on continuous data that leave "holes" in the data. It is probably of little practical importance, but is there a reason why the binary
2000 May 02
1
Graph superimposition
I'm running a four-group, 15-variable discriminant analysis using the MASS function lda(). Discriminant functions 1 and 2 explain about 93% of the variance. I would like to plot the group scatters in a single scatterplot, identify each group's centroid, and encircle the group scatter with a 90% bivariate confidence ellipse. I can do this for each group on a separate plot, but I
2000 Jun 25
1
renaming columns
I frequently get data sets with cryptically-named variables. The datasets are more useful to me with informative variable names. I know that I can rename variables using the following command: dimname(dataset[[2]][index.of.variable.to.be.renamed]<-new.variable.name If I want to do this inside a function (say something I call RenameCol) what is the best way to communicate the
2002 Jul 03
2
"Best" Out of box Linux distro for R
At the risk of starting a holy war, I'd like opinions on the "best" current Linux distribution to run "out of box" with current versions of R. I note rpms for various versions of RedHat, SUSE, Mandrake, and Debian. I've had experience with RH 7.1 & 7.2 and it hasn't been entirely pretty. I understand that 7.3 is a bit "better", but have also
2001 Oct 03
1
R != S-Plus
David Brahm's initial post seems to me to be filled with a mixture of bugs, wants, and needs coupled with a desire to "make" R become S-Plus. David, if S-Plus works for you, why are you bothering to convert all your code to R? No one has ever asserted that R==S (or S-Plus), and there is no reason to expect this equality to hold, ever. R is open source. If you want to change
2002 Jul 12
2
Crosstabs in R
Before I reinvent the wheel, I have need for a relatively straightforward crosstabulation (2 x n) function. I know that R has table(), ftable(), xtabs(), and summary(xtabs()), but none of these produce a fully "tricked" out cross-tabulation with marginal totals, expected cell frequencies, and an array of statistics about the contingency table. Is there a more complete (something
2005 Nov 23
2
negative binomial overdispersion question
Hello, I'm a grad student in the Intelligent Transportation Systems lab at Portland State Univ. in Portland, OR, USA. I'm trying to learn the basics of R to run a negative binomial in the near future, and so I ran a test regression on roadway crash data obtained from "Statistical and Econometric Methods for Transportation Data Analysis" by Washington et al (p. 250). I ran the
2000 Jun 25
0
R 1.1.0 Freeze Ups
I've experienced numerous "freeze ups" with R 1.1.0 in the past few days. I'm running on a Windows 98 (*not SE*) notebook with 128 MB RAM. Typically I have no other applications running when I load "R". The circumstances that frequently leads to the "freeze ups" is when I have done the following: >fix(somefunction) This spawns "Notepad",
2000 Aug 24
0
distributional properties of rnorm
I've been trying to generate a series of random normal distributions using the rnorm function. After I generated the first set: set1<-rnorm(150, 505.5, 15.2) I checked the mean and standard deviation of set1. I was surprised to find the mean at 502.37 (rounded) and the standard deviation at 13.3 (again, rounded). While I know that it is unrealistic to expect the distribution of the
2000 Aug 24
0
rnorm
Thanks to all who replied to my query about the "normality" of rnorm. I am using R 1.1.1 (the version released last week) under Windows 98. It has been unusually hot here and I noticed that the CPU fan seemed to be running at high speed for a long time. The CPU probe that I use to monitor the temperature emitted a warning shortly after I sent off the email. After shutting my