similar to: Unique Values of a Matrix

Displaying 20 results from an estimated 10000 matches similar to: "Unique Values of a Matrix"

2011 Jul 28
3
Data frame to list
I'm hoping this is an easy problem that I'm missing something obvious. Given: x=c(1,1,1,2,2,3,3,3) y=c(1:length(x)) dataframe=data.frame(x,y) I would like to convert this to a list for use with certain functions, where each entry of the list is a subsetted dataframe based on dataframe$x I can do this "brute force" by a for-next loop: unique_x=unique(dataframe$x)
2011 Oct 05
2
Subsetting a data frame with multiple values and exclusions.
Hi all, I realise that the convention is to provide a working example of my problem but the data are of a sensitive nature so I'm not able to do that in this case. I need to query a database for multiple search terms: db <- structure(list(ind = c("ind1", "ind2", "ind3", "ind4"), test1 = c(1, 2, 1.3, 3), test2 = c(56L, 27L, 58L, 2L), test3 =
2011 Mar 10
2
within group sequential subtraction
Hi Everyone, I would like to do sequential subtractions within a group so that I know the time between separate observations for a group of individuals. My data: data <- structure(list(group = c("IND1", "IND1", "IND2", "IND2", "IND2", "IND3", "IND4", "IND5", "IND6", "IND6"), date_obs =
2003 Apr 18
1
stepwise discriminant analysis
Hi all, is it possible to do stepwise discriminant analysis (linear amnd non-linear) in R? If yes- which package does it|? Thanks Janine -------------------------------------------- "El gesto y la palabra son el pensamiento del hombre" Isabel Allende Janine Illian lecturer in statistics SIMBIOS School of Computing University of Abertay Dundee Bell Street Dundee, DD1 1HG Scotland,
2003 Jul 14
1
bootstrapping the lme model
Dear all, I have a data set o which I'd like to fit lme model. There are three factors one of whoich is nested. This should be easy to do using lme in R, but the problem ist that the data is highly non-normal. I was thinking about bootstrapping the distribution but don't have much experience of doing this in R and most references I find don't seem to go beyond the
2008 Sep 29
1
Located Latent Class Analysis (Uebersax)
Dear list members I am new to the list and would be much appreciated if you could help me. I am very interested in applying Latent Class Model for analysing multiple raters agreement data. I have recently found a paper by Uebersax, J. (1993) which described a method in a form of Located Latent Class Analysis (llca). Uebersax has written a Fortran program which is available on the web, for the
2012 Jul 17
1
Stats question: Comparison of the same individuals during two exposure times
Hi, I'm hoping that someone will be able to help. I would like to compare how covariates associate with the risk of a binary outcome during two periods. Period 1 will be non-exposure to a treatment and period 2 will be exposure to a treatment. The same individuals will be examined in each group but I want to be able to compare the association of certain covariates between the two groups to
2002 Aug 19
3
Printers Always Paused - A Solution
I had a problem with Samba 2.2.5 with the printers being permanantly paused to Windows machines. They could print OK - it was only the status that was wrong. The reason for this was because I had used the word office in the printer name / comment. This was causing the parser which recognises the printer status to find 'off' pausing the printer. A quick fix for this is to replace the
2011 Dec 05
1
Subsetting a data frame
Hi R users, I really need help with subsetting data frames: I have a large database of medical records and I want to be able to match patterns from a list of search terms . I've used this simplified data frame in a previous example: db <- structure(list(ind = c("ind1", "ind2", "ind3", "ind4"), test1 = c(1, 2, 1.3, 3), test2 = c(56L, 27L, 58L,
2012 May 07
3
How to plot PCA output?
I have a decent sized matrix (36 x 11,000) that I have preformed a PCA on with prcomp(), but due to the large number of variables I can't plot the result with biplot(). How else can I plot the PCA output? I tried posting this before, but got no responses so I'm trying again. Surely this is a common problem, but I can't find a solution with google? The University of Dundee is a
2015 Jul 21
1
Rsync differences using NFS & SMB
Hi, I’m having difficulties trying to understand the performance differences between NFS and SMB. I have used rsync (OS X) over SMB (mounted network storage) and using rsync (OS X) over SSH (NFS mounted storage) From my test, rsync over SMB builds a file list each time comparing modified source/destination, where as rsync over ssh/nfs is incredibly quicker, pretty much instant. During the
2011 Mar 09
2
Cleaning date columns
Hi Everyone, I have the following problem: data <- structure(list(prochi = c("IND1", "IND1", "IND1", "IND2", "IND2", "IND2", "IND2", "IND3", "IND4", "IND5"), date_admission = structure(c(6468, 6470, 7063, 9981, 9983, 14186, 14372, 5129, 9767, 11168), class = "Date")), .Names =
2007 Dec 18
2
R brakes when submitting a query to MySQL
Hello, I would like to retrieve data stored in MySQL database, so I installed RMySQL package. I can successfully connect with the my database using the following code > dvr<-dbDriver("MySQL") > con2<-dbConnect(dvr,group="exbardiv") > mysqlDescribeConnection(con2) <MySQLConnection:(972,0)> User: mmorag Host: localhost Dbname: exbardiv
2010 Feb 23
5
deleting column from data frame
Hi to all, test <- data.frame("X"=c(1:4),"Y"=c(5:8),"Z"=c(8:11)) test <- test[,-2] Is there a way to specify the col name "Y" to delete instead the number? Kind regards Knut
1998 Nov 23
6
Small linux print server
This is a bit off topic, however it's related to a samba based network... I've got a small network (10 users) running samba on a Linux box with a HP network printer. This is working so well, that the only network problems that I have are with printers other printers "shared" by Win 95. Therefore: I was planning to turn an old 486 with an 80M HDD into a print server, however the
2008 Jul 01
2
"Invalid object" error in boxplot
Hi, I'm trying to make a boxplot with the data at the end of the message, and when I try to execute the command >boxplot(Diatoms) (or for any other field instead of "Diatoms") I get the following error message: Error in oldClass(stats) <- cl : adding class "factor" to an invalid object Any advice would be much appreciated. Thanks a lot, Miriam Date
2010 Mar 29
5
Finding common an unique elements in character vectors
Dear R-list, I have a problem which I think is quite basic, but so far google has not helped me. I have two vectors like this: vector_1 <- c(Belgium, Spain, Greece, Ireland, Luxembourg, Netherlands, Portugal) vector_2 <- c(Denmark, Luxembourg) I would like to find the elements in vector_1 that are not in vector_2 so that i get a vector with these countries: Belgium, Spain, Greece,
2005 Dec 05
2
plot() and points() precision control
Hi all, I have a problem in that when I plot points that have a high degree of precision, some significant rounding seems to occur, resulting in uneccessary overlap of my points. Is there a way to specify the resolution or precision in plotting functions? Is there an underlying grid I have to modify somehow? Many Thanks, Jon -- Mares eat oats and does eat oats and little lambs eat ivy. A
2015 Sep 21
1
Rsync Daemon & network users
Dear all, Can someone let me know if it is possible to setup an Rsync server with domain authenticated users e.g. Active Directory users rather than having username:passwords in plain text? Thanks, Simon The University of Dundee is a registered Scottish Charity, No: SC015096 -------------- next part -------------- An HTML attachment was scrubbed... URL:
2006 Aug 02
4
1.0rc3 problem w/ Thunderbird 1.5.0.5 on Mac OS X
Howdy, I'm very excited about the new dovecot release because I've been having problems with a hang on saving messages to my sent-mail box over imap+ssl. I installed 1.0rc3 over my 1.0rc2 install on FreeBSD 5.3 in the same manner as all the other upgrades I've done. After checking my email, tbird became nonresponsive and I saw this repeating in my logs ad infinitum: Aug 2 10:17:10