similar to: simplify a dataframe

Displaying 20 results from an estimated 100 matches similar to: "simplify a dataframe"

2013 Sep 10
3
to delete lines by means of a vector
Hi I would like to eliminate a large number of lines of the dataframe df1 The lines to delete are given here by the values of Mat (ex : 2,4,7,10). but I have a large number (300) values of Mat dput(df1) structure(list(Mat = c(1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10, 10, 11,
2013 Jul 24
3
Change values in a dateframe
Hello I have the following problem : The dataframe TEST has multiple lines for a same person because : there are differents values of Nom or differents values of Prenom but the values of Matricule or Sexe or Date.de.naissance are the same. TEST <- structure(list(Matricule = c(66L, 67L, 67L, 68L, 89L, 90L, 90L, 91L, 108L, 108L, 108L), Nom = structure(c(1L, 2L, 2L, 4L, 8L, 5L, 6L, 9L, 3L, 3L,
2002 Aug 30
2
Partitioning an nxp Time series matrix
Hi, I have an nxp data set of time series. For my final year project, I would like to partition this data set into a smaller number of units ( < n). Where each of the units contains time series that move closely together (i.e. in unison), and the "simmilarity" (in terms of occurence & amplitudes of peaks and troughs) between the segregated units is "low". I know
2009 Mar 11
3
Converting a dataframe to a matrix
If I have a dataframe which is organized like this: name color likes? 1 sally red 0 2 sally blue 1 3 sally green 1 4 jake red 0 5 jake blue 1 6 jake green 1 7 tom red 1 8 tom blue 0 9 tom green 0 And I want to create a matrix in the form: red blue green sally 0 1 1 jake 0 1 1 tom 1 0 0 Are there any built-in
2005 Mar 30
6
French Curve
Dear R experts, Did someone implemented French Curve yet? Or can anyone point me some papers that I can follow to implement it? thanks in advance for your help. Paul
2010 Feb 13
4
Labels on a pyramide
I am using pyramid.plot() from the plotrix package. I have something like this ############################################ xy.pop<-dados$masfr xx.pop<-dados$femfr #agelabels<-dados$femlab xycol<-color.gradient(c(0,0,0.5,1),c(0,0,0.5,1),c(1,1,0.5,1),11) xxcol<-color.gradient(c(1,1,0.5,1),c(0.5,0.5,0.5,1),c(0.5,0.5,0.5,1),11) xylab<-dados$maslab xxlab<-dados$femlab
2002 Jun 17
0
Samba unable to browse shares in new network
Hello, Currently we are using a new network with an old samba server. Previously we were using a standard hub based network. Now we have Cisco 3516 switches and a new configuration of V-lan masking. In our old non v-lan segmented network, I had no trouble setting up a samba server. Currently I can browse the samba server, but I can not attach to any shares. I have updated our smb.conf file
2011 May 24
0
(no subject)
SVP: puisje avoir les exercices proposées sur R en biostat Merci _______ KOJI ERNEST Hydrobiologiste/Environnementaliste Université de Yaoundé I-Cameroun S/C Facultés des Sciences B.P 812 E-mail: kojiairness@yahoo.fr Tel :(237) 74-33-44-57 [[alternative HTML version deleted]]
2020 Oct 09
1
Mail server troubles
On 2020-10-09 14:16, Kenneth Porter wrote: > --On Friday, October 09, 2020 6:29 PM +1300 Rob Kampen > <rkampen at kampensonline.com> wrote: > >> If this reject is due to their spam filtering process, it is actually the >> email author's problem - how they make up their sentences, key words etc. >> and thus the problem will travel with them, to whatever email
2007 Mar 11
3
Enable pop3 / pop3 and imap
Dear All, I'm new to use dovecot for the Mail service... So, how to enable the mail service ( pop3 / pop2 / imap ) ? Edward.
2008 Dec 09
2
Need help optimizing/vectorizing nested loops
Hi, I'm analyzing a large number of large simulation datasets, and I've isolated one of the bottlenecks. Any help in speeding it up would be appreciated. `dat` is a dataframe of samples from a regular grid. The first two columns are the spatial coordinates of the samples, the remaining 20 columns are the abundances of species in each cell. I need to calculate the species richness in
2013 Jun 08
1
reading a character translation table into R
I have a txt file (attached) that defines equivalents among characters in latin1 (or iso-8859-1), numeric &#xxx; codes, HTML entities and latex equivalents. A portion of the file is shown inline below, but may not be rendered well in this email. I'd like to read this into R to use as a character translation table, but am stuck on two things: - The 5 fields in the file are
2011 Jul 27
1
create a index.date column
Dear R users, I created a matrix that tells me the first day of use of a category by id. #Calculate time difference test$tdiff<-as.numeric(difftime(as.Date("2002-09-01"), test$ftime, units = "days")) # obtain the index date per person and dcategory index.date.test<-tapply(test$tdiff, list(test$id, test$rcat), max) Nonetheless, at the moment I think will be
2010 Apr 27
1
save a data frame in environment
Dear group, Here is my function : position<-function(x) { pose<-read.csv2((paste(c("LSCPos",x,".csv"),collapse="")),dec=".",sep=",",as .is=T,h=T,skip=1)[,c(4,8,14,15)] pose$CREATED.DATE<-as.Date(pose$CREATED.DATE,"%d/%m/%y") futures<-pose[-grep("USD",pose[,1]),]
2003 Apr 16
1
rsync-2.5.6 on AIX 4.3.3
Hi all, After a few days of looking into why rsync-2.5.6 would not work when using the "::" syntax on AIX 4.3.3, I discovered it is only the case when the system is not patched. I patched my system to maintenance level 10 and it works fine. AIX 4.3.3.0 - not working # uname -a AIX host1 3 4 00070F3F4C00 # instfix -i | grep ML <stuff deleted> All filesets for 4.3.3.0_AIX_ML
2023 Jun 05
0
[ANNOUNCE] xorgproto 2023.1
This release introduces a couple of new options for existing extensions: * A new option PresentOptionAsyncMayTear for the Present extension, * A new flag XFixesClientDisconnectFlagForceTerminate to the XFixes XFixesClientDisconnectFlags intended to be used by screen lockers, where the server must exit if the screen locker does. The other changes include various fixes, clarifications
2005 Jul 18
2
Mail Notification
Hi all!, i search for some information about to setup my asterisk box with e-mail notification when a I call the voicemail application. Voicemail application works fine in the Dial Plan but nothing happens with email notification ...so what i need to know about this?...wiki pages did not help me ....thanks! G. ----- Original Message ----- From: <asterisk-users-request@lists.digium.com>
2012 Jul 10
2
estimation of NA by predict command
Dear arun and all R users, I will first of all try to simply define my issue.. I have data in the following format Year Discharge dd/mm/yyyy x .. … … … There are some NA values in the discharge which I would like to predict by using “predict command”. I cant figure out the way to write the coding for that. Could you please help me on that??? I have also ,written
2010 Apr 20
5
Assigning Week Numbers
R experts, How could I extract the week number from a date vector (in Date class) such that week numbering (week 1...2...) begins (May 01) and ends (October 31) on the same specific dates each year? Week numbering must conform to the following day numbering format (Sat=1,Sun=2,Mon=3.....Fri=7). This means that new weeks must begin on Saturdays, and end on Fridays (except for the first date
2008 Aug 01
0
multinomRob: Error in eigen [..] infinite or missing values in 'x'
I'm interested in analysing some of my data using multinomial regression. I have been using nnet's multinom so far. However, I found that some of the data shows overdispersion and hence want to change to robust multinomial regression, package: multinomRob I have succesfully implemented Agresti's (2002) alligator example (chapter 7, p 268) using the option MLEonly=TRUE as there are too