similar to: Adding column to dataframe

Displaying 20 results from an estimated 1400 matches similar to: "Adding column to dataframe"

2005 Dec 06
1
Help on a matrix task
Hello, Being new to R, I am completely stuck with the following problem. Please help to find a general solution to the following matrix task: Given: N<-4 input_mat<-matrix(c(1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0, 0, 1, 1, 0, 0, 1, 1, 0, 0, 1, 1, 0, 0, 1, 1, 0, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0),ncol=N)
2011 Feb 06
2
Legend outside the plot? xpd?
Hi All, BG: Will try be brief. I'd like 3 graphs on a page (below each other mfrow=c(3,1)), saved to pdf. The three plot data on the same subject so I'm having one legend, to the right of the center graph. I'm using mar=c(5,15,4,15) to bring the sides in so that the graphs are square and not stretched wide. To have the graph to the side I'm thinking xpd=T. Each graph has a number
2008 Apr 23
1
cbind speed.
cbind/ rbind/ data.frame functions are very convenient for merging vectors of different types into a single data frame, but take quite a bit of time to execute on larger data sets. Is it possible to speed these up a bit? What functions do you use instead? Thanks & regards, Charles
2010 Dec 13
1
Pure curiosity
Pure curiosity but does anyone know why '<-' and '=' generate different columning headers? > test <- data.frame(V1=c(1,2,3), V2=c(4,5,6)) > test V1 V2 1 1 4 2 2 5 3 3 6 > test <- data.frame(V1<-c(1,2,3), V2<-c(4,5,6)) > test V1....c.1..2..3. V2....c.4..5..6. 1 1 4 2 2 5 3
2010 Aug 24
0
mlm for within subject design
Thank you for reading. I am trying to get sphericity values, and I understood I need to use mlm, but how do I implement a nested within subject design in mlm? I already read the R newsletter, fox chapter appendix, EZanova, and whatever I could find online. My original ANOVA anova(aov(resp ~ sucrose*citral, random =~1 | subject, data = p12bl, subset = exps==1)) Or anova(aov(resp ~
2011 Dec 01
2
R endnote entry
I know citation() gives the R citation to be used in publications. Has anyone put this into endnote nicely? I'm not very experienced with endnote, and the way I have it at the momeny the 'R Development Core Team' becomes R. D. C. T. etc. Cheers.
2004 Jul 21
0
NMMAPSdata package
We would like to announce release of version 0.3-3 of the NMMAPSdata package. NMMAPSdata is an R package which contains time series data on air pollution, weather, and mortality for 108 United States cities for the years 1987--2000. These data were originally assembled for the National Morbidity, Mortality, and Air Pollution Study sponsored by the Health Effects Institute and have since
2004 Jul 21
0
NMMAPSdata package
We would like to announce release of version 0.3-3 of the NMMAPSdata package. NMMAPSdata is an R package which contains time series data on air pollution, weather, and mortality for 108 United States cities for the years 1987--2000. These data were originally assembled for the National Morbidity, Mortality, and Air Pollution Study sponsored by the Health Effects Institute and have since
2010 Dec 08
1
ggplot - line_range help, second tier axis label
Hi All, Will try and keep brief, excuse the poor graphics skills, first time using GIMP. I would like to make the first one look (somewhat) like the second if possible. From: http://d.imagehost.org/0519/Screen_shot_2010-12-08_at_3_50_23_PM.png To here: http://d.imagehost.org/0293/Screen_shot_2010-12-08_at_3_50_23_PM2.png I imagine the line going over the top with the p-values is probably not
2003 Mar 06
1
[stuart.leask@nottingham.ac.uk: R in your pocket on a Sharp Zaurus]
Ah, but the interesting thing is that they are coming out with a 'clam' version like the 5MX. Details are limited at the moment, but that could mean the combination of 5MX usability with a supported linux distro. I am drooling in anticipation. Sounds like a "I've finally finished my PhD and deserve a treat" situation to me :) Dave On Thu, Mar 06, 2003 at 09:17:20AM
2002 Jan 06
2
Passing names of variables to functions
Hi, I am still new to R and have a programming question. I have created a small function which takes a parameter. In the function I want to be able to refer to the names of the variables sent to the function (specifically I want to be able to use the name of the variable given to the function in an output table). For example, in the following (fictional) function I want some way of printing
2018 Jun 12
9
RFC: Bug-closing protocol
TL;DR: It's okay to close a bug, if you can justify it properly. Recently there has been a spate of bug-closing with what I would call inadequate documentation. Comments such as "Obsolete?" or "I assume it's fixed" could be applied to nearly every open bug we have. While this does reduce the open bug count--something I have been watching with morbid fascination
2015 Mar 13
1
Configuring Shared Mailbox Dictionaries
Hello, list! I am in the midst of configuring a new Dovecot IMAP server, and I'm preparing to setup shard mailboxes as part of the ocnfiguration. In order to get these setup the way I want, I've figured out that I'm going to have to setup an acl_shared_dict. This is where things start to get confusing for me, as I have had difficulty finding thorough explanations of dictionary
2018 Jun 13
2
RFC: Bug-closing protocol
Isn't svn set up to auto-parse and post to the bug so you can just say "fixes bug 44444" and it parses it out? I mean, i added that to gcc like 15 years ago, i'm surprised we don't do this :) Nobody should have to add this info manually unless someone forgot to put it in a commit message. On Tue, Jun 12, 2018 at 1:36 PM, Tom Stellard via llvm-dev < llvm-dev at
2008 Apr 19
7
Re ad From EXCEL
Hello!!! I have been read a much about as read data from Excel File, but I haven?t found the necesary information to read the data. Now, I can create a channel : channel <- odbcConnectExcel("file.xls") but I don?t know as read the data?? I hope that you could help me. Thank you very much. -- View this message in context:
2009 Jul 25
2
[LLVMdev] GCC DejaGNU regressions
The GCC DejaGNU testsuite has discovered some regressions. Here's one; this was reduced from testsuite/gcc.apple/4656532.c: typedef long long __m64 __attribute__ ((__vector_size__ (8), __may_alias__)); static __inline __m64 __attribute__((__always_inline__, __nodebug__)) _mm_slli_si64 (__m64 __m, int __count) { } __m64 x, y; void t1(int n) { y = _mm_slli_si64(x, n); } Compiled with
2006 Aug 10
4
PXE and Hard Drive Test Programms
Hi! I have problems to boot with memdisk and pxe the hard drive tests from seagate, hitachi, western digital... does has someone done it and can sym me how? (maxtor works perfectly) ByE
2018 Jun 13
2
RFC: Bug-closing protocol
https://gcc.gnu.org/viewvc/gcc/hooks/ is how it was done. This used the incoming email handling for bugzilla i set up. These days, you could just use bugzilla's rest API IE a simple variant of https://github.com/mozilla/github-bugzilla-pr-linker/blob/master/app/app.py should work as a commit hook. That thing is written as a service, you just need the find/add parts of the rest api, rip
2012 Jul 08
1
yet another windows installation from source issue
Dear R People: I'm starting to think that I should just install from the binary, but here is my latest effort to install from source on a Windows 7 64 bit: c:\R64\R-patched>cd src cd src c:\R64\R-patched\src>cd gnuwin32/ cd gnuwin32/ c:\R64\R-patched\src\gnuwin32>set TMPDIR=c:\temp set TMPDIR=c:\temp c:\R64\R-patched\src\gnuwin32>make all recommended make all recommended
2013 Jan 16
1
Rscript on Mac : specify R64 over R (32-bit version)
Hi, I have both R and R64 installed on Mac OSX 10.8 Mountain Lion (64-bit). When I run the command sessionInfo() from within Rscript, I get: R version 2.15.2 (2012-10-26) Platform: i386-apple-darwin9.8.0/i386 (32-bit) Is there a way to make Rscript point at the R64 rather than R (32-bit)? Thanks, Matt [[alternative HTML version deleted]]