I would like to rename some fields in my attribute table:
Like rename "XRF_N3"
in something else. It seems quite a easy issue but I don't find any information about how can I do that.
Since 2.16, you can edit field names in the layer properties when editing is enabled:
Renaming is possible using Table Manager plugin (http://plugins.qgis.org/plugins/tablemanager/)
Since QGIS 2.16 you no longer need a plugin to do this - you can double click a field name in a shapefile from the vector layer properties window and rename (set the layer as editable first)
if anyone is having any difficulty finding the Table manager button, for me it was located here:
No need for additional plugins for QGIS v3.12+. There is now something called the Rename field tool — special thanks to ndawson for building the tool.
Optional step 7b — You can also set the Renamed field just before running the process. It would make the output of the process be stored to an actual file. Leaving this field as-is or blank will make the output be stored into memory or virtual layer only.
You can use Refactor Fields from processing toolbox. It will create a new layer as output having the new names you defined. Besides that, this tool also allows to change field types, field order and other stuff. You can also rename more than one field at once.
This algorithm allows editing the structure of the attributes table of a vector layer. Fields can be modified in their type and name, using a fields mapping. The original layer is not modified. A new layer is generated, which contains a modified attribute table, according to the provided fields mapping. Rows in orange have constraints in the template layer from which these fields were loaded. Treat this information as a hint during configuration. No constraints will be added on an output layer nor will they be checked or enforced by the algorithm.