similar to: Display the character variables in a dataset in R

Displaying 20 results from an estimated 300 matches similar to: "Display the character variables in a dataset in R"

2010 Apr 07
1
ggplot2, density barplot and geom_point layer
Hi, Please consider the example below. How can I manage to overlay the points the way I want in the second case? Thanks, Joh library(ggplot2) # Modify data to match "real" case myDiamonds <- diamonds myDiamonds[["clarity"]] <- as.character(myDiamonds[["clarity"]]) myDiamonds[myDiamonds[["clarity"]]=="I1","clarity"] <- 1
2010 Dec 07
2
tableGrob and properties of a cell
Hello there, could you please help to modify gpar() properties of a cell inside tableGrob() output. In the following example I want to have different color for one out of 4 cells require(gridExtra) z<-matrix(1:4,2,2) grid.draw(tableGrob(z)) The only way I found for now how to do it is to do something like this downViewport(current.vpTree()$children[[1]]$children[[6]]$name)
2009 Sep 17
3
latex code in R -> convert to pdf
hi, is it possible to convert latex code to pdf in R (like a latex-program would do it)? Is there a package that comes with this capabilities? My problem is that I want to generate tables automatically - and I can't use a latex editor at that computer ... Besides latex ... are there good ways to generate tables in R? thanks for any suggestions!
2009 Dec 16
4
Creating Dummy Variables in R
Hi, I am trying to create a set of dummy variables to use within a multiple linear regression and am unable to find the codes within the manuals. For example i have: Price Weight Clarity IF VVS1 VVS2 500 8 1 0 0 1000 5.2 0 0 1 864 3 0 1 0 340
2004 Aug 18
1
Gee
I am trying to learn the gee function in R. So I try to generate some data and use this function. I have the following lines: ######################################## Gee # Generating lny=10+2*Si-Si^2+eta # eta ~ N(0,1) # Si ~ U(0,11) eta <- vector(mode="numeric",100) eta <- rnorm(100) Si <- vector(mode="numeric",100) Si <- runif(100, min=0, max=11) lny <-
2009 Aug 17
1
help simplifying complex graphic arguments to a function
I'm working on a package to produce graphic displays of 2- and 3-way tables and need some help/advice on how to simplify the specification of a complex argument that gives the drawing details for each cell of the table. Prototypes of two functions, 'tableplot' and 'cellgram' are given below. The essential idea is that for a given table ('values'), the cells can be be
2013 Jul 18
1
Bland Altman summary stats for all column combinations
Hello, I have the following data.frame structure(list(Study = structure(c(1L, 2L, 3L, 4L, 5L, 6L, 7L, 8L, 9L, 10L, 11L, 12L, 13L, 14L, 15L, 16L, 17L, 18L, 19L, 1L, 2L, 3L, 4L, 5L, 6L, 7L, 8L, 9L, 10L, 11L, 12L, 13L, 14L, 15L, 16L, 17L, 18L, 19L, 1L, 2L, 3L, 4L, 5L, 6L, 7L, 8L, 9L, 10L, 11L, 12L, 13L, 14L, 15L, 16L, 17L, 18L, 19L, 1L, 2L, 3L, 4L, 5L, 6L, 7L, 8L, 9L, 10L, 11L, 12L, 13L, 14L,
2005 Dec 02
1
Dovecot strange behaviors on Solaris
Folks - I've been using Dovecot for some time now, but have only recently upgraded to 1.0alpha4. I'm struggling to get my configuration right and I'm seeing some truly bizarre issues. My Setup: Solaris 2.8 / Thunderbird / Procmail / Dovecot 1.0alpha4 My mail setup is only for me, so Dovecot runs at an odd port and under my userID. All my mail is in my home directory, which
2005 Oct 11
1
migrated to new ver on voip connection vs1 server voicemail problems
I migrated to a new version of the voip connection vs1 server software and I am now getting these errors when I try to call my voicemail. Any thoughts? The files are there, so I don't get it. Oct 11 19:57:26 WARNING[6587]: format_wav.c:140 check_header: Not a wav file 49 Oct 11 19:57:26 WARNING[6587]: file.c:418 ast_filehelper: Unable to open fd on
2003 Jan 14
1
Multiple IPs on single interface
Hi, I have a question: What are the limitations of routing between several IP addresses belonging to one interface? I have a box with one network interface, configured to three different IP addresses. It looks something like this: eth0 xxx.xxx.xxx.11 eth0:01 xxx.xxx.xxx.12 eth0:02 xxx.xxx.xxx.13 What I would like to do is allow eth0''s address to accept and open connections to any
2010 Jul 30
2
conditonal "if"
Hi, I have problem with my R program. Actually, it just a simple program, but I do not know the error is. Here is part of my program: .... if (tau2ca==0) {MVvc <- 0.01} else {MVvc <- tau2ca} ri_vc <- si2/MVvc vi_vc <- ri_vc + 1 Y_bar_vc <- sum(y/vi_vc)/sum((1/vi_vc)) tau2MVvc <- sum((1/vi_vc)*(y - Y_bar_vc)^2)/(k-1) .... But then, there is an error displayed in workspace
2003 Jan 27
1
more info - NT_STATUS_ACCESS_DENIED opening remote file
Thanks to those who had suggestions on my last post, but none of those seems to have worked. I have narrowed down the problem a bit though, seems users can't write to a share that is not their primary group. For example: Bob's primary group is Bob and secondary group is Sally. Bob can write to the Bob group share but not the Sally group share. Anymore thoughts/suggestions. Thanks
2009 Sep 12
1
How to visualize paired t-test results?
I would like to know if you have any suggestions how to visualize the results from a paired t-test (see the example data below). I tried to produce plots that show the mean and CI's from the original data and the estimate of the difference between means and the confidence intervals (see below) from the t-test. I really don't know what would be the best way to graphically display the
2013 Jan 20
2
Lattice levelplot- remove unused levels per panel
Hi, I am using levelplot, and would like remove from each panel (condition) its unused x levels. e.g. Remove from panel vs=1 the cyl level=8. data(mtcars) levelplot(mpg~factor(cyl)*factor(gear)|factor(vs)) Thanks for your help, Ronny -- View this message in context: http://r.789695.n4.nabble.com/Lattice-levelplot-remove-unused-levels-per-panel-tp4656087.html Sent from the R help mailing
2018 Dec 11
4
"virsh list --all" is intermittently causing a shutdown client to boot?
Hello, I have a CentOS 7 client running on a CentOS 7 server.  "virsh --version" reports that 3.9.0 is being used. I'm issuing a "virsh shutdown" command to shutdown the client.  I then confirm that the client has actually shutdown using "virsh list --all". Lately I've been seeing instances where I shutdown the client, turn away to work on something else, and
2007 Sep 15
0
Question about VarSelRF
Dear list members, I am analyzing Affymentrix gene expression data and would like to apply the R package, VarSelRF to identifying small sets of genes that could be used for diagnostic purpose. Basically, the data matrix is composed of 22277 rows (genes) and 65 columns (samples). I did unsupervised clustering using pvclust to get 4 classes. What I would like to do is to get unique genes for each
2008 Jun 17
2
Reshape or Stack? (To produce output as columns)
Dear all, I have used 'read.table' to create a data frame of 720 columns and 360 rows (and assigned this to 'Jan'). The row and column names are numeric: > columnnames <- sprintf("%.2f", seq(from = -179.75, to = 179.75, length = 720)). > rnames <- sprintf("%.2f", seq(from = -89.75, to = 89.75, length = 360)) > colnames(Jan) <- columnnames
2012 Apr 29
1
r2 and p value dispaly in table
Hello R User, I was trying to display r.squared and p value in table from regression, but I could not display these parameters in the table (matrix) for example individual <- c(1,1,6,8,8,9,9,9,12,12) day <- c(4,17,12,12,17,3,9,22,13,20) condition <- c(0.72, 0.72, 0.67, 0.73, 0.76, 0.65, 0.68, 0.78, 0.73, 0.71) test <- data.frame(individual, day, condition) ind.id <-
2011 Oct 21
1
lattice::xyplot/ggplot2: plotting weighted data frames with lmline and smooth
In the HistData package, I have a data frame, PearsonLee, containing observations on heights of parent and child, in weighted form: library(HistData) > str(PearsonLee) 'data.frame': 746 obs. of 6 variables: $ child : num 59.5 59.5 59.5 60.5 60.5 61.5 61.5 61.5 61.5 61.5 ... $ parent : num 62.5 63.5 64.5 62.5 66.5 59.5 60.5 62.5 63.5 64.5 ... $ frequency: num 0.5 0.5
2012 Jul 06
4
differences between survival models between STATA and R
Dear Community, I have been using two types of survival programs to analyse a data set. The first one is an R function called aftreg. The second one an STATA function called streg. Both of them include the same analyisis with a weibull distribution. Yet, results are very different. Shouldn't the results be the same? Kind regards, J -- View this message in context: