similar to: Book: The New S Language

Displaying 20 results from an estimated 60000 matches similar to: "Book: The New S Language"

2010 Feb 11
2
SAS and RODBC
I am using R-2.10.1 binary from CRAN on a WinXP Pro system. I also use SAS v9.2 on the same box. I just started using the SAS ODBC driver that comes with version 9 of SAS. I have been able to set up an ODBC source for SAS datasets using the driver, and then with RODBC I am able to read a sample SAS dataset. > library(RODBC) > ch <- odbcConnect('sasodbc', believeNRows=FALSE)
2014 Nov 10
1
subscripting a data.frame (without changing row order) changes internal row.names
Dear R-devel, Can anyone help me to understand this? It seems that subscripting the rows of a data.frame without actually changing their order, somehow changes an internal representation of row.names that is revealed by e.g. dput/dump/serialize I have read the docs and inspected the (R) code for data.frame, rownames, row.names and dput without enlightenment. df=data.frame(a=1:10, b=1)
2012 Apr 05
2
indexing data.frame columns
Consider the data.frame: df <- data.frame(A = c(1,4,2,6,7,3,6), B= c(3,7,2,7,3,5,4), C = c(2,7,5,2,7,4,5), index = c("A","B","A","C","B","B","C")) I want to select the column specified in 'index' for every row of 'df', to get goal <- c(1, 7, 2, 2, 3, 5, 5) This sounds a lot like the indexing-by-a-matrix
2006 Sep 28
1
I: differences between R and S (reproducing a plot from a book )
Dear R-Users, I'm currently studying the book Statistical model in S by Chambers J.M and Hastie T.J.. At page n 3 there's a plot showing the means of a variable at each of the levels of the factors of an experiment. I hope to be able to reproduce it here by ASCII art. B6 S | | Thin | | | | | | B3 __|_____|_____|__......etc | |
2010 Dec 15
2
Can the by() function return a single column?
I would like to de-mean the 'vector' column of the following dataframe by factor: set.seed(5444) vector <- rnorm(1:10) factor <- rep(1:2,5) test.df <- data.frame(factor, vector) which is: factor vector 1 1 -0.4963935 2 2 -2.0768182 3 1 -1.5822224 4 2 0.8025474 5 1 0.3504199 6 2 0.2358464 7 1 -0.3989443 8 2 -0.3692544 9
2004 Feb 03
1
S language
Hello I just received an email from Insightful, Inc. saying that they have purchased the S license from Lucent Technologies. Will this have any major impact on R or the future development of R? John Lewis [[alternative HTML version deleted]]
2009 May 27
5
How to exclude a column by name?
Given an arbitrary data frame, it is easy to exclude a column given its index: df[,-2]. How to do the same thing given the column name? A naive attempt df[,-"name"] did not work :)
2008 Jun 09
1
Slow gfs performance
HI, Sorry for repeating same mail ,while composing that mail i mistakenly typed the send button.I am facing problem with my gfs and below is the running setup. My setup Two node Cluster[only to create shared gfs file system] with manual fencing running on centos 4 update 5 for oracle apps. Shared gfs partition are mounted on both the node[active-active] Whenever i type df -h command it
2011 Nov 24
3
Is there way to add a new row to a data frame in a specific location
Is there easy way (without copying the existing rows to a temporary location and copying back) to add a new row to a specific index location in an existing data frame? Example df = data.frame( A= c('a','b','c'), B=c(1,2,3), C=(10,20,30)) newrow = c('X', 100, 200) I want to add the newrow as the second row to the data frame df Please suggest a solution that is
2012 Sep 26
1
Write table with data in other .csv template
Hi, I have a table with data, as below: dput(table): structure(list(Adrian.Cole = c(0L, 0L, 0L, 0L, 0L, 0L), Alison.Wong = c(0L, 0L, 0L, 0L, 0L, 0L), Andrei.Savu = c(0L, 0L, 0L, 0L, 0L, 0L), Bruno.Dumon = c(0L, 0L, 0L, 0L, 0L, 0L), Edward.J..Yoon = c(0L, 0L, 0L, 0L, 0L, 0L), Eugene.Koontz = c(0L, 0L, 0L, 0L, 0L, 0L), Jakob.Homan = c(0L, 0L, 0L, 0L, 0L, 0L), Kelvin.Kakugawa = c(0L, 0L,
2012 Jun 02
2
clancy hood wants to chat
----------------------------------------------------------------------- clancy hood wants to stay in better touch using some of Google's coolest new products. If you already have Gmail or Google Talk, visit: http://mail.google.com/mail/b-b6c37882b3-6070e5aff0-4zTTbp_k9mfRD2EYpxg7ObjBTtw You'll need to click this link to be able to chat with clancy hood. To get Gmail ? a free email
2009 Aug 08
1
Which parts of the book "Programming with Data: A Guide to the S Language" are still relevant now?
Hi, The book "Programming with Data: A Guide to the S Language" was published over 10 years ago. I know that to understand object oriented programming. I should read the associated section in this book. But I am wondering if other chapters, in particular "Chapter 3. Quick Reference", are still relevant now if I want to learn R. Regard, Peng
2005 Dec 29
3
importing shapefiles into spatstat
Dear R users, I am using spatstat to analyze point patterns (tree locations). I would like to import the shapefile with the study area polygons (six total) into R and use it to create the window for the spatstat analysis. I do not simply want to use a rectangle because the study areas spread out over 40000 ha. Any suggestions would be greatly appreciated. Thanks, Charlotte Reemts Charlotte
2011 Jun 28
2
coxph() - unexpected result using Crawley's seedlings data (The R Book)
Hi, I ran the example on pp. 799-800 from Machael Crawley's "The R Book" using package survival v. 2.36-5, R 2.13.0 and RStudio 0.94.83. The model is a Cox's Proportional Hazards model. The result was quite different compared to the R Book. I have compared my code to the code in the book but can not find any differences in the function call. My results are attached as well as a
2004 Dec 28
1
Update: Slow browsing/reading from WinXP SP2
I stumbled onto another tidbit that may shed some more light. From the new laptop, I tried to create a new folder on the 'samba' share. It fails with the following error message: "Unable to create the folder 'New Folder'. Access is denied" It obviously looks like a permissions issue, but what? I did not have to make any changes to my other laptop (upgraded from XP
2010 Oct 29
2
[LLVMdev] strict aliasing and LLVM
On Oct 29, 2010, at 12:26 AM, Nick Lewycky wrote: > Xinliang David Li wrote: >> As simple as >> >> void foo (int n, double *p, int *q) >> { >> for (int i = 0; i < n; i++) >> *p += *q; >> } >> >> clang -O2 -fstrict-aliasing -emit-llvm -o foo.bc -c foo.c >> llc -enable-tbaa -O2 -filetype=asm -o foo.s foo.bc > >
2007 Dec 01
2
How to cbind DF:s with differing number of rows?
#Hi R-users, #Suppose that I have a data.frame like this: y1 <- rnorm(10) + 6.8 y2 <- rnorm(10) + (1:10*1.7 + 1) y3 <- rnorm(10) + (1:10*6.7 + 3.7) y <- c(y1,y2,y3) x <- rep(1:3,10) f <- gl(2,15, labels=paste("lev", 1:2, sep="")) g <- seq(as.Date("2000/1/1"), by="day", length=30) DF <- data.frame(x=x,y=y, f=f, g=g) DF$g[DF$x == 1]
2018 Jan 19
1
Re: [PATCH nbdkit filters-v2 2/5] Introduce filters.
On 01/19/2018 11:12 AM, Richard W.M. Jones wrote: >>> + >>> +=head2 C<.pread> >>> + >>> + int (*pread) (struct nbdkit_next_ops *next_ops, void *nxdata, >>> + void *handle, void *buf, uint32_t count, uint64_t offset); >> >> Wrong signature, missing the uint32_t flags that the backend interface >> has, and that
2010 Oct 29
0
[LLVMdev] strict aliasing and LLVM
Xinliang David Li wrote: > As simple as > > void foo (int n, double *p, int *q) > { > for (int i = 0; i < n; i++) > *p += *q; > } > > clang -O2 -fstrict-aliasing -emit-llvm -o foo.bc -c foo.c > llc -enable-tbaa -O2 -filetype=asm -o foo.s foo.bc There's a couple things interacting here: * clang -fstrict-aliasing -O2 does generate the TBAA info, but
2015 Feb 13
1
Re: libvirt live migration, qcow2 image, nbd server
On 02/13/2015 03:15 AM, Kashyap Chamarthy wrote: > On Thu, Feb 12, 2015 at 08:41:31PM -0600, Edward Young wrote: >> Hi all, >> >> >> When I live migrate a vm using >> >> "migrate --live --copy-storage-all mig-vm qemu+ssh://192.168.1.3/system >> tcp://192.168.1.3" >> >> >> I got the following error >> >> >>