[R] Missing Values

2012-09-13 Thread grond
I am using bootstrap and cannot figure how to tell R to ignore missing values (NA) I tried this syntax and it did not work. The name of the file is banks the column two. bootmean(banks$two,na.rm = True, conf = 90,nrep = 1000) -- View this message in context: http://r.789695.n4.nabble.com/M

Re: [R] Missing Values

2012-09-13 Thread grond
this worked bootmean(na.omit(Xt$Y), conf = 90,nrep = 1000) thanks From: "Jeff Newmiller [via R]" To: grond Date: 09/13/2012 04:48 PM Subject: Re: Missing Values Don't give it any. Instead of banks$two, use na

Re: [R] Missing Values

2012-09-13 Thread grond
actually this is what worked bootmean(na.omit(X$Y), conf = 90,nrep = 1000) From: "Nordlund, Dan (DSHS/RDA) [via R]" To: grond Date: 09/13/2012 05:43 PM Subject: Re: Missing Values > -Original Message- > From: [hidden email] [mailto:r-help-bounces@r- > projec

[R] Identifying tidygraph subgraphs

2021-04-05 Thread Wolfgang Grond
ws: nodes a, b, c have i. e. color blue as they originate from gr1, nodes f, g, h, i, j, k, l, m have i. e. color red as they originate from gr2, nodes d, e either have color blue or color red (depending in which sequence the graphs are joined), or nodes d. e have a third color,

[R] Assigning several lists to variables whose names are contained in other variables

2021-04-09 Thread Wolfgang Grond
Dear all, I'm creating a list (which is a tbl_graph) by a function, and assign the result to a variable: subnet_MYSUBNET <- my_function(MYSUBNET) # MYSUBNET: a tbl_graph Because there are multiple subnets to create, I can get the names of the subnets (MYSUBNET1, MYSUBNET2, MYSUBNET3, etc.) fr

Re: [R] Assigning several lists to variables whose names are contained in other variables

2021-04-09 Thread Wolfgang Grond
2021 11:48:55 +0200 >Wolfgang Grond wrote: > >> I want to assign the subnets to variables whose names contain the >> name of the subnet > >Apologies if this sounds too opinionated, but creating variable names >from variable values is a FAQ in a different dynamic language:

Re: [R] Assigning several lists to variables whose names are contained in other variables

2021-04-09 Thread Wolfgang Grond
Ivan, same situation when I try your list() solution: Error in eval ... : object 'function' not found ( I think anything about my_function is meant). Am 9. April 2021 13:43:57 MESZ schrieb Ivan Krylov : >Dear Wolfgang, > >On Fri, 9 Apr 2021 11:48:55 +0200 >Wolfgang Gro

Re: [R] Assigning several lists to variables whose names are contained in other variables

2021-04-09 Thread Wolfgang Grond
",  val, sep = ""), my_function(val)) > >(which i would think should work)? > >cheers, Greg > >__ >R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see >https://stat.ethz.ch/mailman/listinfo/r-help >PLEASE do read the posting guide >http://www.

Re: [R] Assigning several lists to variables whose names are contained in other variables

2021-04-09 Thread Wolfgang Grond
$column) { > results[[as.character(val)]] <- my_function(val) >} > > >To keep extending a vector or list object in a loop is inefficient, >this >creates the list with the right length beforehand. > > >Hope this helps, > >Rui Barradas > >Às 13

Re: [R] Assigning several lists to variables whose names are contained in other variables

2021-04-09 Thread Wolfgang Grond
David, I don't think that this is the case. When I do the calculation like this subnet_MYSUBNET <- my_function(MYSUBNET), i.e. assigning a variable by hand to each function result, all is fine. Am 9. April 2021 17:22:05 MESZ schrieb David Winsemius : > >On 4/9/21 5:21 AM,

Re: [R] Assigning several lists to variables whose names are contained in other variables

2021-04-09 Thread Wolfgang Grond
ore neccessary to assign the result of the function to a variable whose name consists of a fixed string and the content of a further variable. That was the intention for me to ask. Am 9. April 2021 17:22:05 MESZ schrieb David Winsemius : > >On 4/9/21 5:21 AM, Wolfgang Grond wrote: >> G

[R] geom_node_point color in ggraph

2021-04-15 Thread Wolfgang Grond
Dear all, I'm joining differnts graphs to one with command graph_join from ggraph, and try to color the nodes depending on the subgraph they come from. To do that, I have these commands in my ggraph: ... geom_node_point(size = 8, aes(colour

Re: [R] geom_node_point color in ggraph

2021-04-15 Thread Wolfgang Grond
size = 8) + > scale_color_manual(name = "Project / Projekt", > values = c("blue", "red")) > > >Hope this helps, > >Rui Barradas > > >Às 15:57 de 15/04/21, Wolfgang Grond es

[R] Interactive 3D Plot with non-numeric axis tick labels

2023-01-09 Thread Wolfgang Grond
Dear all, What I want to create is an interactive 3D plot from a data frame like this: #: number TLD: Countrycode Date: date String: a label Because plot3d can only deal with numbers I converted Date to Year and TLD as well as String to a numeric value like this: numTLD <- as.numeric(factor(df