similar to: use name (not values!) of a dataframe inside a funktion

Displaying 20 results from an estimated 2000 matches similar to: "use name (not values!) of a dataframe inside a funktion"

2009 Jun 20
1
how to apply the dummy coding rule in a dataframe with complete factor levels to another dataframe with incomplete factor levels?
Dear R helpers: Sorry to bother for a basic question about model.matrix. Basically, I want to apply the dummy coding rule in a dataframe with complete factor levels to another dataframe with incomplete factor levels. I used model.matrix, but could not get what I want. The following is an example. #Suppose I have two dataframe A and B
2008 Dec 01
1
Help with lattice graphics
Hi, I like the formatting and the appearance of lattice plots. But I have not succeeded in gettting the right format in my plots with the lattice package in one of my applications. In?the code shown below, I start by constructing a general data frame and show my attempts with the lattice package commands. After that, I use the graphics package and show the kind of plot that I want to get. I would
2003 Nov 23
3
make check reg-tests-3
Should I submit this as a bug report? --- reg-tests-3.Rout.save Thu Jul 3 09:55:40 2003 +++ reg-tests-3.Rout Sun Nov 23 13:10:57 2003 @@ -1,17 +1,18 @@ -R : Copyright 2003, The R Development Core Team -Version 1.8.0 Under development (unstable) (2003-07-03) +R : Copyright 2003, The R Foundation for Statistical Computing +Version 1.8.1 (2003-11-21), ISBN 3-900051-00-3 R is free software and
2010 Dec 08
3
ReadWrite.xls problem
Dear community, I have now taken my R-file from lectures and intend to use it at home, but have a problem reading the Data from the file. I have installed and loaded the Package xlsReadWrite so far. I have also "Changed directory". This is what I have entered daten=read.xls("Daten A2") This is my Error-Message in its German original: Fehler in .Call("ReadXls",
2006 Nov 09
1
Merge: how can I keep discarded values?
Good morning, I am merging two datasets and I would like to save the non-matching rows in a separate file. The problem is how to retrieve the non-matching rows in R. Example: DATASET A code nomi A1 Franco A2 Mario A3 Andrea A4 Sandro A5 Luca DATASET B code book A1 Guerra e Pace A1 Storia di Roma A2 La coscienza di Zeno A4
2008 Mar 18
1
problem with merge
I have used merge regularly and thought I understood how it worked, but I must not. I have two dataframes with identical colnames from two different experiments, TL01 and LC01. Each dataframe has a column named "Entrez.Gene", which I have converted to "as.character" just to make sure merge is not looking at factor levels. Because I have done some filtering, the Entrez.Gene
2005 May 18
1
Testing for warning inside functions
I am looking for a way to get a warning message immediately after an evaluation within a function. To get error messages you can use geterrmessage(). But I found no function that allows me to check for warnings. Five years ago this questions has been posted but I haven't found any answer. Thanks for any help. Peter Wolf ------------ For illustration purpose a simple example follows: you
2009 Oct 22
1
help sub setting data frame
Hi, I'm running into a problem subsetting a data frame that I have never encountered before: > dim(chkPd) [1] 3213 6 > df = head(chkPd) > df PN WB Sire Dam MG SEX 601 1001 715349 61710 61702 67 F 969 1001_1 511092 616253 615037 168 F 986 1002_1 511082 616253 623905 168 F 667 1003 715617 61817 61441 67 F
2007 Aug 16
4
Combine matrix
Hi R user, I am new to R, and I have a very simple question for you. I have two matrix A and B, with internally redundant rownames (but variables are different). Some, but not all the rownames are shared among the two matrix. I want to create a greater matrix that combines the previuos two, and has all the possible combinations of matching rownames lines among matrix A and B. looking for the
2012 Apr 08
2
How to produce serveral plots with pairs of vectors
Dear R-Users, I have a newbie-question about producing several plots with five variable pairs within in one code (loop). Problem: I define two objects, erveryone has five vectors (columns /variables): dimensionen <- data.frame(meinspss$attr_diff_gesamt, meinspss$finanz_diff_gesamt, meinspss$leist_diff_gesamt, meinspss$soz_diff_gesamt, meinspss$wert_diff_gesamt) gruppe <-
2009 Jul 13
1
Ubuntu und R
Hallo Zusammen, hatte gestern die Schnauze voll von Vista und habe mir daraufhin Ubuntu installiert. Bin also mit Ubuntu ?berhaupt nicht vertraut. Nun habe ich ohne Erfolg versucht, R zu installieren. Soweit ich der Anleitung folgen konnte habe ich es so wie auf http://wiki.ubuntuusers.de/R gemacht. Im Terminal kann ich R problemlos starten. Allerdings bei der Installation von
2014 Oct 15
2
Test K-S con distribuciones LogNormales
Hola Ruben, Sí precisamente es lo que comentas, en matemáticas no se suele llamar bucketización (este término se emplea más en informática) sino datos agrupados. Pero la idea es la que tu mismo dices. Respecto a las gráficas que has puesto, me han aclarado mucho sobre el tema, gracias. Si realizo lo mismo, por ejemplo con nbucket=1000 sigo obteniendo un p-valor de 1. Es decir, que casi le
2012 Jan 29
0
Using influence plots and obtaining id numbers
I am a novice R user, and I am having difficulty understanding R's influence plots. I am trying to remove outliers from a particular variable, "sib." I am able to generate influence plots and further outlier information such as below (which is a shortened example). For my analyses, I end up excluding the points R refers to, 7, 18, 26, and 105. However, my question is, how can I
2005 Oct 13
3
aggregate slow with many rows - alternative?
Hi, I use the code below to aggregate / cnt my test data. It works fine, but the problem is with my real data (33'000 rows) where the function is really slow (nothing happened in half an hour). Does anybody know of other functions that I could use? Thanks, Hans-Peter -------------- dat <- data.frame( Datum = c( 32586, 32587, 32587, 32625, 32656, 32656, 32656, 32672, 32672, 32699 ),
2011 Jul 29
4
scripting/littler: How to call function named iteratively (`f1`, `f2`, …)?
Dear R folks, wanting to compare different implementations of a solution I want to script it to iterate over the different implementations. Is there a way to do this in the R shell/command line? $ more /tmp/iterf.r f1 <- function(n = 100000, l = 100000) { z = n + l } f2 <- function(n = 100000,
2001 May 15
3
box around a barplot
Hi, is it possible to draw a box around the following barplot; using "box=TRUE" won't work. ---------- pc<-c(1,2,5,29,27) barplot(pc,ylim=c(0,30),yaxs="r",xaxs="r",ylab="Anzahl" ,names.arg=c("Mac","286er","386er","486er","Pentium I") ,axisnames=T,col="gray") ---------- Thanks in
2007 Oct 04
2
plot from source file
Dear list Maybe someone can help with the following problem: I have a source file containing the following code for plotting: pdf(file = 'data/mario/boxplot.pdf') bwplot(sig100 ~ target | group, data = fish, main = 'Boxplot der Signale in 100 Zellen nach Gruppe', xlab = '', ylab = 'Anzahl der Signale') dev.off() pdf(file = 'data/mario/xyplot.pdf')
2012 Sep 10
4
Identifying duplicate rows?
Hi, I am trying to identify duplicate values in a column in a date frame. The duplicated function identifies the duplicate rows in the data frame but it only does this for the second record, not both records. Is there a way to mark both rows in the data frame as TRUE? dfA$dups<-duplicated(dfA$Value) dfA Site State Value dups 929 VA 73 FALSE 929 VA 73 TRUE 930 VA 76 FALSE 930 VA 76 TRUE 931
2012 Mar 26
0
filter and merge 2 big Df's by=t_chr in sec.
Please help to solve that problem: filter and merge 2 big Df's by=t_chr in sec. require(zoo) t1="2012-03-25 17:00:00.0" t2="2012-03-25 17:00:05.0" t1_POSIXlt<-strptime(t1, "%Y-%m-%d %H:%M:%OS")# t2_POSIXlt<-strptime(t2, "%Y-%m-%d %H:%M:%OS")# # ts_t1t2_POSIXlt<-seq(t1_POSIXlt,t2_POSIXlt,length.out
2012 Jun 27
0
[LLVMdev] [llvm-commits] [PATCH] Refactoring the DFA generator
Committed in r159281. -Anshu On 6/26/2012 3:04 AM, Ivan Llopard wrote: > Hi Anshu, > > I don't have commit access. It applies correctly on trunk, I've just > checked it. Could you please commit it? > > Ivan > > On 26/06/2012 04:44, adasgupt at codeaurora.org wrote: >> Hi Ivan, >> >> Sorry, I should have been more explicit in my last email. The