Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一张excel表格。我在哪里有这样的数据
Sample_d sample_normal 1 (0.234,0.889)
我想从“sample_normal”列的第一个和最后一个位置删除“()”括号。
将数据导入 R,然后使用:
df <- readxl::read_excel('excel_file.xlsx') df$sample_normal <- gsub('^\\(|\\)$', '', df$sample_normal)