Skip to contents

Merge notes & obs to one column

Usage

merge_note_obs(x)

Arguments

x

a dataframe

Value

a dataframe

Examples

f <- system.file("uon-trial-1.csv", package = "pbwrangler")
df <- read_workbooks(dir=NULL, file_to_read = f)[[1]]
#> Rows: 108 Columns: 32
#> ── Column specification ────────────────────────────────────────────────────────
#> Delimiter: ","
#> chr  (8): unique, geno, flowering_date, flower_colour, flesh_colour, skin_co...
#> dbl (24): plot, entry, row, col, rep, ntp, npe, growth_speed, pgh, plant_uni...
#> 
#>  Use `spec()` to retrieve the full column specification for this data.
#>  Specify the column types or set `show_col_types = FALSE` to quiet this message.
merge_note_obs(df)[1:5, "obs"]
#> [1] "long oblong,,good yield" "very good yield"        
#> [3] "buds, pinkish eyes"      "good yield"             
#> [5] NA