similar to: Re: A Problem I'm having with R

Displaying 20 results from an estimated 10000 matches similar to: "Re: A Problem I'm having with R"

1999 Jul 12
0
Re: S+ code
Dear Mr. Cleland, SEM-ueser, R-User, ... there isn't s-plus or R (a GNU-free version of the programming language S) code for structural equation modelling. I always wondered why. I personally think the language S, with the implementations S+ and R, is a good-perhaps the best-environment for statistical analyses. Why? It is object orientated, logical, etc. For example: the code for least
2006 Jun 19
1
how to do this sum?
Hi, Everybody! I have a big table which named table_x, and all the elements in the table is very large! Now I want to do the summay on the talbe_x[,3]. Unfornately, I can't get the right result! And the R give the warning messages as follow: > sum(table_x[,3]) >[1] NA >Warning message: >interger overflow in sum(.);please use sum(as.numeric(.)) (the original upper message is
2002 May 29
4
Why is.integer() doesn't work with single values?
Hi all, I don't understand the behavior of is.integer(): > x <- integer() > is.integer(x) [1] TRUE > x <- 10 > is.integer(x) [1] FALSE > x <- 1:10 > is.integer(x) [1] TRUE Why is.interger() returns FALSE if x has only one element? And how can someone check if x is an integer but contains only one value? (R 1.5.0 on Linux i386) Thanks, Sven
2012 May 15
2
max value
Here is an R problem I am struggling with: My dataset is organized like this... subject session variable_x variable_y 01 1 1 <interger values> 01 1 2 01 1 3 01 2 1 01 2 2 01
2006 Jul 09
3
vignette("introduction") causes "Error in sprintf(" (PR#9069)
Full_Name: Chris Evans Version: 2.3.1 OS: Windoze XP Submission from: (NULL) (217.34.100.197) If I give "vignette("introduction")" I get: Error in sprintf(gettext(fmt, domain = domain), ...) : use format %s for character objects vignette() works for some other vignettes and "vignette()" gets me a list of vignettes and shows three with the name
2010 Apr 23
1
Oddity with internet access and R 11.0 with Sophos firewall and Windoze XP - solved
Just in case anyone else hits this. I just installed R 11.0 alongside R 10.1.0 (off my D: drive in D:\R\... but I think that's irrelevent) and all went well, I selected my nearest CRAN mirror (Bristol is the one I like) and getting the selection list seemed to take ages though it did come eventually. However, I then got an error message saying that R couldn't make contact on port 80. I
2009 Jul 18
2
Zinb for Non-interger data
Sorry bit of a Newbie question, and I promise I have searched the forum already, but I'm getting a bit desperate! I have over-dispersed, zero inflated data, with variance greater than the mean, suggesting Zero-Inflated Negative Binomial - which I attempted in R with the pscl package suggested on http://www.ats.ucla.edu/stat/R/dae/zinbreg.htm However my data is non-integer with some pesky
2008 May 28
4
OT: batch processing XLS files to CSV
Dear R gurus, particularly those of generous M$ tolerance and diverse gifts and knowledge! I have an interesting challenge that I will end up crunching in R involving service usage by patients. Maybe I can do all of it in R but I can't see how yet. My situation is that our IT Department can give me loads of XLS files about patients one of our services have seen. The are one per patient
2012 Oct 20
2
Help with programming a tricky algorithm
Hi All, I'm a little stumped by the following problem. I've got a dataset with the following structure: idxy ix iy country (other variables) 1 1 1 c1 x1 2 1 2 c1 x2 3 1 3 c1 x3 . . . . . 3739 55 67 c7 x3739 3740 55 68 c7 x3740 where ix and
2011 Feb 09
1
Question on sapply
Hello All, Thanks in advance for all help I have the following vector of strings that I want to split.. > y = c("1/1","2/2", "3/3", "4/4") > y [1] "1/1" "2/2" "3/3" "4/4" > z = strsplit(y,"/") > z [[1]] [1] "1" "1" [[2]] [1] "2" "2" [[3]] [1]
2004 Nov 14
1
question about the tick label.
Hello, I am a beginner of R. I want to plot the vectors Y vs. X where X has continuous interger values. How can I use the name of each element as the tick label? Thanks a lot! Haiyong
2005 May 05
2
[LLVMdev] (no subject)
>> In other words, abandoning overflow detection makes the >> duplication of types redundant, while requiring it would be a >> great burden on CPUs that don't have overflow exception hardware. > >Yes, you're right. This has been a desired change for quite some time >now. Unfortunately, its a huge impact to nearly every part of LLVM. We >will
2006 Dec 05
5
if(){} else{}
Dear R-community, my data set looks like 'mat' below. Plant<-c(NA,1,1,1,NA,NA,NA,NA,NA,1); Value1<-rnorm(1:10); Value2<-rnorm(1:10); mat<-cbind(Plant,Value1,Value2); I receive data from two different sites. One site is identified by an interger number, the other site has no data in column Plant=NA. My pb: I'm trying to assign labels "A" or "B" to
2008 Jun 11
1
[LLVMdev] question on constant folding
Hello, LLVMers. I have a quick question for constant folding. When I treated a code twice by changing the data type from 'floating point' to 'integer,' What I found was: optimization is done better for the code having int's. E.g., for this simple code: ------------------------------------------------------------- double foo() { double i,j; double sum = 0; for (i=0;
2006 Jul 30
1
Power of a single sample binomial test
The only references to this I can find searching the archives are to a student who asked in relation to his course work on a stats course. Promise I'm not doing that! I have a situation in which we want to test proportions against an expected proportion, binom.test() is great. I'd like to do some post hoc power tests (the x and n were beyond our control in the survey as all we could set
2009 May 06
4
[LLVMdev] Suggestion: Support union types in IR
Chris Lattner wrote: > On May 5, 2009, at 8:09 PM, Talin wrote: > > >> I wanted to mention, by the way, that my need/desire for this hasn't >> gone away :) >> >> And my wish list still includes support for something like uintptr_t >> - a >> primitive integer type that is defined to always be the same size as a >> pointer, however large or
2011 Sep 20
2
update.packages() as ordinary user, /usr/lib/R/site-library is not writable
I am moving from windoze on a Dell laptop to Debian but I seem to have hit a snag for R. I managed to find the information to point an /etc/apt/sources.list entry at my local CRAN repository and have installed R 2.13.1 for squeeze from the Bristol UK repository. I installed a number of the additional R packages using synaptic which reported no errors but when I run my first
2006 Jul 24
1
Plotting league tables/ caterpillar plots
Dear list, I was wondering if there is a function to plot league tables, sometimes also known as "caterpillar plots"? A league table is conceptually very similar to a box plot. One difference is that the inter-quartile ranges are not shown. If there isn't such a function a first attempt for a "selfmade" plot would be to tell boxplot not to plot boxes (sounds silly
2011 May 29
1
Oddity: I seem to have a variable in a dataframe that doesn't show in colnames() - can anyone advise?
I may be being dopey, I surely am, but I'm baffled by this. I've been working, on and off for a few days in R version 2.13.0 (2011-04-13) i386-pc-mingw32/i386 (32-bit) working it through ESS. I've got a dataframe created a couple of days back, during the session: > dim(AllDat) [1] 27270 94 I came back this morning and misremembered my variables and thought I had a variable
2010 Aug 21
4
basic hist() question
Hi list I loaded the content of a file dureetasks.txt to variable a. This file contains an interger per line. when I print a vector, it displays correctly. however, when I try to print the histogram, I get this error message > a=read.table("dureetasks.txt") > hist(a) Error in hist.default(a) : 'x' must be numeric Can you help please? regards -- PhD candidate in