similar to: Bug in sd() and var() in handling vectors of NA (R version 2.7.1)?

Displaying 20 results from an estimated 400 matches similar to: "Bug in sd() and var() in handling vectors of NA (R version 2.7.1)?"

2007 May 05
1
importing data
Hello, I need to import a data set. I have never imported data files with R. I have always worked on simulated data. I have looked at R Data Import/Export manual. It is a bit peculiar because my data base is already an R object called "japan". I guess it is not yet a data set, and I don't know how to manipulate variables from it. When I type "japan", here is an extract
2010 Jan 09
3
string functions
Hi! Does anybody know a string function that would calculate how many characters two strings share? I.e. ("Hello World","Hello Peter") would be 7. Thanks. Laetitia
2006 Jan 24
9
Number of replications of a term
Hello, Is there a simple and fast function that returns a vector of the number of replications for each object of a vector ? For example : I have a vector of IDs : ids <- c( "ID1", "ID2", "ID2", "ID3", "ID3","ID3", "ID5") I want the function returns the following vector where each term is the number of replicates for the
2010 Apr 25
3
numerical or not?
Hi, I've had a little problem for several weeks now. It is annoying and therefore I will ask for help now: When I write a script with several iterations, I make it write out a text file to save the data during the run. For example I write: if (i %% 25) write.table(output,"temporary_output.txt") Later on, when I read in this output and want to calculate things, R complains that
2010 Aug 20
3
if-else function
Hi R people! I am looking for some suggestions writing an if-else function. The idea is to characterize different plots containing counts of variables (here parasites). If a plot has a count equal or higher than 4 for any parasite the function should return a 1 else a 0. Later I can loop the function over all plots. Here I have a little subset of my data: VariablePAR Plot1
2003 Apr 28
2
Algorithm did not converge
Help! Being a bit of a novice, please bear with me if this is a stupid question! I am trying to fit a saturated model to some count data that I have: model<-glm(COUNT~SP*LOC*COL*TIME*TREAT,poisson) but R keeps on crashing and coming up with (occasionally before crashing) an error that states: Algorithm did not converge in: (if(is.empty.model(mt)) glm.fit.null else glm.fit)(x = X, y = Y,
2006 Feb 15
2
Setting intial path under windows to MyComputer in Interactive file browser
Hello everyone, How can I specify in tcltk file browser the initial directory to "MyComputer" in Windows where Drives and Partition are accessible? And just a little question if anyone knows, is there a way to use the function choose.files under windows to select a directory? Thanks a lot for your help. Laetitia.
2005 Jun 04
2
glm with a distribution free family
Dear R users, I am trying to fit a glm with a distribution free family, link = log and variance = constant*mu. I guess I have to use the quasi family but the choices of variance are restricted to constant or mu or mu^2..., I don't know the way to choose the variance that I need, i.e. constant*mu. If you have any ideas or advice, please tell me. Thanks, Laetitia Mestdagh Laetitia Mestdagh
2004 Feb 03
2
Prompt / Console problem
Hi, I have R installed under a Mandrake linux system and I don't have shell utilities any more under my R console such as completion when writing a file path, back and forth in the history, bindkeys... Moreover when I quit R by saving, no .Rhistory file is created while the .Rdata is. I don't get how this work, I thought it was based on the user unix shell but it does not seem. Any
2013 Oct 01
0
Question ANACOR-HELP
Dear all, Sorry for bothering you but I am having a doubt for a long time and I cannot find a solution for it. I don't know if you can help me but I am doing a research study on Correspondence Analysis and I have been using the package ANACOR. After performing the Correspondence Analysis, I would like to have the factor loadings associated to the first two components. How can I do it?
2011 May 26
3
text mining
Hi, how can I import a document whose type is. "txt" using the package tm? it is the command to know that my document is not placed in the library package tm. thanks. -- View this message in context: http://r.789695.n4.nabble.com/text-mining-tp3552221p3552221.html Sent from the R help mailing list archive at Nabble.com.
2010 Jan 11
1
apply a function down each column
Hello World, I have a function that makes pairwise comparisons between two strings. I would like to apply this function to my data (which consists of columns with different strings) in the way that it compares the first with the second entry, and then the third with the fourth, and then the fifth with the sixth, and so on down each column... So (2x-1) and (2x) would be the different entries to be
2010 Aug 28
2
extracting columns
Hi, Can anybody show me how to extract all columns in my dataset that are polymorphic? Or phrased in another way I would like to delete all columns that have no more than one letter in it (that are monomorphic). Thank you. Laetitia -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: seqCol.txt URL:
2010 May 19
1
sample and rearrange
Dear Wu Gong and Peter Ehlers, thank you very much for your help debugging my script. Now I have a general following up question: Is there a straightforward way to rearrange the following dataset so that all first letters of each column will be combined in one column, all the second letters in a second column, all the third ones in a third column and so on, resulting in 7 columns, i.e. for
2005 May 31
1
GLM question
I am unfamiliar with R and I’m trying to do few statistical things like GLM and GAM with it. I hope my following questions will be clear enough: My datas ( y(i,j ))are run off triangles for example : J=1 J=2 J=3 I=1 1 2 3 I=2 4 5 I=3 6 My model is : E[y(i,j)] =m(i,j) Var[y(i,j)] =constant *m(i,j) Log(m(i,j)) = eta (i,j) eta (i,j) = c + alpha(i)
2010 Mar 08
1
compare tables
Hi! I need some help to finish my script. I have two tables that I combine randomly to produce a third table. This I do for hundreds of iterations. In the output file I get all the simulated tables after each other. It looks like this (in this case 3 iterations): output file: [[1]] [,1] [,2] [,3] [1,] "GM030005" "WI920024" "CCCC" [2,]
2010 Mar 07
1
Using Samba NTLM authentication
Hi,guys . I implement HTTP Proxy running in Linux environment and my proxy have to support NTLM authentication. My proxy written in C++. I want to use samba API ,but I don't* know how and what* API can be used exactly. I would very appreciate if you can advice me some example code and any advice which can help me in my task. Thanks in advance,Arkady
2003 Aug 29
3
R and pointer
Hi everyone, I want to write a function that modify directly variables passed as parameters (the equivalent in C language of *ptr/&ptr) so that I don't have to return a list and to reaffect all my variables. Is it possible to do so in R? Thanks a lot. Laetitia Marisa.
2004 Jul 27
1
Display on Windows console from script
Hello, When I launch a script under windows it does not display sequentially my cat calls or maybe the console is not refreshed at every line of my script. For instance with that code cat("\n\n================== IMPORT DATA FROM FILE ===================\n\n") fileschosen <- choose.files(caption="Select gpr files", filters = matrix(c("genepix
2006 Nov 15
1
PAM authentication to Active Directory
Hello list, I want to authenticate (only authenticate) through active directory with PAM. I googled around and everything I found, wheter it is forum posts or howtos, it always talks about winbind and joining the linux machine to the windows domain. I do not which to do this, I only want to get PAM to authenticate with the AD and then everything else is local. Should I use pam_winbind ?