Skip to content

Search Archives

Search tips
from:Name Search by author name, e.g. from:Duncan Murdoch "exact phrase" Match an exact phrase word1 word2 Match messages containing both words Date range Use the date pickers to filter results to a time period

Use the list dropdown to narrow results to a specific mailing list. Combine from: with other terms to filter by author and content.

437 results for “from:Peng Yu”

Speed of accessing list element by index or name
Peng Yu · Dec 3, 2009 · r-help

I'm wondering if the speed of accessing list element by index is the same as that of accessing list element by name. l[[1]] l[['name']]

How to read zip file?
Peng Yu · Sep 22, 2009 · r-help

Hi, Suppose that I have a csv file that is compressed with zip, is there a way to read it in R without first decompressing it to a file. Regards, Peng

Is nested namespace supported?
Peng Yu · Jan 7, 2010 · r-help

I don't find where in the R document the discussion of nested namespace is. If there is nested namespace supported in R, could somebody let me know whether the document is?

Which packages in R use C++?
Peng Yu · Dec 10, 2009 · r-devel

I want to see some working examples on how to call C++ programs from R. Could somebody let me know which R packages mainly use C++ rather than C or Fortran?

How to convert a string passed as an argument to a vector?
Peng Yu · Aug 28, 2009 · r-help

An embedded and charset-unspecified text was scrubbed... Name: not available URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20090828/bc44b417/attachment-0001.pl>

How to profile an R program?
Peng Yu · Dec 10, 2009 · r-help

Is there a way to profile an R program similar to valgrind (valgrind.org), in the sense that I can easily see which function is the bottleneck of an R program?

What is the equivalent of column.prods() from S in R?
Peng Yu · Nov 9, 2009 · r-help

Chambers' book Statistical Models in S mentioned 'column.prods()'. But I don't find it in R. I'm wondering if there is an equivalent in R?

How to know what vignette are available in a package?
Peng Yu · Dec 8, 2009 · r-help

For any given package (for example, data.table), is there a way to show all the available vignette from the package (or to know whether there is vignette)?

What is the fastest way to see what are in an RData file?
Peng Yu · Dec 16, 2009 · r-help

An embedded and charset-unspecified text was scrubbed... Name: not available URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20091217/4d76a808/attachment-0001.pl>

How to dbReadTable() only a limited number of rows? (RMySQL)
Peng Yu · Dec 24, 2009 · r-help

I only want to load a limited number of rows by dbReadTable(). I don't see an option in the help. Is there an option to do so?

Why .Diag and .asSparse are not accessible in R sessions?
Peng Yu · Nov 29, 2009 · r-help

'.Diag' and '.asSparse' are defined in contrast.R. I'm wondering why I don't see them in my R session. Is it because that they start with '.'?

What is the difference between read.delim and read.delim2?
Peng Yu · Sep 4, 2009 · r-help

Hi, I don't see what the difference between read.delim and read.delim2 after reading the help. Can somebody let me know what it is? Regards, Peng

How to remove 'NA's?
Peng Yu · Sep 15, 2009 · r-help

Hi, > match(c(3,4), c(3,2,1)) [1] 1 NA The above result has 'NA' in. Is there a way to make 'match' does not produce any 'NA's? Regards, Peng

What is the difference between double quote (") and single quote (')?
Peng Yu · Sep 16, 2009 · r-help

Hi, According to my understand of the description in R-intro, double quote and single quote are the same. Can somebody confirm if this is the case? Regards, Peng

R.oo and S4?
Peng Yu · Oct 26, 2009 · r-help

There are different way to make R classes. I know R.oo and S4. I'm wondering which one is the current popular one. Which one is current recommended when make new R packages? Thank you!

How to browse all the functions in a package?
Peng Yu · Oct 26, 2009 · r-help

'?removeClass' shows that 'removeClass' is from package 'package:methods'. Is there a command which can show me all the functions and the classed defined in a package such as 'package:methods'?

How to open only one file in a .gz file?
Peng Yu · Sep 25, 2009 · r-help

Hi, Suppose that there are multiple files in a .gz file. How to open only one file in it? I don't find such options in the help. Regards, Peng

Request update on A (Not So) Short Introduction to S4
Peng Yu · Oct 13, 2009 · r-help

There are several '?'s on the last page of the following document. Apparently, they are not correct. Could somebody correct it? cran.r-project.org/doc/contrib/Genolini-S4tutorialV0-5en.pdf

How to concatenate a vector of strings to a string?
Peng Yu · Nov 20, 2009 · r-help

> paste(c('a','b'),sep='') [1] "a" "b" The above command doesn't concatenate the strings in a single string. I'm wondering what is the correct way to do so.

Why tempdir() always give me the same results in the same session?
Peng Yu · Sep 6, 2009 · r-help

Hi, tempdir() always gives me the same result. Should it give a different result each time I call it? > tempdir() [1] "/tmp/RtmppB72wH" > tempdir() [1] "/tmp/RtmppB72wH" Regards, Peng

Can't find what you're looking for? Try searching with Google .