search for: dtf

Displaying 18 results from an estimated 18 matches for "dtf".

Did you mean: dt
2010 Mar 02
1
simple data transformation question
Hi all, I have a (hopefully) simple newbie-level question.   # I have data like this: dtf <- data.frame(read.table(textConnection("var  value   company  9887.1   company  91117.0   blaah  91.1   etc  11   etc  97111"), header=TRUE))   # I would like to have output like this (the index number may vary): var  value.1 value.2 company 9887.1 91117.0 blah  91.1 NA etc 11 97111  ...
2006 Nov 30
1
data.frame within a function (PR#9294) (cont'd)
...,evaluate=T); cat("also ok\n") } ######################### # compare f1() and f2() # ######################### f1<- function(){ x<- rnorm(10) y<- rmvnorm(10,mean=c(1,2)); colnames(y)<- paste("y",1:2,sep="") #c("y1","y2") dtf<- data.frame(y,x) lm1<- lm(cbind(y1,y2)~1,data=dtf); cat("ok\n") update(lm1,~ .+x,evaluate=T); cat("also ok\n") # only this line is different } f2<- function(){ x<- rnorm(10) y<- rmvnorm(10,mean=c(1,2)); colnames(y)<- paste("y&quo...
2012 Mar 08
4
Problem with a Matrix
Dear All, I have a problem in making a matrix from a data. I did a summary data from a big data frame using (ddply), the resulting table is like that: Site.No Plant.Name Cover.Percentage 1 XXX 15 1 YYY 20 2 XXX 18 2 YYY 21 3 XXX 14 3
2011 Oct 13
8
Remove specific rows in a matrix/data.frame
Hi, imagine the following matrix/data.frame Letter Number a 1 a 1 b 1 b 0 c 0 c 1 d 0 d 0 If the numbers for two identical letters are also identical then I want to remove either the first or the second row of that letter. If for a letter the numbers are 1 and 0 I want to remove the row with the 0. That means if the code works I would and up with the following matrix/data.frame Letter
2006 Oct 04
1
extracting nested variances from lme4 model
I have a model: mod1<-lmer( x ~ (1|rtr)+ trth/(1|cs) , data=dtf) # Here, cs and rtr are crossed random effects. cs 1-5 are of type TRUE, cs 6-10 are of type FALSE, so cs is nested in trth, which is fixed. So for cs I should get a fit for 1-5 and 6-10. This appears to be the case from the random effects: > mean( ranef(mod1)$cs[[1]][1:5] ) [1] -2.498002e-1...
2007 Apr 05
2
creating a data frame from a list
...nths ago, I asked for your help on the following problem: I have a list with three (named) numeric vectors: > lst = list(a=c(A=1,B=8) , b=c(A=2,B=3,C=0), c=c(B=2,D=0) ) > lst $a A B 1 8 $b A B C 2 3 0 $c B D 2 0 Now, I'd love to use this list to create the following data frame: > dtf = data.frame(a=c(A=1,B=8,C=NA,D=NA), + b=c(A=2,B=3,C=0,D=NA), + c=c(A=NA,B=2,C=NA,D=0) ) > dtf a b c A 1 2 NA B 8 3 2 C NA 0 NA D NA NA 0 That is, I wish to "merge" the three vectors in the list into a data frame by their...
2006 Jul 05
1
creating a data frame from a list
Dear all, I have a list with three (named) numeric vectors: > lst = list(a=c(A=1,B=8) , b=c(A=2,B=3,C=0), c=c(B=2,D=0) ) > lst $a A B 1 8 $b A B C 2 3 0 $c B D 2 0 Now, I'd love to use this list to create the following data frame: > dtf = data.frame(a=c(A=1,B=8,C=NA,D=NA), + b=c(A=2,B=3,C=0,D=NA), + c=c(A=NA,B=2,C=NA,D=0) ) > dtf a b c A 1 2 NA B 8 3 2 C NA 0 NA D NA NA 0 That is, I wish to "merge" the three vectors in the list into a data frame by thei...
2013 Feb 15
10
reading data
Hi, #working directory data1 #changed name data to data1.? Added some files in each of sub directories a1, a2, etc. ?indx1<- indx[indx!=""] lapply(indx1,function(x) list.files(x)) #[[1]] #[1] "a1.txt"??????? "mmmmm11kk.txt" #[[2]] #[1] "a2.txt"??????? "mmmmm11kk.txt" #[[3]] #[1] "a3.txt"??????? "mmmmm11kk.txt" #[[4]] #[1]
2006 Jul 12
1
help in vectorization
Hi, I have two data frames. One is like > dtf = data.frame(y=c(rep(2002,4), rep(2003,5)), + m=c(9:12, 1:5), + def=c(.74,.75,.76,.78,.80,.82,.85,.85,.87)) and the other dtf2 = data.frame(y=rep( c(2002,2003),20), m=c(trunc(runif(20,1,5)),trunc(runif(20,9,12))), inc=rnorm(40,...
2011 Mar 06
2
How to load load multiple text files and order by id
Hello R users, I am fairly new to R and was hoping you could point me in the right direction I have a set of text files (36). Each file has only two columns (id and count) , I am trying to figure out a way to load all the files together and then have them ordered by id into a matrix data frame. For example If each txt file has : ID count id_00002 20 id_00003 3 A Merged File: ID
2009 Jul 08
1
rsync between windows Opensolaris failures
Can anyone tell me what is wrong in this picture with error output: rsync -nvviirp --inplace harry@harvey:/cygdrive/c/Documents\ And\ Settings ./docs_settings_$(dtf) opening connection using ssh harvey -l harry rsync --server --sender -vvnpr --inplace . "/cygdrive/c/Documents And Settings" harry@harvey's password: protocol version mismatch -- is your shell clean? (see the rsync man page for an explanation) rsync error: protocol incompatibility...
2019 Jun 13
2
Problema de INSERT en Windows SQL
...uthor , NA )' nanodbc/nanodbc.cpp:1587: 42000: [Microsoft][ODBC SQL Server Driver][SQL Server]Sintaxis incorrecta cerca de ','. ¿Qué estoy haciendo mal? Conseguí añadir datos en la base con la función dbWriteTable del mismo paquete DBI: dbWriteTable(con, "imdbpelis_copia", dtf, append=FALSE, overwrite=FALSE ,row.names = FALSE) El problema es que no me deja añadir nuevos datos en la tabla, solo la sobreescribe. ¿Se puede hacer con dbWriteTable? Como duda general, ¿cual es la mejor forma de trabajar con SQL desde R? Un saludo y muchas gracias -- Rubén. [[alternative...
2012 Jul 20
2
Changing ungrouped cases to grouped cases
Hi, I have my data the following way: y A B C 0 1 1 2 0 1 2 1 1 1 1 2 0 1 1 2 1 1 1 2 1 1 2 1 0 1 2 2 . . . And so on. How can I make my data look like the following: y A B C 2 1 1 2 1 1 2 1 0 1 2 2 . . . In other words how can I change my ungrouped cases into grouped cases? Thanks! Chris [[alternative
2012 Mar 31
4
R Help
Hi, I have a polynomial of 2n^2-5n+3 and I have my n values going up in powers of 2 i.e. n=2,4,8,16?.. I wanted to fit this curve to the function A*n*log2(n) +B*n where A and B are to be found. How would i do this? Thank you Jaymin
2004 Sep 18
0
[Bug 1793] configure: WARNING: glob.h: present but cannot be compiled
...Additional Comments From dfarning@sbcglobal.net 2004-09-17 17:07 ------- Attached are the files you suggested that I take a look at. Hope this helps. I've got a working rsync that I got from a .rpm. So, I think it can work. hmmm mybe the .rpm was build before something got bugered. Thanks -dtf -- Configure bugmail: https://bugzilla.samba.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA contact for the bug, or are watching the QA contact.
2007 Nov 01
2
ACL changes on Samba NT 4.0 Member Server
I have a Samba 3.0.24-7 on Fedora 6 as a member of an Windows NT 4.0 domain, with a simple share setup with ACLs. The permissions on the share from Windows XP Pro Security tab shows Everyone, and root (Unix Group\root) without any Permissions. When trying to add permissions from XP while logged on as CPDOM+admin the error is display "Unable to save permission changes on "share
2006 Mar 28
3
Error compiling samba 3.0.21c, AIX 52 ML7 gcc 3.3.2
Can anyone help with the following error I get whilst comiling samba, configured with following flags:- ./configure --prefix=/opt/samba-3.0.21c --with-ldap --with-ads --with-krb5 --with-pam --with-winbind heimal kerberos heimdal-0.7.2 openldap openldap-2.3.20 [WMSTRAIN:root]/appfs2/samba/samba-3.0.21c/source> make && make install Using FLAGS = -O -D_SAMBA_BUILD_ -I./popt
2004 Mar 09
4
Samba and LDAP backend - howto docs problems?
Hi all, I have followed the instructions at http://samba.mirror.ac.uk/samba/docs/man/passdb.html in an attempt to set up a Samba v3.0.2 (supplied by Redhat as part of RHEL v3.0) PDC. I have got as far as trying to get a windows 2k box to join this new domain that I have created, however this fails with the error "Logon failure: unknown user name or password". Samba itself logs