Re: [R] Create a numeric series in an efficient way

2024-06-13 Thread Francesca PANCOTTO via R-help
I apologize, I solved the problem, sorry for that. f. Il giorno gio 13 giu 2024 alle ore 16:42 Francesca PANCOTTO < francesca.panco...@unimore.it> ha scritto: > Dear Contributors > I am trying to create a numeric series with repeated numbers, not > difficult task, but I do n

[R] Create a numeric series in an efficient way

2024-06-13 Thread Francesca PANCOTTO via R-help
Dear Contributors I am trying to create a numeric series with repeated numbers, not difficult task, but I do not seem to find an efficient way. This is my solution blocB <- c(rep(x = 1, times = 84), rep(x = 2, times = 84), rep(x = 3, times = 84), rep(x = 4, times = 84), rep(x = 5, times = 84),

Re: [R] Select part of character row name in a data frame

2017-10-20 Thread Francesca PANCOTTO
I did not need to select the whole character sentence, otherwise I would know how to do it.. from basic introduction to R as you suggest. Grep works perfectly. f. -- Francesca Pancotto, PhD > Il giorno 19 ott 2017, alle ore 18:01, Jeff Newmiller >

Re: [R] Select part of character row name in a data frame

2017-10-19 Thread Francesca PANCOTTO
Thanks a lot, so simple so efficient! I will study more the grep command I did not know. Thanks! Francesca Pancotto > Il giorno 19 ott 2017, alle ore 12:12, Enrico Schumann > <e...@enricoschumann.net> ha scritto: > > df[grep("strat", row.names(df)), ]

[R] Select part of character row name in a data frame

2017-10-19 Thread Francesca PANCOTTO
simple, but they are not and involve also spaces. I tried with select matches from dplyr but works for column names but I did not find how to use it on row names, which are of course character values. Thanks for any help you can provide. -- Franc

[R] Organize regression output

2016-12-09 Thread francesca Pancotto
(i in c(ra,rb,rc,rd,re,rf,rg,rh)) { calcolati[[i]] <- i$coefficients[1] } Thanks for any help you can provide. f. -- Francesca Pancotto Web: https://sites.google.com/site/francescapancotto/ <https://sites.google.com/site/francescapancotto/> En

[R] Map of Italy data filled at the level of the province

2016-06-02 Thread francesca Pancotto
Francesca -- Francesca Pancotto Professore Associato di Politica Economica Università degli Studi di Modena e Reggio Emilia Palazzo Dossetti - Viale Allegri, 9 - 42121 Reggio Emilia Office: +39 0522 523264 Web: https://sites.google.com/site/frances

[R] Small vector into large data frame

2014-11-14 Thread Francesca Pancotto
Dear Contributors I seem not to get the general rule applying to the use of loops. I need some help. I have a database in which i need to generate a variable according to the following rule. This is the database head bank_name date px_last Q_Y p_made p_for p_m p_f aba.1

Re: [R] Filling missing data in a Panel

2014-02-20 Thread Francesca Pancotto
Thanks a lot, it works perfectly! f. -- Francesca Pancotto Università degli Studi di Modena e Reggio Emilia Palazzo Dossetti - Viale Allegri, 9 - 42121 Reggio Emilia Office: +39 0522 523264 Web: https://sites.google.com/site/francescapancotto

[R] Filling missing data in a Panel

2014-02-16 Thread Francesca Pancotto
88 4 02/19/091.35 p109-q109109 109 10 21 941 4 05/28/091.35 p209-q209209 209 11 -- Francesca Pancotto Università degli Studi di Modena e Reggio Emilia Palazzo Dossetti - Viale Allegri

Re: [R] Selecting elements in lists with a row condition

2014-02-04 Thread Francesca Pancotto
doing wrong? f. -- Francesca Pancotto Università degli Studi di Modena e Reggio Emilia Palazzo Dossetti - Viale Allegri, 9 - 42121 Reggio Emilia Office: +39 0522 523264 Web: https://sites.google.com/site/francescapancotto/ -- Il

[R] Wilcox test and data collection

2011-09-28 Thread Francesca Pancotto
Dear Contributors I have a problem with the collection of data from the results of a test. I need to perform a comparative test over groups of data , recall the value of the pvalue and create a table. My problem is in the way to replicate the analysis over and over again over subsets of data

[R] How to perform an ols estimation with lm ignoring NA values

2009-10-22 Thread Francesca Pancotto
Dear R community, probably my question is obvious but I did not find any solution yet by browsind the mailing list results. I need to perform a simple ols regression in a dataset with cross section data, where no temporal dimension is inserted. In this data set there are missing values. I would