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.

399 results for “from:Luigi Marongiu”

add reference lines (or grid) in background
Luigi Marongiu · Sep 18, 2012 · r-help

Dear all , Thank you for the replies. The idea of plotting back on top of the grid was the right direction and after browsing and browsing I found a tip in the R archive ([R] How to get a grid...

r kernlab find best cost parameter automatically
Luigi Marongiu · May 23, 2019 · r-help

Dear all, I am using kernlab to implement an SVM analysis. The model I am building has the syntax: `ksvm(<y> ~ <x>, data = <dataframe>, type = "C-svc", kernel = "rbfdot", kpar = "automatic", C = <k>, prob.model = TRUE)` Here, I can use...

Replace values based on neither condition
Luigi Marongiu · Oct 28, 2022 · r-help

Hello, I have a data frame with a string column. All data that are neither "POS" nor "NEG" should've replaced by an NA. How can I implement that (even with extra libraries)? My attempts actually wipe out POS and...

split element vector
Luigi Marongiu · Aug 6, 2021 · r-help

Hello, I have a vector that contains some elements with concatenated values, such as: ``` > vect [1] "name_1" [2] "name_2" [3] "name_3\nsurname_3" [4] "some other text\netc" ``` How can I create a new vector where each...

How to draw chemical structures with R?
Luigi Marongiu · Dec 5, 2022 · r-help

Hello,' I have seen from this link https://cran.r-project.org/web/packages/rcdk/vignettes/using-rcdk.html that there is a way to draw chemical structures using R via rcdk package. I tried to draw a simple structure...

convert list int data frame
Luigi Marongiu · Sep 14, 2015 · r-help

Dear all, i would like to convert a list onto a data frame object. Is there an easy way of doing it? I know I should use unlist() but I am not sure about the implementation for the addition of...

lattice contourplot: how to change line width?
Luigi Marongiu · Nov 17, 2021 · r-help

sorry, it was easier than expected: just add `lwd` to the main cal. sorry I could not stop the message before checking... On Wed, Nov 17, 2021 at 10:31 AM Luigi Marongiu <marongiu.luigi at gmail.com> wrote: > > Hello...

Loop over columns of dataframe and change values condtionally
Luigi Marongiu · Sep 2, 2021 · r-help

Hello, it is possible to select the columns of a dataframe in sequence with: ``` for(i in 1:ncol(df)) { df[ , i] } # or for(i in 1:ncol(df)) { df[ i] } ``` And change all values with, for instance: ``` for(i...

How to use contour plot?
Luigi Marongiu · Nov 16, 2021 · r-help

Hello, I have a dataframe with 3 values and that I would like to plot with contour: ``` > head(df) Y X Z 1 0.0008094667 50 1 2 0.0012360955 50 1 3 0.0016627243 50 1 4 0.0020893531...

how to add comma to string vector?
Luigi Marongiu · Jun 10, 2022 · r-help

Thank you. ``` raws <- c("field_1", "field_2", "field_3") paste0("['", paste0(raws, collapse="', '"), "']") ``` gave the most fitting option... On Fri, Jun 10, 2022 at 12:31 PM Rasmus Liland <jral at posteo.no> wrote: > > Hello ... > > raws <- c("field_1...

how to connect libreoffice base odb using R package odbc?
Luigi Marongiu · Nov 10, 2021 · r-help

Awesome, thanks! On Wed, Nov 10, 2021 at 10:33 PM Rasmus Liland <jral at posteo.no> wrote: > > Dear Luigi, > > Yes, from the named list of dataframes, > you access the demographic table like > that. > > You can remove dput() now, I...

Show only header of str() function
Luigi Marongiu · Sep 2, 2021 · r-help

Thank you! better than dim() anyway. Best regards Luigi On Thu, Sep 2, 2021 at 1:31 PM Rui Barradas <ruipbarradas at sapo.pt> wrote: > > Hello, > > Not perfect but works for data.frames: > > > header_str <- function(x){ > capture.output(str...

how to plot with color according to factor keeping a fixed number of levels?
Luigi Marongiu · Jul 31, 2022 · r-help

Thank you! It solved it! On Sun, Jul 31, 2022 at 3:38 PM Ivan Krylov <krylov.r00t at gmail.com> wrote: > > On Sun, 31 Jul 2022 15:26:14 +0200 > Luigi Marongiu <marongiu.luigi at gmail.com> wrote: > > > but...

Error in forest.meta : argument 3 matches multiple formal arguments
Luigi Marongiu · May 26, 2022 · r-help

Thank you On Thu, May 26, 2022 at 12:38 PM Ivan Krylov <krylov.r00t at gmail.com> wrote: > > ? Thu, 26 May 2022 12:30:12 +0200 > Luigi Marongiu <marongiu.luigi at gmail.com> ?????: > > > > Error in forest.meta(m10, sortvar...

Format dates issues with R
Luigi Marongiu · Dec 14, 2021 · r-help

Got it, thanks! On Tue, Dec 14, 2021 at 11:59 AM Ivan Krylov <krylov.r00t at gmail.com> wrote: > > On Tue, 14 Dec 2021 11:54:08 +0100 > Luigi Marongiu <marongiu.luigi at gmail.com> wrote: > > > "9/29/2021...

How to select given row of conditionally subsetted dataframe?
Luigi Marongiu · Oct 14, 2021 · r-help

Hello, I have selected a subset of a dataframe with the vector syntax (if this is the name): ``` > df[(df$Y>0.2) & (df$X<10),] Y X 10 0.2200642 1.591589 13 0.2941828 1.485951 ``` How can...

(no subject)
Luigi Marongiu · May 14, 2020 · r-help

Dear all, I am trying to upgrade from ubuntu 19 to 20 but I got some R stuff that stop the process: ``` $ apt list --upgradable Listing... Done r-cran-kernsmooth/xenial 2.23-15-3xenial0 amd64 [upgradable from: 2.23...

how to identify record with broken format
Luigi Marongiu · Jun 5, 2019 · r-help

Dear all, I have a large dataframe where one of the records in a column must have been wrongly formatted, in particular i think is missing a closing ". When I try to show only that column's value I get...

substitute column data frame based on name stored in variable in r
Luigi Marongiu · Aug 9, 2021 · r-help

Hello, I would like to recursively select the columns of a dataframe by strong the names of the dataframe in a vector and extracting one element of the vector at a time. This I can do with, for instance: ``` vect...

How to use RColorBrewer in ggplot2?
Luigi Marongiu · Aug 13, 2025 · r-help

Hello, I would like to define a color range to custom color some plot, specifically made in ggplot2 (but also for normal plots). I have been trying to use RColorBrewer but I don't get any value out of this...

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