similar to: man page for as.matrix for data frames outdated?

Displaying 20 results from an estimated 2000 matches similar to: "man page for as.matrix for data frames outdated?"

2010 Jan 20
1
Reshaping data with xtabs giving me 'extra' data
Dear all, Lets say I have several data frames as follows: > set.seed(42) > dates <- as.Date(c("2010-01-19", "2010-01-20")) > times <- c("09:30:00", "11:30:00", "13:30:00", "15:30:00") > shows <- c("Red Dwarf", "Being Human", "Doctor Who") > > df1 <- data.frame(Date = dates[1],
2011 Aug 29
2
splitting into multiple dataframes and then create a loop to work
Dear All Sorry for this simple question, I could not solve it by spending days. My data looks like this: # data set.seed(1234) clvar <- c( rep(1, 10), rep(2, 10), rep(3, 10), rep(4, 10)) # I have 100 level for this factor var; yvar <- rnorm(40, 10,6); var1 <- rnorm(40, 10,4); var2 <- rnorm(40, 10,4); var3 <- rnorm(40, 5, 2); var4 <- rnorm(40, 10, 3); var5 <- rnorm(40, 15,
2007 Sep 27
2
create data frame(s) from a list with different numbers of rows
# Hello, # I have a list with 6 categories and with different numbers of rows. # I would like to change each of them into a unique data frame in order to match # values with other data frames and perform some calculations. # Or I could make each category or list element have the same number of rows and create one large data.frame. # below is a creation of a sample list # I apologize for the
2010 Nov 11
4
How to get a specific named element in a nested list
Hello, I have a nested named list structure, like the following: x <- list( list( list(df1,df2) list(df3, list(df4,df5)) list(df6,df7))) with df1...d7 as data frames. Every data frame is named. Is there a way to get a specific named element in x? so, for example, x[[c("df5")]] gives me the data frame 5? Thank you in advance! Best, Friedericksen
2005 Oct 20
1
Windows 2000 crash while using rbind (PR#8225)
Windows 2000 reports that "Rgui.exe has generated errors and will be = closed by Windows. You will need to restart the program." when using = rbind.=20 df1 <- data.frame(cbind(x=3D1, y=3D1:1000), fac=3Dsample(LETTERS[1:3], = 1000, repl=3DTRUE)) df2 <- data.frame(cbind(x=3D1, y=3D1:10), fac=3Dsample(LETTERS[4:6], = 10, repl=3DTRUE)) df3 <- data.frame(cbind(x=3D1,
2015 Feb 25
2
getent passwd not return the same number of records from a call to another call
really, this getent with grep should not return anyting. because : 700001 is not 70001 ;-) >getent group | grep 700001 gives : >domain users:x:70001: >info:x:70001:toto,titi,tutu exist both groups only in the AD DC directory, or are ther also linux groups here. are both assigned a GID how? Greetz, Louis >-----Oorspronkelijk bericht----- >Van: h.henoch at isc84.org
2015 Feb 25
2
getent passwd not return the same number of records from a call to another call
I know that ID. I had this 70001 too sometime. It was a cache problem. Try "net cache flush" and after this getent once more. This should work. Regards Tim Am 25. Februar 2015 09:45:40 MEZ, schrieb "Herv? H?noch" <h.henoch at isc84.org>: >Both groups are Samba groups > >wbinfo --group-info gives for each group : >GID of domain users is 513 >GID of info is
2018 May 16
2
Dispatch mechanism seems to alter object before calling method on it
On 05/16/2018 10:22 AM, Michael Lawrence wrote: > Factors and data.frames are not structures, because they must have a > class attribute. Just call them "objects". They are higher level than > structures, which in practice just shape data without adding a lot of > semantics. Compare getClass("matrix") and getClass("factor"). > > I agree that
2018 May 16
1
Dispatch mechanism seems to alter object before calling method on it
On 05/16/2018 01:24 PM, Michael Lawrence wrote: > On Wed, May 16, 2018 at 12:23 PM, Herv? Pag?s <hpages at fredhutch.org> wrote: >> On 05/16/2018 10:22 AM, Michael Lawrence wrote: >>> >>> Factors and data.frames are not structures, because they must have a >>> class attribute. Just call them "objects". They are higher level than >>>
2018 May 16
2
Dispatch mechanism seems to alter object before calling method on it
On 05/15/2018 09:13 PM, Michael Lawrence wrote: > My understanding is that array (or any other structure) does not > "simply" inherit from vector, because structures are not vectors in > the strictest sense. Basically, once a vector gains attributes, it is > a structure, not a vector. The methods package accommodates this by > defining an "is" relationship
2015 Feb 25
2
getent passwd not return the same number of records from a call to another call
Here is my smb.conf (on member domain) : idmap config * : backend = tdb idmap config * : range = 2000-9999 idmap config * : schema_mode = rfc2307 idmap config DOMAIN : backend = ad idmap config DOMAIN : schema-_mode = rfc2307 idmap config DOMAIN : range = 10000-999999 winbind nss info = rfc2307 winbind trusted domains only = no winbind use default domain = yes winbind enum users = yes winbind
2018 May 16
0
Dispatch mechanism seems to alter object before calling method on it
On Wed, May 16, 2018 at 12:23 PM, Herv? Pag?s <hpages at fredhutch.org> wrote: > On 05/16/2018 10:22 AM, Michael Lawrence wrote: >> >> Factors and data.frames are not structures, because they must have a >> class attribute. Just call them "objects". They are higher level than >> structures, which in practice just shape data without adding a lot of
1999 Nov 01
1
outdated PACKAGES in CRAN
I just installed the new R 0.65.1 The fonctionnality to upgrade and install packages is a very great idea. But the file PACKAGES at http://www.ci.tuwien.ac.at:80/R/src/contrib/ is outdated : 3 of the 4 packages i try to install failed with a 404 not found : the package version are newer than the entry in the PACKAGES file : survival4 survival4_1.4-0.tar.gz Version: 1.1-0 rpart rpart_1.0-7.tar.gz
2015 Feb 25
0
getent passwd not return the same number of records from a call to another call
Both groups are Samba groups wbinfo --group-info gives for each group : GID of domain users is 513 GID of info is 3000023 Why if I change the range I always see the same GID with winbind on the member (example : 700001) ? Le 25/02/2015 09:32, L.P.H. van Belle a ?crit : > really, this getent with grep should not return anyting. > > because : 700001 is not 70001 ;-) > >>
2010 May 25
1
using the name of an argument in a function
Hi all, In a function, I need to get the name of a variable that has been used to call the function. For example, I want: --- 8< ------ toto <- 3 fun <- function(y){ nameOfY <-deparse(substitute(y)) cat("name is ",nameOfY) } fun(toto) # [1] name is toto --- 8< ---- But deparse(substitute(y)) does not work all the time, especially when we use generic function.
2015 Feb 25
0
getent passwd not return the same number of records from a call to another call
Yes it is good !!!! But I don't understand why a reboot does not do the same thing or a remove of the tdb files in /var/lib/samba too ? We have done that without any changes !!! Le 25/02/2015 10:31, Tim a ?crit : > I know that ID. I had this 70001 too sometime. It was a cache problem. > Try "net cache flush" and after this getent once more. > This should work. >
2009 Feb 19
3
Multiple merge, better solution?
Hello, My problem is that I would like to merge multiple files with a common column but merge accepts only two data.frames to merge. In the real situation, I have 26 different data.frames with a common column. I can of course use merge many times (see below) but what would be more sophisticated solution? For loop? Any ideas? DF1 <- data.frame(var1 = letters[1:5], a = rnorm(5)) DF2 <-
2018 May 16
0
Dispatch mechanism seems to alter object before calling method on it
Factors and data.frames are not structures, because they must have a class attribute. Just call them "objects". They are higher level than structures, which in practice just shape data without adding a lot of semantics. Compare getClass("matrix") and getClass("factor"). I agree that inheritance through explicit coercion is confusing. As far as I know, there are only
2020 Oct 02
1
adding sAMAccountType to an user
Hi all, having by mistake deleting some of my users, i have allmost raise them from dead by doing ldbrename -H /var/lib/samba/private/sam.ldb CN=titi toto\0ADEL:63c1e1b1-09ea-4fd7-8a95-c68a82fd92a2,CN=Deleted Objects,DC=local,DC=domain,DC=fr "CN=titi toto,OU=here-here,DC=ietr,DC=univ-rennes1,DC=fr" and adding the missing property by using an old ldb backup. BUT some property are
2024 Feb 07
1
[EXTERNAL] Re: NOTE: multiple local function definitions for ?fun? with different formal arguments
I put the idea below into a function that gives nicer looking results. Here's the new code: dupnames <- function(path = ".") { Rfiles <- pkgload:::find_code(path) allnames <- data.frame(names=character(), filename=character(), line = numeric()) result <- NULL for (f in Rfiles) { exprs <- parse(f, keep.source = TRUE) locs <-